java.lang.IllegalArgumentException: Prefix string too short

struts-user | Stephen H | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Issue with jakarta-stream multipart parser

    struts-user | 1 year ago | Stephen H
    java.lang.IllegalArgumentException: Prefix string too short
  2. 0

    Issue with jakarta-stream multipart parser

    struts-user | 1 year ago | Stephen H
    java.lang.IllegalArgumentException: Prefix string too short
  3. 0

    Issue with jakarta-stream multipart parser

    struts-user | 1 year ago | Stephen H
    java.lang.IllegalArgumentException: Prefix string too short
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Struts application framework user discussion

    gmane.org | 1 year ago
    java.lang.IllegalArgumentException: Prefix string too short
  6. 0

    Jenkins 1.597 changed the build ID from being a timestamp to being the build number. xvfb-plugin calls Hudson.FilePath.createTempDir() using the build ID as the prefix. The prefix must be at least 3 characters long or there is an exception. For builds with the build number < 100, therefore, the build ID won't be big enough and so will fail the build. Sample stack trace below. An ugly workaround would be to keep running the failing builds until you get to build 100, where it should again be successful. ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com java.lang.IllegalArgumentException: Prefix string too short at java.io.File.createTempFile0(File.java:1844) at java.io.File.createTempFile(File.java:1934) at hudson.FilePath$18.invoke(FilePath.java:1404) at hudson.FilePath$18.invoke(FilePath.java:1401) at hudson.FilePath.act(FilePath.java:989) at hudson.FilePath.act(FilePath.java:967) at hudson.FilePath.createTempDir(FilePath.java:1401) at org.jenkinsci.plugins.xvfb.XvfbBuildWrapper.launchXvfb(XvfbBuildWrapper.java:484) at org.jenkinsci.plugins.xvfb.XvfbBuildWrapper.setUp(XvfbBuildWrapper.java:594) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:655) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533) at hudson.model.Run.execute(Run.java:1718) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)

    Jenkins JIRA | 2 years ago | Jonathan Price
    java.lang.IllegalArgumentException: Prefix string too short

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Prefix string too short

      at java.io.File.createTempFile()
    2. Java RT
      File.createTempFile
      1. java.io.File.createTempFile(Unknown Source)
      1 frame
    3. Struts2
      MultiPartRequestWrapper.<init>
      1. org.apache.struts2.dispatcher.multipart.JakartaStreamMultiPartRequest.createTemporaryFile(JakartaStreamMultiPartRequest.java:436)
      2. org.apache.struts2.dispatcher.multipart.JakartaStreamMultiPartRequest.processFileItemStreamAsFileField(JakartaStreamMultiPartRequest.java:398)
      3. org.apache.struts2.dispatcher.multipart.JakartaStreamMultiPartRequest.processUpload(JakartaStreamMultiPartRequest.java:313)
      4. org.apache.struts2.dispatcher.multipart.JakartaStreamMultiPartRequest.parse(JakartaStreamMultiPartRequest.java:247)
      5. org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper.<init>(MultiPartRequestWrapper.java:84)
      5 frames