java.lang.IllegalArgumentException: Prefix string too short

JIRA | Clément Tamisier [X] | 5 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    create a datasource named 'a'. create a view in this datasource named 'newview' in createTempFile() prefix must be greater or equals than 3 characters. java.lang.IllegalArgumentException: Prefix string too short at java.io.File.createTempFile(File.java:1794) at java.io.File.createTempFile(File.java:1840) at org.obiba.opal.core.cfg.OpalViewPersistenceStrategy.doWriteViews(OpalViewPersistenceStrategy.java:100) at org.obiba.opal.core.cfg.OpalViewPersistenceStrategy.writeViews(OpalViewPersistenceStrategy.java:71) at org.obiba.magma.views.impl.DefaultViewManagerImpl.addView(DefaultViewManagerImpl.java:52) at org.obiba.opal.web.magma.DatasourceResource.createView(DatasourceResource.java:178) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140) at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:252) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:217) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:206) at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:503) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:480)

    JIRA | 5 years ago | Clément Tamisier [X]
    java.lang.IllegalArgumentException: Prefix string too short
  2. 0

    create a datasource named 'a'. create a view in this datasource named 'newview' in createTempFile() prefix must be greater or equals than 3 characters. java.lang.IllegalArgumentException: Prefix string too short at java.io.File.createTempFile(File.java:1794) at java.io.File.createTempFile(File.java:1840) at org.obiba.opal.core.cfg.OpalViewPersistenceStrategy.doWriteViews(OpalViewPersistenceStrategy.java:100) at org.obiba.opal.core.cfg.OpalViewPersistenceStrategy.writeViews(OpalViewPersistenceStrategy.java:71) at org.obiba.magma.views.impl.DefaultViewManagerImpl.addView(DefaultViewManagerImpl.java:52) at org.obiba.opal.web.magma.DatasourceResource.createView(DatasourceResource.java:178) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140) at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:252) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:217) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:206) at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:503) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:480)

    JIRA | 5 years ago | Clément Tamisier [X]
    java.lang.IllegalArgumentException: Prefix string too short
  3. 0

    Selenium Server stops working

    Google Groups | 6 years ago | b...@oose.de
    java.lang.IllegalArgumentException: Prefix string too short
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Can't use org.ow2.util.maven:maven-osgi-plugin-launcher-core:1.0.30 with a username of one or two character [ERROR] Failed to execute goal org.ow2.util.maven:maven-osgi-plugin-launcher-core:1.0.30:start (start-framework) on project jonas-itests-felix: Execution start-framework of goal org.ow2.util.maven:maven-osgi-plugin-launcher-core:1.0.30:start failed: Prefix string too short -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.ow2.util.maven:maven-osgi-plugin-launcher-core:1.0.30:start (start-framework) on project jonas-itests-felix: Execution start-framework of goal org.ow2.util.maven:maven-osgi-plugin-launcher-core:1.0.30:start failed: Prefix string too short at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution start-framework of goal org.ow2.util.maven:maven-osgi-plugin-launcher-core:1.0.30:start failed: Prefix string too short at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: java.lang.IllegalArgumentException: Prefix string too short at java.io.File.createTempFile(File.java:1794) at java.io.File.createTempFile(File.java:1840) at org.ow2.util.maven.osgi.launcher.core.RemoteLauncher.start(RemoteLauncher.java:151) at org.ow2.util.maven.osgi.launcher.core.StartMojo.doExecute(StartMojo.java:88) at org.ow2.util.maven.osgi.launcher.core.AbsMojo.execute(AbsMojo.java:245) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) ... 20 more [ERROR]

    JIRA | 6 years ago | Jérémy Cazaux
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.ow2.util.maven:maven-osgi-plugin-launcher-core:1.0.30:start (start-framework) on project jonas-itests-felix: Execution start-framework of goal org.ow2.util.maven:maven-osgi-plugin-launcher-core:1.0.30:start failed: 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

  1. Hiren 1 times, last 1 week ago
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(File.java:1794)
    2. java.io.File.createTempFile(File.java:1840)
    2 frames
  3. org.obiba.opal
    OpalViewPersistenceStrategy.writeViews
    1. org.obiba.opal.core.cfg.OpalViewPersistenceStrategy.doWriteViews(OpalViewPersistenceStrategy.java:100)
    2. org.obiba.opal.core.cfg.OpalViewPersistenceStrategy.writeViews(OpalViewPersistenceStrategy.java:71)
    2 frames
  4. org.obiba.magma
    DefaultViewManagerImpl.addView
    1. org.obiba.magma.views.impl.DefaultViewManagerImpl.addView(DefaultViewManagerImpl.java:52)
    1 frame
  5. org.obiba.opal
    DatasourceResource.createView
    1. org.obiba.opal.web.magma.DatasourceResource.createView(DatasourceResource.java:178)
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:616)
    4 frames
  7. RESTEasy JAX-RS Implementation
    SynchronousDispatcher.invoke
    1. org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
    2. org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:252)
    3. org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:217)
    4. org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:206)
    5. org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:503)
    6. org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:480)
    6 frames