Community
Participate
Working Groups
According example below, everytime i try to auto-complete the creation of any new Interface eclipse throw a RuntimeException. Ex: AnyInterface in = new Any + Ctrl+space look to the message in attachment..
Created attachment 226913 [details] RuntimeException message
We need the exception that got written to your .log file (in <workspace>/.metadata).
Created attachment 226914 [details] log file
ok, adding attachment..
(In reply to comment #3) > Created attachment 226914 [details] > log file This is only an excerpt and does e.g. not contain the build id. Can you provide a test case? I can't reproduce this using 4.3 M5a: http://download.eclipse.org/eclipse/downloads/drops4/S-4.3M5a-201302041400/
I also get this error with Juno (e.g. if I step into javax.net.ssl.SSLSocketFactory.getDefault()). java.lang.NullPointerException at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:540) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:255) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:241) at org.eclipse.jdt.internal.core.JavaElement.exists(JavaElement.java:159) at org.eclipse.jdt.internal.corext.util.JavaModelUtil.isPolymorphicSignature(JavaModelUtil.java:932) at org.eclipse.jdt.internal.corext.refactoring.RefactoringAvailabilityTester.isIntroduceIndirectionAvailable(RefactoringAvailabilityTester.java:744) at org.eclipse.jdt.internal.corext.refactoring.RefactoringAvailabilityTester.isIntroduceIndirectionAvailable(RefactoringAvailabilityTester.java:754) at org.eclipse.jdt.ui.actions.IntroduceIndirectionAction.selectionChanged(IntroduceIndirectionAction.java:91) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged(SelectionDispatchAction.java:263) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged(SelectionDispatchAction.java:258) at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162) at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2188) at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1211) at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1241) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:239) at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:233) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:403) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) eclipse.buildId=M20130204-1200 java.version=1.6.0_27 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
(In reply to comment #6) > I also get this error with Juno (e.g. if I step into > javax.net.ssl.SSLSocketFactory.getDefault()). Did you mean in debug mode? I can't reproduce this with a Step Into or a Open Declaration. Exact steps to reproduce the bug would be welcome.
No not in debug mode, simply open declaration. It seems to depend on the jar file in the JDK. I have no problems with rt.jar but classes from jsse.jar will cause the NPE.
(In reply to comment #8) > No not in debug mode, simply open declaration. It seems to depend on the jar > file in the JDK. I have no problems with rt.jar but classes from jsse.jar > will cause the NPE. I can't reproduce this problem with a plain java project. Can you try that and see if you still see the problem? It would better if you can isolate the problem and let us know.
Yes the problem also exists with a plain Java project. I'm using Juno JEE with M2E, M2E-WTP, Groovy-Eclipse and Spring IDE.
(In reply to comment #10) > Yes the problem also exists with a plain Java project. I'm using Juno JEE > with M2E, M2E-WTP, Groovy-Eclipse and Spring IDE. I also can't reproduce it with plain Java project and Juno JEE. Could you attach your simple Java project and provide the steps that lead to the NPE using said project?
(In reply to comment #10) > Yes the problem also exists with a plain Java project. I'm using Juno JEE > with M2E, M2E-WTP, Groovy-Eclipse and Spring IDE. ^^^^^^^^^^^^^^ Cc'ing Andy, just in case :) Line numbers, however, look kosher at a first glance.
Created attachment 229614 [details] Testproject I've attached a sample project, but I think there is nothing special in it. I only have to hit F3 (Open Declaration) on getDefault() to reproduce the NPE.
(In reply to comment #13) > Created attachment 229614 [details] > Testproject > > I've attached a sample project, but I think there is nothing special in it. > I only have to hit F3 (Open Declaration) on getDefault() to reproduce the > NPE. I can't reproduce with this project either. This time I tried the latest I build - I20130416-0800
(In reply to comment #13) > Created attachment 229614 [details] > Testproject > > I've attached a sample project, but I think there is nothing special in it. > I only have to hit F3 (Open Declaration) on getDefault() to reproduce the > NPE. I can't reproduce it. 1. download latest stable SDK: http://download.eclipse.org/eclipse/downloads/drops4/S-4.3M6-201303141330/ 2. start with a new workspace 3. import the test project 4. open Test 5. select "getDefault" 6. press F3 ==> works I suspect this is caused by some other plug-in(s) that you installed. Please reopen if you can provide steps, including setting up the install.
Created attachment 229928 [details] Stacktrace I just had the same error while trying to step into sun.net.www.protocol.http.Handler.openConnection(URL). The project was debugged using JDK 6u45. Some info about my system: *** Platform Details: *** System properties: applicationXMI=org.eclipse.ui.workbench/LegacyIDE.e4xmi awt.toolkit=sun.awt.windows.WToolkit eclipse.application=org.eclipse.ui.ide.workbench eclipse.buildId=M20130204-1200 eclipse.commands=-os win32 -ws win32 -arch x86_64 -showsplash C:\eclipse\\plugins\org.eclipse.platform_4.2.2.v201302041200\splash.bmp -launcher C:\eclipse\eclipse.exe -name Eclipse --launcher.library C:\eclipse\\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807\eclipse_1503.dll -startup C:\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.overrideVmargs -exitdata 1cdc_48 -vm C:\Windows\system32\javaw.exe eclipse.home.location=file:/C:/eclipse/ eclipse.launcher=C:\eclipse\eclipse.exe eclipse.launcher.name=Eclipse eclipse.p2.data.area=@config.dir/../p2/ eclipse.p2.profile=SDKProfile eclipse.product=org.eclipse.sdk.ide eclipse.startTime=1366390979871 eclipse.vm=C:\Windows\system32\javaw.exe eclipse.vmargs=-Xms40m -Xmx512m -XX:MaxPermSize=256m -jar C:\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar equinox.use.ds=true file.encoding=Cp1252 file.encoding.pkg=sun.io file.separator=\ gosh.args=--nointeractive java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment java.awt.printerjob=sun.awt.windows.WPrinterJob java.class.path=C:\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar java.class.version=51.0 java.endorsed.dirs=C:\Program Files\Java\jre7\lib\endorsed java.ext.dirs=C:\Program Files\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext java.home=C:\Program Files\Java\jre7 java.io.tmpdir=C:\Users\Vincent\AppData\Local\Temp\ java.library.path=C:\Windows\system32;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\WANdisco\Subversion;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;. java.runtime.name=Java(TM) SE Runtime Environment java.runtime.version=1.7.0_21-b11 java.specification.name=Java Platform API Specification java.specification.vendor=Oracle Corporation java.specification.version=1.7 java.vendor=Oracle Corporation java.vendor.url=http://java.oracle.com/ java.vendor.url.bug=http://bugreport.sun.com/bugreport/ java.version=1.7.0_21 java.vm.info=mixed mode java.vm.name=Java HotSpot(TM) 64-Bit Server VM java.vm.specification.name=Java Virtual Machine Specification java.vm.specification.vendor=Oracle Corporation java.vm.specification.version=1.7 java.vm.vendor=Oracle Corporation java.vm.version=23.21-b01 line.separator= org.eclipse.debug.ui.breakpoints.toggleFactoriesUsed=false org.eclipse.debug.ui.debugViewToolbarVisible=false org.eclipse.equinox.launcher.splash.location=C:\eclipse\\plugins\org.eclipse.platform_4.2.2.v201302041200\splash.bmp org.eclipse.equinox.simpleconfigurator.configUrl=file:org.eclipse.equinox.simpleconfigurator/bundles.info org.eclipse.jdt.debug.ui.debuggerActive=true org.eclipse.jdt.debug.ui.instanceof.IJavaStackFrame=true org.eclipse.jdt.debug.ui.supportsForceReturn=true org.eclipse.jdt.debug.ui.supportsInstanceRetrieval=true org.eclipse.update.reconcile=false org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,OSGi/Minimum-1.2,JRE-1.1,J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5,JavaSE-1.6,JavaSE-1.7 org.osgi.framework.language=fr org.osgi.framework.os.name=Windows8 org.osgi.framework.os.version=6.2.0 org.osgi.framework.processor=x86-64 org.osgi.framework.system.capabilities=osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0, 1.1, 1.2",osgi.ee; osgi.ee="JRE"; version:List<Version>="1.0, 1.1",osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7" org.osgi.framework.system.packages=javax.accessibility,javax.activation,javax.activity,javax.annotation,javax.annotation.processing,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.metadata,javax.imageio.plugins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.jws,javax.jws.soap,javax.lang.model,javax.lang.model.element,javax.lang.model.type,javax.lang.model.util,javax.management,javax.management.loading,javax.management.modelmbean,javax.management.monitor,javax.management.openmbean,javax.management.relation,javax.management.remote,javax.management.remote.rmi,javax.management.timer,javax.naming,javax.naming.directory,javax.naming.event,javax.naming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribute.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.script,javax.security.auth,javax.security.auth.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,javax.security.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,javax.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.swing.border,javax.swing.colorchooser,javax.swing.event,javax.swing.filechooser,javax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.metal,javax.swing.plaf.multi,javax.swing.plaf.nimbus,javax.swing.plaf.synth,javax.swing.table,javax.swing.text,javax.swing.text.html,javax.swing.text.html.parser,javax.swing.text.rtf,javax.swing.tree,javax.swing.undo,javax.tools,javax.transaction,javax.transaction.xa,javax.xml,javax.xml.bind,javax.xml.bind.annotation,javax.xml.bind.annotation.adapters,javax.xml.bind.attachment,javax.xml.bind.helpers,javax.xml.bind.util,javax.xml.crypto,javax.xml.crypto.dom,javax.xml.crypto.dsig,javax.xml.crypto.dsig.dom,javax.xml.crypto.dsig.keyinfo,javax.xml.crypto.dsig.spec,javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.soap,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stax,javax.xml.transform.stream,javax.xml.validation,javax.xml.ws,javax.xml.ws.handler,javax.xml.ws.handler.soap,javax.xml.ws.http,javax.xml.ws.soap,javax.xml.ws.spi,javax.xml.ws.spi.http,javax.xml.ws.wsaddressing,javax.xml.xpath,org.ietf.jgss,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable,org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg.CORBA.portable,org.omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNaming.NamingContextExtPackage,org.omg.CosNaming.NamingContextPackage,org.omg.Dynamic,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage,org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.CodecFactoryPackage,org.omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInterceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.omg.PortableServer,org.omg.PortableServer.CurrentPackage,org.omg.PortableServer.POAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.PortableServer.portable,org.omg.PortableServer.ServantLocatorPackage,org.omg.SendingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.bootstrap,org.w3c.dom.css,org.w3c.dom.events,org.w3c.dom.html,org.w3c.dom.ls,org.w3c.dom.ranges,org.w3c.dom.stylesheets,org.w3c.dom.traversal,org.w3c.dom.views,org.w3c.dom.xpath,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers org.osgi.framework.uuid=a0818bfd-12a9-0012-14f9-9181f51ad104 org.osgi.framework.vendor=Eclipse org.osgi.framework.version=1.7.0 org.osgi.supports.framework.extension=true org.osgi.supports.framework.fragment=true org.osgi.supports.framework.requirebundle=true os.arch=amd64 os.name=Windows 8 os.version=6.2 osgi.arch=x86_64 osgi.bundles=reference:file:org.codehaus.groovy.frameworkadapter_2.7.2.xx-RELEASE-20121219-0800-e42.jar,reference:file:org.eclipse.equinox.simpleconfigurator_1.0.301.v20120914-163612.jar@1:start osgi.bundles.defaultStartLevel=4 osgi.bundlestore=C:\eclipse\configuration\org.eclipse.osgi\bundles osgi.configuration.area=file:/C:/eclipse/configuration/ osgi.framework=file:/c:/eclipse/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar osgi.framework.extensions=reference:file:org.codehaus.groovy.frameworkadapter_2.7.2.xx-RELEASE-20121219-0800-e42.jar osgi.framework.shape=jar osgi.framework.version=3.8.2.v20130124-134944 osgi.frameworkClassPath=., file:c:/eclipse/plugins/org.codehaus.groovy.frameworkadapter_2.7.2.xx-RELEASE-20121219-0800-e42.jar osgi.install.area=file:/C:/eclipse/ osgi.instance.area=file:/D:/Users/Vincent/workspace/ osgi.instance.area.default=file:/D:/Users/Vincent/workspace/ osgi.logfile=D:\Users\Vincent\workspace\.metadata\.log osgi.manifest.cache=C:\eclipse\configuration\org.eclipse.osgi\manifests osgi.nl=fr_FR osgi.os=win32 osgi.splashLocation=C:\eclipse\\plugins\org.eclipse.platform_4.2.2.v201302041200\splash.bmp osgi.splashPath=platform:/base/plugins/org.eclipse.platform osgi.syspath=c:\eclipse\plugins osgi.tracefile=D:\Users\Vincent\workspace\.metadata\trace.log osgi.ws=win32 path.separator=; sun.arch.data.model=64 sun.boot.class.path=C:\Program Files\Java\jre7\lib\resources.jar;C:\Program Files\Java\jre7\lib\rt.jar;C:\Program Files\Java\jre7\lib\sunrsasign.jar;C:\Program Files\Java\jre7\lib\jsse.jar;C:\Program Files\Java\jre7\lib\jce.jar;C:\Program Files\Java\jre7\lib\charsets.jar;C:\Program Files\Java\jre7\lib\jfr.jar;C:\Program Files\Java\jre7\classes sun.boot.library.path=C:\Program Files\Java\jre7\bin sun.cpu.endian=little sun.cpu.isalist=amd64 sun.desktop=windows sun.io.unicode.encoding=UnicodeLittle sun.java.command=C:\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar -os win32 -ws win32 -arch x86_64 -showsplash C:\eclipse\\plugins\org.eclipse.platform_4.2.2.v201302041200\splash.bmp -launcher C:\eclipse\eclipse.exe -name Eclipse --launcher.library C:\eclipse\\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807\eclipse_1503.dll -startup C:\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.overrideVmargs -exitdata 1cdc_48 -vm C:\Windows\system32\javaw.exe -vmargs -Xms40m -Xmx512m -XX:MaxPermSize=256m -jar C:\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar sun.java.launcher=SUN_STANDARD sun.jnu.encoding=Cp1252 sun.management.compiler=HotSpot 64-Bit Tiered Compilers sun.os.patch.level= user.country=FR user.dir=C:\eclipse user.home=D:\Users\Vincent user.language=fr user.name=Vincent user.script= user.timezone=Europe/Paris user.variant= *** Features: com.collabnet.subversion.merge.feature (3.0.13) "CollabNet Subversion Merge Client" net.java.dev.jna (3.4.0.t20120117_1605) "jna-osgi" org.codehaus.groovy.eclipse.feature (2.7.2.xx-RELEASE-20121219-0800-e42) "Groovy-Eclipse plugin" org.codehaus.groovy.jdt.patch (2.7.1.xx-RELEASE-20121219-0800-e42) "Groovy-Eclipse plugin" org.codehaus.groovy17.feature (2.7.2.xx-RELEASE-20121219-0800-e42) "Groovy-Eclipse plugin" org.codehaus.groovy18.feature (2.7.2.xx-RELEASE-20121219-0800-e42) "Groovy-Eclipse plugin" org.eclipse.cvs (1.3.201.v20130116-085741-7B79FJKAkF7BG7ODH5CAJT) "Eclipse CVS Client" org.eclipse.emf.common (2.8.0.v20130125-0546) "EMF Common" org.eclipse.emf.ecore (2.8.3.v20130125-0546) "EMF Ecore" org.eclipse.help (1.4.1.v20120912-144938-8R7xFOXFLWUl7PpNBh_HIGkb4) "Help System Base" org.eclipse.jdt (3.8.2.v20130116-090414-8-8nFu3FNOfwKLRuqgXKIy9z0I83) "Eclipse Java Development Tools" org.eclipse.pde (3.8.2.v20130116-091538-7c7wFj0FFt6Zr9bd4AM1JEQMS) "PDE" org.eclipse.platform (4.2.1.v20130118-173121-9MF7GHYdG0B5kx4E_SkfZV-1mNjVATf67ZAb7) "Eclipse Platform" org.eclipse.rcp (4.2.2.v20130129-152330-7IARAABrMQkGSvMgQnUlz-DQz00h) "Eclipse RCP" org.eclipse.sdk (4.2.2.v20130116-114742-7T7oDVDQ23Iosz-vkFwNncmx7z-9Rts4b0m1FotkYacO5) "Eclipse Project SDK" org.eclipse.wst.xml_ui.feature (3.4.2.v201211061806-7H7GFeJDxumUrsn5qkiQgOEhsz0p60HAmPyU6VX) "Eclipse XML Editors and Tools" org.tigris.subversion.clientadapter.feature (1.8.4) "Subversion Client Adapter" org.tigris.subversion.clientadapter.javahl.feature (1.7.9.1) "Subversion JavaHL" org.tigris.subversion.clientadapter.svnkit.feature (1.7.9.1) "SVNKit Client Adapter" org.tigris.subversion.subclipse (1.8.20) "SVN Team Provider Core" org.tigris.subversion.subclipse.graph.feature (1.1.1) "Subversion Revision Graph" org.tmatesoft.svnkit (1.7.8.r9538_v20130107_2001) "SVNKit pure Java Subversion Library" sf.eclipse.javacc.feature (1.5.27) "SF JavaCC Eclipse Plug-in"
Just came across this bug now. In the 2.7.2 Release of groovy-eclipse, there may have been a situation where you could get an NPE on line 540 of Java Element, even in Java code. The part of groovy-eclipse that caused this is now removed. So, you can update to the 2.8.0 M1 build of Groovy-Eclipse if you want to get the fix for this. Update site is here: http://dist.springsource.org/milestone/GRECLIPSE/e4.2
*** Bug 402455 has been marked as a duplicate of this bug. ***
*** Bug 407905 has been marked as a duplicate of this bug. ***