java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
    via by Clément Tamisier [X],
  • 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)
    via by Clément Tamisier [X],
  • Selenium Server stops working
    via by b...@oose.de,
  • 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]
    via by Jérémy Cazaux,
  • 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)
    via by Jonathan Price,
  • IllegalArgumentException: Prefix string too short
    via by SeleniumUserCGN,
    • 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)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Hiren Amaliyar
    1 times, last one,