Eclipse 无法启动调试方式

发布于 2024-10-08 06:57:44 字数 17581 浏览 4 评论 0原文

我正在 Eclipse 中开发 Java 项目。我可以启动应用程序(运行方式)并且工作正常,但我无法启动调试方式(我可以启动调试方式,但突然我不能再启动了)。有人对这种奇怪的东西有经验吗?


@dimitrisil 在调试控制台中

MainWindow (1) [Java Application]   
    com.euroicc.histo.view.MainWindow at localhost:4325 
        Thread [AWT-Shutdown] (Running) 
        Daemon Thread [AWT-Windows] (Running)   
        Thread [AWT-EventQueue-0] (Suspended (exception NumberFormatException)) 
            Integer.parseInt(String, int) line: not available   
            Integer.<init>(String) line: not available  
            InetAddressCachePolicy.<clinit>() line: not available   
            InetAddress$Cache.getPolicy() line: not available   
            InetAddress$Cache.put(String, Object) line: not available   
            InetAddress.cacheInitIfNeeded() line: not available 
            InetAddress.cacheAddress(String, Object, boolean) line: not available   
            InetAddress.getAddressFromNameService(String, InetAddress) line: not available  
            InetAddress.getLocalHost() line: not available  
            SeedGenerator$1.run() line: not available   
            AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method]  
            SeedGenerator.getSystemEntropy() line: not available    
            SecureRandom.engineNextBytes(byte[]) line: not available    
            SecureRandom.nextBytes(byte[]) line: not available  
            SecureRandom.next(int) line: not available  
            SecureRandom(Random).nextLong() line: not available 
            File.generateFile(String, String, File) line: not available 
            File.createTempFile(String, String, File) line: not available   
            FileCacheImageInputStream.<init>(InputStream, File) line: not available 
            InputStreamImageInputStreamSpi.createInputStreamInstance(Object, boolean, File) line: not available 
            ImageIO.createImageInputStream(Object) line: not available  
            ImageIO.read(URL) line: not available   
            BrushedMetalDecorationPainter.<init>() line: 69 
            BusinessBlackSteelSkin.<init>() line: 135   
            SubstanceBusinessBlackSteelLookAndFeel.<init>() line: 54    
            MainWindow$7.run() line: 238    
            InvocationEvent.dispatch() line: not available  
            EventQueue.dispatchEvent(AWTEvent) line: not available  
            EventDispatchThread.pumpOneEventForFilters(int) line: not available 
            EventDispatchThread.pumpEventsForFilter(int, Conditional, EventFilter) line: not available  
            EventDispatchThread.pumpEventsForHierarchy(int, Conditional, Component) line: not available 
            EventDispatchThread.pumpEvents(int, Conditional) line: not available    
            EventDispatchThread.pumpEvents(Conditional) line: not available 
            EventDispatchThread.run() line: not available   
        Thread [DestroyJavaVM] (Running)    
    C:\Program Files\Java\jre1.6.0_17\bin\javaw.exe (17.12.2010. 15.00.45)  
MainWindow (1) [Java Application]   
    com.euroicc.histo.view.MainWindow at localhost:4363 
        Thread [AWT-Shutdown] (Running) 
        Daemon Thread [AWT-Windows] (Running)   
        Thread [AWT-EventQueue-0] (Suspended (exception NumberFormatException)) 
            Integer.parseInt(String, int) line: not available   
            Integer.<init>(String) line: not available  
            InetAddressCachePolicy.<clinit>() line: not available   
            InetAddress$Cache.getPolicy() line: not available   
            InetAddress$Cache.put(String, Object) line: not available   
            InetAddress.cacheInitIfNeeded() line: not available 
            InetAddress.cacheAddress(String, Object, boolean) line: not available   
            InetAddress.getAddressFromNameService(String, InetAddress) line: not available  
            InetAddress.getLocalHost() line: not available  
            SeedGenerator$1.run() line: not available   
            AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method]  
            SeedGenerator.getSystemEntropy() line: not available    
            SecureRandom.engineNextBytes(byte[]) line: not available    
            SecureRandom.nextBytes(byte[]) line: not available  
            SecureRandom.next(int) line: not available  
            SecureRandom(Random).nextLong() line: not available 
            File.generateFile(String, String, File) line: not available 
            File.createTempFile(String, String, File) line: not available   
            FileCacheImageInputStream.<init>(InputStream, File) line: not available 
            InputStreamImageInputStreamSpi.createInputStreamInstance(Object, boolean, File) line: not available 
            ImageIO.createImageInputStream(Object) line: not available  
            ImageIO.read(URL) line: not available   
            BrushedMetalDecorationPainter.<init>() line: 69 
            BusinessBlackSteelSkin.<init>() line: 135   
            SubstanceBusinessBlackSteelLookAndFeel.<init>() line: 54    
            MainWindow$7.run() line: 238    
            InvocationEvent.dispatch() line: not available  
            EventQueue.dispatchEvent(AWTEvent) line: not available  
            EventDispatchThread.pumpOneEventForFilters(int) line: not available 
            EventDispatchThread.pumpEventsForFilter(int, Conditional, EventFilter) line: not available  
            EventDispatchThread.pumpEventsForHierarchy(int, Conditional, Component) line: not available 
            EventDispatchThread.pumpEvents(int, Conditional) line: not available    
            EventDispatchThread.pumpEvents(Conditional) line: not available 
            EventDispatchThread.run() line: not available   
        Thread [DestroyJavaVM] (Running)    
    C:\Program Files\Java\jre1.6.0_17\bin\javaw.exe (17.12.2010. 15.01.06)  
