java.lang.InternalError: Should not get here

JDK Bug System | Webbug Group | 2 years ago
  1. 0

    FULL PRODUCT VERSION : java version "1.8.0_05" Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Java HotSpot(TM) Client VM (build 25.5-b02, mixed mode) ADDITIONAL OS VERSION INFORMATION : Microsoft Windows [Version 6.1.7601] A DESCRIPTION OF THE PROBLEM : java.lang.InternalError: Should not get here at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink0(Native Method) at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(Unknown Source) at java.nio.file.Files.createSymbolicLink(Unknown Source) at org.eclipse.jgit.util.FileUtil.createSymLink(FileUtil.java:96) at org.eclipse.jgit.util.FS_Win32_Java7.detectSymlinkSupport(FS_Win32_Java7.java:80) at org.eclipse.jgit.util.FS_Win32_Java7.supportsSymlinks(FS_Win32_Java7.java:71) at org.eclipse.egit.core.ContainerTreeIterator$ResourceEntry.<init>(ContainerTreeIterator.java:295) STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Run the attached sample code on windows platform. When I run it as Administrator - no problem. When I run it as user in administrator group - it doesn´t work. I checked the setting in temporary folder - my user has FULL Access to targed directory. Other informations could be found in https://bugs.eclipse.org/bugs/show_bug.cgi?id=436137 EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - Link created or some IOException about bad rights, or root cause of the problem. ACTUAL - Exception in thread "main" java.lang.InternalError: Should not get here at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink0(Native Method) ERROR MESSAGES/STACK TRACES THAT OCCUR : Exception in thread "main" java.lang.InternalError: Should not get here at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink0(Native Method) at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(Unknown Source) at java.nio.file.Files.createSymbolicLink(Unknown Source) at uu.os.samples.TestSimlink.createSymLink(TestSimlink.java:47) at uu.os.samples.TestSimlink.detectSymlinkSupport(TestSimlink.java:29) at uu.os.samples.TestSimlink.main(TestSimlink.java:19) REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- package uu.os.samples; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.LinkOption; import java.nio.file.Path; public class TestSimlink { static boolean supportSymlinks = false; public static void main(String[] args) { TestSimlink tsm = new TestSimlink(); tsm.detectSymlinkSupport(); System.out.println("Result: " + supportSymlinks); } private void detectSymlinkSupport() { File tempFile = null; try { tempFile = File.createTempFile("tempsymlinktarget2", ""); //$NON-NLS-1$ //$NON-NLS-2$ File linkName = new File(tempFile.getParentFile(), "tempsymlink2"); //$NON-NLS-1$ createSymLink(linkName, tempFile.getPath()); supportSymlinks = Boolean.TRUE; linkName.delete(); } catch (IOException e) { supportSymlinks = Boolean.FALSE; } finally { if (tempFile != null) tempFile.delete(); } } public static void createSymLink(File path, String target) throws IOException { Path nioPath = path.toPath(); if (Files.exists(nioPath, LinkOption.NOFOLLOW_LINKS)) Files.delete(nioPath); if (true) target = target.replace('/', '\\'); Path nioTarget = new File(target).toPath(); Files.createSymbolicLink(nioPath, nioTarget); } } ---------- END SOURCE ---------- CUSTOMER SUBMITTED WORKAROUND : Run java as Administrator

    JDK Bug System | 2 years ago | Webbug Group
    java.lang.InternalError: Should not get here
  2. 0

    FULL PRODUCT VERSION : java version "1.8.0_05" Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Java HotSpot(TM) Client VM (build 25.5-b02, mixed mode) ADDITIONAL OS VERSION INFORMATION : Microsoft Windows [Version 6.1.7601] A DESCRIPTION OF THE PROBLEM : java.lang.InternalError: Should not get here at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink0(Native Method) at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(Unknown Source) at java.nio.file.Files.createSymbolicLink(Unknown Source) at org.eclipse.jgit.util.FileUtil.createSymLink(FileUtil.java:96) at org.eclipse.jgit.util.FS_Win32_Java7.detectSymlinkSupport(FS_Win32_Java7.java:80) at org.eclipse.jgit.util.FS_Win32_Java7.supportsSymlinks(FS_Win32_Java7.java:71) at org.eclipse.egit.core.ContainerTreeIterator$ResourceEntry.<init>(ContainerTreeIterator.java:295) STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Run the attached sample code on windows platform. When I run it as Administrator - no problem. When I run it as user in administrator group - it doesn´t work. I checked the setting in temporary folder - my user has FULL Access to targed directory. Other informations could be found in https://bugs.eclipse.org/bugs/show_bug.cgi?id=436137 EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - Link created or some IOException about bad rights, or root cause of the problem. ACTUAL - Exception in thread "main" java.lang.InternalError: Should not get here at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink0(Native Method) ERROR MESSAGES/STACK TRACES THAT OCCUR : Exception in thread "main" java.lang.InternalError: Should not get here at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink0(Native Method) at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(Unknown Source) at java.nio.file.Files.createSymbolicLink(Unknown Source) at uu.os.samples.TestSimlink.createSymLink(TestSimlink.java:47) at uu.os.samples.TestSimlink.detectSymlinkSupport(TestSimlink.java:29) at uu.os.samples.TestSimlink.main(TestSimlink.java:19) REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- package uu.os.samples; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.LinkOption; import java.nio.file.Path; public class TestSimlink { static boolean supportSymlinks = false; public static void main(String[] args) { TestSimlink tsm = new TestSimlink(); tsm.detectSymlinkSupport(); System.out.println("Result: " + supportSymlinks); } private void detectSymlinkSupport() { File tempFile = null; try { tempFile = File.createTempFile("tempsymlinktarget2", ""); //$NON-NLS-1$ //$NON-NLS-2$ File linkName = new File(tempFile.getParentFile(), "tempsymlink2"); //$NON-NLS-1$ createSymLink(linkName, tempFile.getPath()); supportSymlinks = Boolean.TRUE; linkName.delete(); } catch (IOException e) { supportSymlinks = Boolean.FALSE; } finally { if (tempFile != null) tempFile.delete(); } } public static void createSymLink(File path, String target) throws IOException { Path nioPath = path.toPath(); if (Files.exists(nioPath, LinkOption.NOFOLLOW_LINKS)) Files.delete(nioPath); if (true) target = target.replace('/', '\\'); Path nioTarget = new File(target).toPath(); Files.createSymbolicLink(nioPath, nioTarget); } } ---------- END SOURCE ---------- CUSTOMER SUBMITTED WORKAROUND : Run java as Administrator

    JDK Bug System | 2 years ago | Webbug Group
    java.lang.InternalError: Should not get here
  3. 0

    [JENKINS-29041] Error Creating symbolic Links using Windows - Jenkins JIRA

    jenkins-ci.org | 6 months ago
    java.io.IOException: java.lang.reflect.InvocationTargetException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    FULL PRODUCT VERSION : java version "1.8.0_05" Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Java HotSpot(TM) Client VM (build 25.5-b02, mixed mode) ADDITIONAL OS VERSION INFORMATION : Microsoft Windows [Version 6.1.7601] A DESCRIPTION OF THE PROBLEM : java.lang.InternalError: Should not get here at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink0(Native Method) at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(Unknown Source) at java.nio.file.Files.createSymbolicLink(Unknown Source) at org.eclipse.jgit.util.FileUtil.createSymLink(FileUtil.java:96) at org.eclipse.jgit.util.FS_Win32_Java7.detectSymlinkSupport(FS_Win32_Java7.java:80) at org.eclipse.jgit.util.FS_Win32_Java7.supportsSymlinks(FS_Win32_Java7.java:71) at org.eclipse.egit.core.ContainerTreeIterator$ResourceEntry.<init>(ContainerTreeIterator.java:295) STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Run the attached sample code on windows platform. When I run it as Administrator - no problem. When I run it as user in administrator group - it doesn´t work. I checked the setting in temporary folder - my user has FULL Access to targed directory. Other informations could be found in https://bugs.eclipse.org/bugs/show_bug.cgi?id=436137 EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - Link created or some IOException about bad rights, or root cause of the problem. ACTUAL - Exception in thread "main" java.lang.InternalError: Should not get here at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink0(Native Method) ERROR MESSAGES/STACK TRACES THAT OCCUR : Exception in thread "main" java.lang.InternalError: Should not get here at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink0(Native Method) at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(Unknown Source) at java.nio.file.Files.createSymbolicLink(Unknown Source) at uu.os.samples.TestSimlink.createSymLink(TestSimlink.java:47) at uu.os.samples.TestSimlink.detectSymlinkSupport(TestSimlink.java:29) at uu.os.samples.TestSimlink.main(TestSimlink.java:19) REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- package uu.os.samples; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.LinkOption; import java.nio.file.Path; public class TestSimlink { static boolean supportSymlinks = false; public static void main(String[] args) { TestSimlink tsm = new TestSimlink(); tsm.detectSymlinkSupport(); System.out.println("Result: " + supportSymlinks); } private void detectSymlinkSupport() { File tempFile = null; try { tempFile = File.createTempFile("tempsymlinktarget2", ""); //$NON-NLS-1$ //$NON-NLS-2$ File linkName = new File(tempFile.getParentFile(), "tempsymlink2"); //$NON-NLS-1$ createSymLink(linkName, tempFile.getPath()); supportSymlinks = Boolean.TRUE; linkName.delete(); } catch (IOException e) { supportSymlinks = Boolean.FALSE; } finally { if (tempFile != null) tempFile.delete(); } } public static void createSymLink(File path, String target) throws IOException { Path nioPath = path.toPath(); if (Files.exists(nioPath, LinkOption.NOFOLLOW_LINKS)) Files.delete(nioPath); if (true) target = target.replace('/', '\\'); Path nioTarget = new File(target).toPath(); Files.createSymbolicLink(nioPath, nioTarget); } } ---------- END SOURCE ---------- CUSTOMER SUBMITTED WORKAROUND : Run java as Administrator

    JDK Bug System | 2 years ago | Webbug Group
    java.lang.InternalError: Should not get here
  6. 0

    Simple steps: * Download Jenkins.war (1.609.1) * java -jar jenkins.war (java 1.7 and 1.8) * launch a build Appear this error: {code:none} ln builds\lastSuccessfulBuild C:\Users\username\.jenkins\jobs\dir\lastSuccessful failed java.io.IOException: java.lang.reflect.InvocationTargetException at hudson.Util.createSymlinkJava7(Util.java:1255) at hudson.Util.createSymlink(Util.java:1142) at hudson.model.Run.createSymlink(Run.java:1845) at hudson.model.Run.updateSymlinks(Run.java:1826) at hudson.model.Run.execute(Run.java:1739) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Caused by: java.lang.reflect.InvocationTargetException 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 hudson.Util.createSymlinkJava7(Util.java:1226) ... 7 more Caused by: java.lang.InternalError: Should not get here at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink0(Native Method) at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink(WindowsNativeDispatcher.java:890) at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(WindowsFileSystemProvider.java:570) at java.nio.file.Files.createSymbolicLink(Files.java:996) ... 12 more ln builds\lastStableBuild C:\Users\username\.jenkins\jobs\dir\lastStable failed java.io.IOException: java.lang.reflect.InvocationTargetException at hudson.Util.createSymlinkJava7(Util.java:1255) at hudson.Util.createSymlink(Util.java:1142) at hudson.model.Run.createSymlink(Run.java:1845) at hudson.model.Run.updateSymlinks(Run.java:1827) at hudson.model.Run.execute(Run.java:1739) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Caused by: java.lang.reflect.InvocationTargetException 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 hudson.Util.createSymlinkJava7(Util.java:1226) ... 7 more Caused by: java.lang.InternalError: Should not get here at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink0(Native Method) at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink(WindowsNativeDispatcher.java:890) at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(WindowsFileSystemProvider.java:570) at java.nio.file.Files.createSymbolicLink(Files.java:996) ... 12 more Building in workspace C:\Users\username\.jenkins\jobs\dir\workspace [workspace] $ cmd /c call C:\Users\username\AppData\Local\Temp\hudson4368696166847241448.bat C:\Users\username\.jenkins\jobs\dir\workspace>echo off Hello world from jenkins Volume in drive C is OSDISK Volume Serial Number is 7CBA-8523 Directory of C:\Users\username\.jenkins\jobs\dir\workspace 23/06/2015 18:45 <DIR> . 23/06/2015 18:45 <DIR> .. 0 File(s) 0 bytes 2 Dir(s) 57.777.426.432 bytes free Finished: SUCCESS {code} The job finished successfully but always show this error in the console.

    Jenkins JIRA | 1 year ago | Fernando Rosado Altamirano
    java.io.IOException: java.lang.reflect.InvocationTargetException

    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.InternalError

      Should not get here

      at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink0()
    2. Java RT
      Files.createSymbolicLink
      1. sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink0(Native Method)
      2. sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink(Unknown Source)
      3. sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(Unknown Source)
      4. java.nio.file.Files.createSymbolicLink(Unknown Source)
      4 frames
    3. uu.os.samples
      TestSimlink.main
      1. uu.os.samples.TestSimlink.createSymLink(TestSimlink.java:47)
      2. uu.os.samples.TestSimlink.detectSymlinkSupport(TestSimlink.java:29)
      3. uu.os.samples.TestSimlink.main(TestSimlink.java:19)
      3 frames