java.io.IOException

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.

  • Unable to persist because of slashes. Is there a way to recover?
    via by Noppanit Charassinvichai,
  • Error installing timeseriesForecasting plugin
    via by Unknown author,
  • FULL PRODUCT VERSION : java version "1.8.0_74" Java(TM) SE Runtime Environment (build 1.8.0_74-b02) Java HotSpot(TM) Client VM (build 25.74-b02, mixed mode, sharing) ADDITIONAL OS VERSION INFORMATION : Win7 - 64 bit A DESCRIPTION OF THE PROBLEM : I'am trying to create a temp directory using the following code public static File createTemporaryDirectory() { File file = null; try { file = File.createTempFile("xyz", "Directory" + System.getProperty("file.separator")); file.delete(); file.mkdirs(); } catch (final IOException e) { e.printStackTrace(); } return file; } We want our product to be compatible with both 1.6 and 1.8 , but the above code doesnt work in 1.8 . I did some research and found that if i remove System.getProperty("file.separator") it works fine . Since i cant debug the java library code , i want to know is there any change in the code of createTempFile ; i.e. in 1.6 it didnt took care of file separator but in 1.8 it does and that is the reason why i get the following exception java.io.IOException: Unable to create temporary file, C:\Users\xxx\AppData\Local\Temp\xyz3408962131679677845Directory. I know in 1.8 there is a new method introduced to createTempDirectory to create temp directory , but we want our product to be compatible with both 1.6 and 1.8 . REGRESSION. Last worked in version 6u45 ADDITIONAL REGRESSION INFORMATION: java version "1.8.0_74" Java(TM) SE Runtime Environment (build 1.8.0_74-b02) Java HotSpot(TM) Client VM (build 25.74-b02, mixed mode, sharing) STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Following code throws an exception public static File createTemporaryDirectory() { File file = null; try { file = File.createTempFile("xyz", "Directory" + System.getProperty("file.separator")); } catch (final IOException e) { e.printStackTrace(); } return file; } EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - a new file object ACTUAL - java.io.IOException: Unable to create temporary file, C:\Users\xxxAppData\Local\Temp\xyz3408962131679677845Directory ERROR MESSAGES/STACK TRACES THAT OCCUR : java.io.IOException: Unable to create temporary file, C:\Users\xxx\AppData\Local\Temp\xyz3408962131679677845Directory at java.io.File$TempDirectory.generateFile(File.java:1921) at java.io.File.createTempFile(File.java:2010) at java.io.File.createTempFile(File.java:2070) REPRODUCIBILITY : This bug can be reproduced always. CUSTOMER SUBMITTED WORKAROUND : Remove System.getProperty("file.separator") from createTempFIle
    via by Webbug Group,
  • java.io.File.createTempFile called with args: String filename = "/bonita-5.10.1.jar"; String suffix = null; File directory = new File("D:\\Talend-Runtime-V5.4.0-SNAPSHOT\\etc\\bonita\\server\\default\\tmp"); java.io.IOException: Unable to create temporary file at java.io.File$TempDirectory.generateFile(File.java:1891) at java.io.File.createTempFile(File.java:1979) at org.ow2.bonita.util.Misc.createTempFile(SourceFile:1834) at org.ow2.bonita.runtime.AbstractClassLoader.<init>(SourceFile:93) at org.ow2.bonita.runtime.ProcessClassLoader.<init>(SourceFile:27) at org.ow2.bonita.runtime.ClassDataLoader.getProcessClassLoader(SourceFile:118) at org.ow2.bonita.deployment.Deployer.deploy(SourceFile:104) at org.ow2.bonita.facade.impl.ManagementAPIImpl.deploy(SourceFile:106) 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:606) at org.ow2.bonita.facade.APIInterceptor$APIInterceptorCommand.execute(SourceFile:115) at org.ow2.bonita.services.impl.DefaultCommandService.execute(SourceFile:44) at org.ow2.bonita.runtime.tx.StandardTransactionInterceptor.execute(SourceFile:45) at org.ow2.bonita.services.impl.EnvironmentInterceptor.execute(SourceFile:40) at org.ow2.bonita.services.impl.RetryInterceptor.execute(SourceFile:52) at org.ow2.bonita.facade.APIInterceptor.invoke(SourceFile:187) at com.sun.proxy.$Proxy143.deploy(Unknown Source) at org.ow2.bonita.facade.impl.AbstractRemoteManagementAPIImpl.deploy(SourceFile:79) 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:606) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:124) at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:247) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:212) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:202) at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:441) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:418) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:111) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:217) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:159) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:447) at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:521) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038) at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:124) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:81) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:363) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:931) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:992) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:724)
    via by Alexey Markevich,
  • When running STS with JDK8 and opening the dashboard extension page, you see this: {code} Sorry, there are no available connectors. Please try again later. {code} Error in error log: {code} eclipse.buildId=3.4.0.201309102355-M1-e43 java.version=1.8.0-ea java.vendor=Oracle Corporation BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US Framework arguments: -product org.springsource.sts.ide -keyring /Users/andrew/.eclipse_keyring -showlocation Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.springsource.sts.ide -keyring /Users/andrew/.eclipse_keyring -showlocation Error Wed Sep 11 09:09:27 PDT 2013 Cannot download bundle at http://dist.springsource.com/release/STS/discovery/org.springsource.ide.eclipse.discovery-3.4.0.jar: Unable to create temporary file java.io.IOException: Unable to create temporary file at java.io.File$TempDirectory.generateFile(File.java:1914) at java.io.File.createTempFile(File.java:2002) at org.eclipse.mylyn.internal.discovery.core.model.RemoteBundleDiscoveryStrategy$DownloadBundleJob.call(RemoteBundleDiscoveryStrategy.java:237) at org.eclipse.mylyn.internal.discovery.core.model.RemoteBundleDiscoveryStrategy$DownloadBundleJob.call(RemoteBundleDiscoveryStrategy.java:1) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:724) {code} Java version: {code} java version "1.8.0-ea" Java(TM) SE Runtime Environment (build 1.8.0-ea-b104) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b46, mixed mode) {code}
    via by Andrew Eisenberg (c),
    • java.io.IOException: Unable to create temporary file, /tmp/filePeon5723717161909455496ctp:/count/hit.header at java.io.File$TempDirectory.generateFile(File.java:1898)
    No Bugmate found.