MainWindow (1) [Java Application]   
    com.euroicc.histo.view.MainWindow at localhost:4369 
        Thread [AWT-Shutdown] (Running) 
        Daemon Thread [AWT-Windows] (Running)   
        Thread [AWT-EventQueue-0] (Suspended (exception NumberFormatException)) 
            Integer.parseInt(String, int) line: not available   
            Integer.<init>(String) line: not available  
            InetAddressCachePolicy.<clinit>() line: not available   
            InetAddress$Cache.getPolicy() line: not available   
            InetAddress$Cache.put(String, Object) line: not available   
            InetAddress.cacheInitIfNeeded() line: not available 
            InetAddress.cacheAddress(String, Object, boolean) line: not available   
            InetAddress.getAddressFromNameService(String, InetAddress) line: not available  
            InetAddress.getLocalHost() line: not available  
            SeedGenerator$1.run() line: not available   
            AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method]  
            SeedGenerator.getSystemEntropy() line: not available    
            SecureRandom.engineNextBytes(byte[]) line: not available    
            SecureRandom.nextBytes(byte[]) line: not available  
            SecureRandom.next(int) line: not available  
            SecureRandom(Random).nextLong() line: not available 
            File.generateFile(String, String, File) line: not available 
            File.createTempFile(String, String, File) line: not available   
            FileCacheImageInputStream.<init>(InputStream, File) line: not available 
            InputStreamImageInputStreamSpi.createInputStreamInstance(Object, boolean, File) line: not available 
            ImageIO.createImageInputStream(Object) line: not available  
            ImageIO.read(URL) line: not available   
            BrushedMetalDecorationPainter.<init>() line: 69 
            BusinessBlackSteelSkin.<init>() line: 135   
            SubstanceBusinessBlackSteelLookAndFeel.<init>() line: 54    
            MainWindow$7.run() line: 238    
            InvocationEvent.dispatch() line: not available  
            EventQueue.dispatchEvent(AWTEvent) line: not available  
            EventDispatchThread.pumpOneEventForFilters(int) line: not available 
            EventDispatchThread.pumpEventsForFilter(int, Conditional, EventFilter) line: not available  
            EventDispatchThread.pumpEventsForHierarchy(int, Conditional, Component) line: not available 
            EventDispatchThread.pumpEvents(int, Conditional) line: not available    
            EventDispatchThread.pumpEvents(Conditional) line: not available 
            EventDispatchThread.run() line: not available   
        Thread [DestroyJavaVM] (Running)    
    C:\Program Files\Java\jre1.6.0_17\bin\javaw.exe (17.12.2010. 15.01.30)  
MainWindow (1) [Java Application]   
    com.euroicc.histo.view.MainWindow at localhost:4383 
        Thread [AWT-Shutdown] (Running) 
        Daemon Thread [AWT-Windows] (Running)   
        Thread [AWT-EventQueue-0] (Suspended (exception NumberFormatException)) 
            Integer.parseInt(String, int) line: not available   
            Integer.<init>(String) line: not available  
            InetAddressCachePolicy.<clinit>() line: not available   
            InetAddress$Cache.getPolicy() line: not available   
            InetAddress$Cache.put(String, Object) line: not available   
            InetAddress.cacheInitIfNeeded() line: not available 
            InetAddress.cacheAddress(String, Object, boolean) line: not available   
            InetAddress.getAddressFromNameService(String, InetAddress) line: not available  
            InetAddress.getLocalHost() line: not available  
            SeedGenerator$1.run() line: not available   
            AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method]  
            SeedGenerator.getSystemEntropy() line: not available    
            SecureRandom.engineNextBytes(byte[]) line: not available    
            SecureRandom.nextBytes(byte[]) line: not available  
            SecureRandom.next(int) line: not available  
            SecureRandom(Random).nextLong() line: not available 
            File.generateFile(String, String, File) line: not available 
            File.createTempFile(String, String, File) line: not available   
            FileCacheImageInputStream.<init>(InputStream, File) line: not available 
            InputStreamImageInputStreamSpi.createInputStreamInstance(Object, boolean, File) line: not available 
            ImageIO.createImageInputStream(Object) line: not available  
            ImageIO.read(URL) line: not available   
            BrushedMetalDecorationPainter.<init>() line: 69 
            BusinessBlackSteelSkin.<init>() line: 135   
            SubstanceBusinessBlackSteelLookAndFeel.<init>() line: 54    
            MainWindow$7.run() line: 238    
            InvocationEvent.dispatch() line: not available  
            EventQueue.dispatchEvent(AWTEvent) line: not available  
            EventDispatchThread.pumpOneEventForFilters(int) line: not available 
            EventDispatchThread.pumpEventsForFilter(int, Conditional, EventFilter) line: not available  
            EventDispatchThread.pumpEventsForHierarchy(int, Conditional, Component) line: not available 
            EventDispatchThread.pumpEvents(int, Conditional) line: not available    
            EventDispatchThread.pumpEvents(Conditional) line: not available 
            EventDispatchThread.run() line: not available   
        Thread [DestroyJavaVM] (Running)    
    C:\Program Files\Java\jre1.6.0_17\bin\javaw.exe (17.12.2010. 15.05.23)  
MainWindow (1) [Java Application]   
    com.euroicc.histo.view.MainWindow at localhost:2740 
        Thread [AWT-Shutdown] (Running) 
        Daemon Thread [AWT-Windows] (Running)   
        Thread [AWT-EventQueue-0] (Suspended (exception NumberFormatException)) 
            Integer.parseInt(String, int) line: not available   
            Integer.<init>(String) line: not available  
            InetAddressCachePolicy.<clinit>() line: not available   
            InetAddress$Cache.getPolicy() line: not available   
            InetAddress$Cache.put(String, Object) line: not available   
            InetAddress.cacheInitIfNeeded() line: not available 
            InetAddress.cacheAddress(String, Object, boolean) line: not available   
            InetAddress.getAddressFromNameService(String, InetAddress) line: not available  
            InetAddress.getLocalHost() line: not available  
            SeedGenerator$1.run() line: not available   
            AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method]  
            SeedGenerator.getSystemEntropy() line: not available    
            SecureRandom.engineNextBytes(byte[]) line: not available    
            SecureRandom.nextBytes(byte[]) line: not available  
            SecureRandom.next(int) line: not available  
            SecureRandom(Random).nextLong() line: not available 
            File.generateFile(String, String, File) line: not available 
            File.createTempFile(String, String, File) line: not available   
            FileCacheImageInputStream.<init>(InputStream, File) line: not available 
            InputStreamImageInputStreamSpi.createInputStreamInstance(Object, boolean, File) line: not available 
            ImageIO.createImageInputStream(Object) line: not available  
            ImageIO.read(URL) line: not available   
            BrushedMetalDecorationPainter.<init>() line: 69 
            BusinessBlackSteelSkin.<init>() line: 135   
            SubstanceBusinessBlackSteelLookAndFeel.<init>() line: 54    
            MainWindow$7.run() line: 238    
            InvocationEvent.dispatch() line: not available  
            EventQueue.dispatchEvent(AWTEvent) line: not available  
            EventDispatchThread.pumpOneEventForFilters(int) line: not available 
            EventDispatchThread.pumpEventsForFilter(int, Conditional, EventFilter) line: not available  
            EventDispatchThread.pumpEventsForHierarchy(int, Conditional, Component) line: not available 
            EventDispatchThread.pumpEvents(int, Conditional) line: not available    
            EventDispatchThread.pumpEvents(Conditional) line: not available 
            EventDispatchThread.run() line: not available   
        Thread [DestroyJavaVM] (Running)    
    C:\Program Files\Java\jre1.6.0_17\bin\javaw.exe (17.12.2010. 16.17.11)  
MainWindow (1) [Java Application]   
    com.euroicc.histo.view.MainWindow at localhost:2926 
        Thread [AWT-Shutdown] (Running) 
        Daemon Thread [AWT-Windows] (Running)   
        Thread [DestroyJavaVM] (Running)    
        Thread [AWT-EventQueue-0] (Suspended (exception NumberFormatException)) 
            Integer.parseInt(String, int) line: not available   
            Integer.<init>(String) line: not available  
            InetAddressCachePolicy.<clinit>() line: not available   
            InetAddress$Cache.getPolicy() line: not available   
            InetAddress$Cache.put(String, Object) line: not available   
            InetAddress.cacheInitIfNeeded() line: not available 
            InetAddress.cacheAddress(String, Object, boolean) line: not available   
            InetAddress.getAddressFromNameService(String, InetAddress) line: not available  
            InetAddress.getLocalHost() line: not available  
            SeedGenerator$1.run() line: not available   
            AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method]  
            SeedGenerator.getSystemEntropy() line: not available    
            SecureRandom.engineNextBytes(byte[]) line: not available    
            SecureRandom.nextBytes(byte[]) line: not available  
            SecureRandom.next(int) line: not available  
            SecureRandom(Random).nextLong() line: not available 
            File.generateFile(String, String, File) line: not available 
            File.createTempFile(String, String, File) line: not available   
            FileCacheImageInputStream.<init>(InputStream, File) line: not available 
            InputStreamImageInputStreamSpi.createInputStreamInstance(Object, boolean, File) line: not available 
            ImageIO.createImageInputStream(Object) line: not available  
            ImageIO.read(URL) line: not available   
            BrushedMetalDecorationPainter.<init>() line: 69 
            BusinessBlackSteelSkin.<init>() line: 135   
            SubstanceBusinessBlackSteelLookAndFeel.<init>() line: 54    
            MainWindow$7.run() line: 238    
            InvocationEvent.dispatch() line: not available  
            EventQueue.dispatchEvent(AWTEvent) line: not available  
            EventDispatchThread.pumpOneEventForFilters(int) line: not available 
            EventDispatchThread.pumpEventsForFilter(int, Conditional, EventFilter) line: not available  
            EventDispatchThread.pumpEventsForHierarchy(int, Conditional, Component) line: not available 
            EventDispatchThread.pumpEvents(int, Conditional) line: not available    
            EventDispatchThread.pumpEvents(Conditional) line: not available 
            EventDispatchThread.run() line: not available   
    C:\Program Files\Java\jre1.6.0_17\bin\javaw.exe (17.12.2010. 16.37.37)  

I am working on Java project in Eclipse. I can start application (Run As ) and i works fine, but I cannot start Debug As ( I could start Debug As but suddenly I cannot anymore ). Does anybody have experience with this weird stuff ?


@dimitrisil
in debug console

MainWindow (1) [Java Application]   
    com.euroicc.histo.view.MainWindow at localhost:4325 
        Thread [AWT-Shutdown] (Running) 
        Daemon Thread [AWT-Windows] (Running)   
        Thread [AWT-EventQueue-0] (Suspended (exception NumberFormatException)) 
            Integer.parseInt(String, int) line: not available   
            Integer.<init>(String) line: not available  
            InetAddressCachePolicy.<clinit>() line: not available   
            InetAddress$Cache.getPolicy() line: not available   
            InetAddress$Cache.put(String, Object) line: not available   
            InetAddress.cacheInitIfNeeded() line: not available 
            InetAddress.cacheAddress(String, Object, boolean) line: not available   
            InetAddress.getAddressFromNameService(String, InetAddress) line: not available  
            InetAddress.getLocalHost() line: not available  
            SeedGenerator$1.run() line: not available   
            AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method]  
            SeedGenerator.getSystemEntropy() line: not available    
            SecureRandom.engineNextBytes(byte[]) line: not available    
            SecureRandom.nextBytes(byte[]) line: not available  
            SecureRandom.next(int) line: not available  
            SecureRandom(Random).nextLong() line: not available 
            File.generateFile(String, String, File) line: not available 
            File.createTempFile(String, String, File) line: not available   
            FileCacheImageInputStream.<init>(InputStream, File) line: not available 
            InputStreamImageInputStreamSpi.createInputStreamInstance(Object, boolean, File) line: not available 
            ImageIO.createImageInputStream(Object) line: not available  
            ImageIO.read(URL) line: not available   
            BrushedMetalDecorationPainter.<init>() line: 69 
            BusinessBlackSteelSkin.<init>() line: 135   
            SubstanceBusinessBlackSteelLookAndFeel.<init>() line: 54    
            MainWindow$7.run() line: 238    
            InvocationEvent.dispatch() line: not available  
            EventQueue.dispatchEvent(AWTEvent) line: not available  
            EventDispatchThread.pumpOneEventForFilters(int) line: not available 
            EventDispatchThread.pumpEventsForFilter(int, Conditional, EventFilter) line: not available  
            EventDispatchThread.pumpEventsForHierarchy(int, Conditional, Component) line: not available 
            EventDispatchThread.pumpEvents(int, Conditional) line: not available    
            EventDispatchThread.pumpEvents(Conditional) line: not available 
            EventDispatchThread.run() line: not available   
        Thread [DestroyJavaVM] (Running)    
    C:\Program Files\Java\jre1.6.0_17\bin\javaw.exe (17.12.2010. 15.00.45)  
MainWindow (1) [Java Application]   
    com.euroicc.histo.view.MainWindow at localhost:4363 
        Thread [AWT-Shutdown] (Running) 
        Daemon Thread [AWT-Windows] (Running)   
        Thread [AWT-EventQueue-0] (Suspended (exception NumberFormatException)) 
            Integer.parseInt(String, int) line: not available   
            Integer.<init>(String) line: not available  
            InetAddressCachePolicy.<clinit>() line: not available   
            InetAddress$Cache.getPolicy() line: not available   
            InetAddress$Cache.put(String, Object) line: not available   
            InetAddress.cacheInitIfNeeded() line: not available 
            InetAddress.cacheAddress(String, Object, boolean) line: not available   
            InetAddress.getAddressFromNameService(String, InetAddress) line: not available  
            InetAddress.getLocalHost() line: not available  
            SeedGenerator$1.run() line: not available   
            AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method]  
            SeedGenerator.getSystemEntropy() line: not available    
            SecureRandom.engineNextBytes(byte[]) line: not available    
            SecureRandom.nextBytes(byte[]) line: not available  
            SecureRandom.next(int) line: not available  
            SecureRandom(Random).nextLong() line: not available 
            File.generateFile(String, String, File) line: not available 
            File.createTempFile(String, String, File) line: not available   
            FileCacheImageInputStream.<init>(InputStream, File) line: not available 
            InputStreamImageInputStreamSpi.createInputStreamInstance(Object, boolean, File) line: not available 
            ImageIO.createImageInputStream(Object) line: not available  
            ImageIO.read(URL) line: not available   
            BrushedMetalDecorationPainter.<init>() line: 69 
            BusinessBlackSteelSkin.<init>() line: 135   
            SubstanceBusinessBlackSteelLookAndFeel.<init>() line: 54    
            MainWindow$7.run() line: 238    
            InvocationEvent.dispatch() line: not available  
            EventQueue.dispatchEvent(AWTEvent) line: not available  
            EventDispatchThread.pumpOneEventForFilters(int) line: not available 
            EventDispatchThread.pumpEventsForFilter(int, Conditional, EventFilter) line: not available  
            EventDispatchThread.pumpEventsForHierarchy(int, Conditional, Component) line: not available 
            EventDispatchThread.pumpEvents(int, Conditional) line: not available    
            EventDispatchThread.pumpEvents(Conditional) line: not available 
            EventDispatchThread.run() line: not available   
        Thread [DestroyJavaVM] (Running)    
    C:\Program Files\Java\jre1.6.0_17\bin\javaw.exe (17.12.2010. 15.01.06)  
MainWindow (1) [Java Application]   
    com.euroicc.histo.view.MainWindow at localhost:4369 
        Thread [AWT-Shutdown] (Running) 
        Daemon Thread [AWT-Windows] (Running)   
        Thread [AWT-EventQueue-0] (Suspended (exception NumberFormatException)) 
            Integer.parseInt(String, int) line: not available   
            Integer.<init>(String) line: not available  
            InetAddressCachePolicy.<clinit>() line: not available   
            InetAddress$Cache.getPolicy() line: not available   
            InetAddress$Cache.put(String, Object) line: not available   
            InetAddress.cacheInitIfNeeded() line: not available 
            InetAddress.cacheAddress(String, Object, boolean) line: not available   
            InetAddress.getAddressFromNameService(String, InetAddress) line: not available  
            InetAddress.getLocalHost() line: not available  
            SeedGenerator$1.run() line: not available   
            AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method]  
            SeedGenerator.getSystemEntropy() line: not available    
            SecureRandom.engineNextBytes(byte[]) line: not available    
            SecureRandom.nextBytes(byte[]) line: not available  
            SecureRandom.next(int) line: not available  
            SecureRandom(Random).nextLong() line: not available 
            File.generateFile(String, String, File) line: not available 
            File.createTempFile(String, String, File) line: not available   
            FileCacheImageInputStream.<init>(InputStream, File) line: not available 
            InputStreamImageInputStreamSpi.createInputStreamInstance(Object, boolean, File) line: not available 
            ImageIO.createImageInputStream(Object) line: not available  
            ImageIO.read(URL) line: not available   
            BrushedMetalDecorationPainter.<init>() line: 69 
            BusinessBlackSteelSkin.<init>() line: 135   
            SubstanceBusinessBlackSteelLookAndFeel.<init>() line: 54    
            MainWindow$7.run() line: 238    
            InvocationEvent.dispatch() line: not available  
            EventQueue.dispatchEvent(AWTEvent) line: not available  
            EventDispatchThread.pumpOneEventForFilters(int) line: not available 
            EventDispatchThread.pumpEventsForFilter(int, Conditional, EventFilter) line: not available  
            EventDispatchThread.pumpEventsForHierarchy(int, Conditional, Component) line: not available 
            EventDispatchThread.pumpEvents(int, Conditional) line: not available    
            EventDispatchThread.pumpEvents(Conditional) line: not available 
            EventDispatchThread.run() line: not available   
        Thread [DestroyJavaVM] (Running)    
    C:\Program Files\Java\jre1.6.0_17\bin\javaw.exe (17.12.2010. 15.01.30)  
MainWindow (1) [Java Application]   
    com.euroicc.histo.view.MainWindow at localhost:4383 
        Thread [AWT-Shutdown] (Running) 
        Daemon Thread [AWT-Windows] (Running)   
        Thread [AWT-EventQueue-0] (Suspended (exception NumberFormatException)) 
            Integer.parseInt(String, int) line: not available   
            Integer.<init>(String) line: not available  
            InetAddressCachePolicy.<clinit>() line: not available   
            InetAddress$Cache.getPolicy() line: not available   
            InetAddress$Cache.put(String, Object) line: not available   
            InetAddress.cacheInitIfNeeded() line: not available 
            InetAddress.cacheAddress(String, Object, boolean) line: not available   
            InetAddress.getAddressFromNameService(String, InetAddress) line: not available  
            InetAddress.getLocalHost() line: not available  
            SeedGenerator$1.run() line: not available   
            AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method]  
            SeedGenerator.getSystemEntropy() line: not available    
            SecureRandom.engineNextBytes(byte[]) line: not available    
            SecureRandom.nextBytes(byte[]) line: not available  
            SecureRandom.next(int) line: not available  
            SecureRandom(Random).nextLong() line: not available 
            File.generateFile(String, String, File) line: not available 
            File.createTempFile(String, String, File) line: not available   
            FileCacheImageInputStream.<init>(InputStream, File) line: not available 
            InputStreamImageInputStreamSpi.createInputStreamInstance(Object, boolean, File) line: not available 
            ImageIO.createImageInputStream(Object) line: not available  
            ImageIO.read(URL) line: not available   
            BrushedMetalDecorationPainter.<init>() line: 69 
            BusinessBlackSteelSkin.<init>() line: 135   
            SubstanceBusinessBlackSteelLookAndFeel.<init>() line: 54    
            MainWindow$7.run() line: 238    
            InvocationEvent.dispatch() line: not available  
            EventQueue.dispatchEvent(AWTEvent) line: not available  
            EventDispatchThread.pumpOneEventForFilters(int) line: not available 
            EventDispatchThread.pumpEventsForFilter(int, Conditional, EventFilter) line: not available  
            EventDispatchThread.pumpEventsForHierarchy(int, Conditional, Component) line: not available 
            EventDispatchThread.pumpEvents(int, Conditional) line: not available    
            EventDispatchThread.pumpEvents(Conditional) line: not available 
            EventDispatchThread.run() line: not available   
        Thread [DestroyJavaVM] (Running)    
    C:\Program Files\Java\jre1.6.0_17\bin\javaw.exe (17.12.2010. 15.05.23)  
MainWindow (1) [Java Application]   
    com.euroicc.histo.view.MainWindow at localhost:2740 
        Thread [AWT-Shutdown] (Running) 
        Daemon Thread [AWT-Windows] (Running)   
        Thread [AWT-EventQueue-0] (Suspended (exception NumberFormatException)) 
            Integer.parseInt(String, int) line: not available   
            Integer.<init>(String) line: not available  
            InetAddressCachePolicy.<clinit>() line: not available   
            InetAddress$Cache.getPolicy() line: not available   
            InetAddress$Cache.put(String, Object) line: not available   
            InetAddress.cacheInitIfNeeded() line: not available 
            InetAddress.cacheAddress(String, Object, boolean) line: not available   
            InetAddress.getAddressFromNameService(String, InetAddress) line: not available  
            InetAddress.getLocalHost() line: not available  
            SeedGenerator$1.run() line: not available   
            AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method]  
            SeedGenerator.getSystemEntropy() line: not available    
            SecureRandom.engineNextBytes(byte[]) line: not available    
            SecureRandom.nextBytes(byte[]) line: not available  
            SecureRandom.next(int) line: not available  
            SecureRandom(Random).nextLong() line: not available 
            File.generateFile(String, String, File) line: not available 
            File.createTempFile(String, String, File) line: not available   
            FileCacheImageInputStream.<init>(InputStream, File) line: not available 
            InputStreamImageInputStreamSpi.createInputStreamInstance(Object, boolean, File) line: not available 
            ImageIO.createImageInputStream(Object) line: not available  
            ImageIO.read(URL) line: not available   
            BrushedMetalDecorationPainter.<init>() line: 69 
            BusinessBlackSteelSkin.<init>() line: 135   
            SubstanceBusinessBlackSteelLookAndFeel.<init>() line: 54    
            MainWindow$7.run() line: 238    
            InvocationEvent.dispatch() line: not available  
            EventQueue.dispatchEvent(AWTEvent) line: not available  
            EventDispatchThread.pumpOneEventForFilters(int) line: not available 
            EventDispatchThread.pumpEventsForFilter(int, Conditional, EventFilter) line: not available  
            EventDispatchThread.pumpEventsForHierarchy(int, Conditional, Component) line: not available 
            EventDispatchThread.pumpEvents(int, Conditional) line: not available    
            EventDispatchThread.pumpEvents(Conditional) line: not available 
            EventDispatchThread.run() line: not available   
        Thread [DestroyJavaVM] (Running)    
    C:\Program Files\Java\jre1.6.0_17\bin\javaw.exe (17.12.2010. 16.17.11)  
MainWindow (1) [Java Application]   
    com.euroicc.histo.view.MainWindow at localhost:2926 
        Thread [AWT-Shutdown] (Running) 
        Daemon Thread [AWT-Windows] (Running)   
        Thread [DestroyJavaVM] (Running)    
        Thread [AWT-EventQueue-0] (Suspended (exception NumberFormatException)) 
            Integer.parseInt(String, int) line: not available   
            Integer.<init>(String) line: not available  
            InetAddressCachePolicy.<clinit>() line: not available   
            InetAddress$Cache.getPolicy() line: not available   
            InetAddress$Cache.put(String, Object) line: not available   
            InetAddress.cacheInitIfNeeded() line: not available 
            InetAddress.cacheAddress(String, Object, boolean) line: not available   
            InetAddress.getAddressFromNameService(String, InetAddress) line: not available  
            InetAddress.getLocalHost() line: not available  
            SeedGenerator$1.run() line: not available   
            AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method]  
            SeedGenerator.getSystemEntropy() line: not available    
            SecureRandom.engineNextBytes(byte[]) line: not available    
            SecureRandom.nextBytes(byte[]) line: not available  
            SecureRandom.next(int) line: not available  
            SecureRandom(Random).nextLong() line: not available 
            File.generateFile(String, String, File) line: not available 
            File.createTempFile(String, String, File) line: not available   
            FileCacheImageInputStream.<init>(InputStream, File) line: not available 
            InputStreamImageInputStreamSpi.createInputStreamInstance(Object, boolean, File) line: not available 
            ImageIO.createImageInputStream(Object) line: not available  
            ImageIO.read(URL) line: not available   
            BrushedMetalDecorationPainter.<init>() line: 69 
            BusinessBlackSteelSkin.<init>() line: 135   
            SubstanceBusinessBlackSteelLookAndFeel.<init>() line: 54    
            MainWindow$7.run() line: 238    
            InvocationEvent.dispatch() line: not available  
            EventQueue.dispatchEvent(AWTEvent) line: not available  
            EventDispatchThread.pumpOneEventForFilters(int) line: not available 
            EventDispatchThread.pumpEventsForFilter(int, Conditional, EventFilter) line: not available  
            EventDispatchThread.pumpEventsForHierarchy(int, Conditional, Component) line: not available 
            EventDispatchThread.pumpEvents(int, Conditional) line: not available    
            EventDispatchThread.pumpEvents(Conditional) line: not available 
            EventDispatchThread.run() line: not available   
    C:\Program Files\Java\jre1.6.0_17\bin\javaw.exe (17.12.2010. 16.37.37)  

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

甲如呢乙后呢 2024-10-15 06:57:44

我发现这两个菜单对它们的目标分别感到困惑。例如,对于 Ant 构建文件,一个将继续标题为“Run As>Ant Build”,而另一个将标题为其他内容,然后失败。

重新启动 Eclipse 总是可以解决问题。

I have seen those two menus become separately confused about their target. For example, for an Ant buildfile, one will continue to be titled "Run As>Ant Build" and the other will be titled something else, and fail.

Restarting Eclipse has always solved the problem.

绿萝 2024-10-15 06:57:44

根据确实应该成为问题一部分的(格式不良)答案,看起来您可能有一个格式错误的套接字地址。

对于 INetAddress.getLocalhost,NumberFormatException 一遍又一遍地重复......

啊!您有 IPv4 或 IPv6 吗?如果 v4(十进制)解释器尝试解析 v6(十六进制)地址,事情可能会被破坏。

也可能是你的调试套接字号不是一个数字(至少不是十进制数)...但我在用户界面中没有看到任何地方可以调整它,所以我不知道你是如何破坏它的。

Based on the (poorly formatted) answer that really ought to be part of the question, it looks like you might have a malformed socket address.

The NumberFormatException is repeated over and over again, in regards to INetAddress.getLocalhost...

Ah! Do you have IPv4 or IPv6? If a v4 (decimal) interpreter tried to parse a v6 (hex) address, things could get mangled.

It could also be that your debug socket number isn't a number (at least not a decimal one)... but I don't see anywhere in the UI to adjust this so I don't see how you could have broken it.

魔法少女 2024-10-15 06:57:44

只是为了以防万一将来有人会遇到同样的问题。最近,我被相同的用例所愚弄(但是在 NetBeans 中) - 问题是由 java.lang.IllegalArgumentException 上的断点引起的,我之前创建了一段时间,但忘记了它,所以 IDE 一直在某个位置停止Java核心代码只是因为那个断点,但我认为这是由我的代码或运行时环境中的某些东西引起的:(

实际上,我会说这个问题是核心Java库中的一般编码风格。有在 if() 条件更合适的情况下,许多地方都会引发异常,这会导致异常调试时出现重大问题 - 在该特定情况下,问题太多了,它是由以下几行引起的(我。从这里获取 InetAddressCachePolicy 的来源 http://download.java.net/openjdk/jdk6/):

    try {
        tmp = new Integer(
          java.security.AccessController.doPrivileged (
            new PrivilegedAction<String>() {
              public String run() {
                  return Security.getProperty(cachePolicyProp);
              }
          }));
    } catch (NumberFormatException e) {
        // ignore
    }

您可能会注意到,编写代码的人知道配置中提供的潜在“非数字”字符串,但没有尝试更优雅地处理至少 String 为 null 或空的情况,这实际上是该问题的案例。

这里有关于 Integer.parseInt() 的相关讨论 - Java:封装的好方法Integer.parseInt()

Just for the case someone will get to the same problem in future. Recently I was fooled by the same use-case (however in NetBeans) - the problem was caused by the breakpoint on java.lang.IllegalArgumentException I've created some time ago and forgot about it, so IDE was stopping all the time somewhere in the Java core code just because of that breakpoint, but I was thinking it was caused by something in my code or run-time environment :(

Actually, I would say that this problem is in general coding style in core Java libraries. There are to many places where exceptions are thrown in the cases where if() condition would be more appropriate and this causes major problem in debugging of Exceptions - there are just too many of them. In that particular case problem it is caused by the following lines (I took sources of InetAddressCachePolicy from here http://download.java.net/openjdk/jdk6/):

    try {
        tmp = new Integer(
          java.security.AccessController.doPrivileged (
            new PrivilegedAction<String>() {
              public String run() {
                  return Security.getProperty(cachePolicyProp);
              }
          }));
    } catch (NumberFormatException e) {
        // ignore
    }

You may notice that someone who wrote the code was aware about potential 'not-a-number' String provided in configuration, but did not try to handle more elegantly at least cases of String is null or empty, which is actually the case for that problem.

There is relevant discussion about Integer.parseInt() here - Java: Good way to encapsulate Integer.parseInt()

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文