Vít Suchánek created NETBEANS-1495: --------------------------------------
Summary: IllegalArgumentException when using code completion on Java class member Key: NETBEANS-1495 URL: https://issues.apache.org/jira/browse/NETBEANS-1495 Project: NetBeans Issue Type: Bug Components: editor - Completion & Templates Affects Versions: 10.0 Environment: Product Version: Apache NetBeans IDE Dev (Build incubator-netbeans-release-345-on-20181002) Java: 11; Java HotSpot(TM) 64-Bit Server VM 11+28 Runtime: Java(TM) SE Runtime Environment 11+28 System: Windows 7 version 6.1 running on amd64; Cp1250; cs_CZ (nb) Reporter: Vít Suchánek Attachments: ide.log I'm adding new member variable in Java class. I use code-completion after "=" to add ClassName.getInstance(): "ClassName memberName = " I suppose the problem occurs when code-completion should also add new import for the ClassName. Nevertheless repeated usage of code-completion works OK most offen. Stacktrace: java.lang.IllegalArgumentException: Argument compositeType cannot be null. at java.management/javax.management.openmbean.CompositeDataSupport.<init>(CompositeDataSupport.java:206) at java.management/javax.management.openmbean.CompositeDataSupport.<init>(CompositeDataSupport.java:118) at java.management/sun.management.ThreadInfoCompositeData.getCompositeData(ThreadInfoCompositeData.java:130) at java.management/sun.management.ThreadInfoCompositeData.toCompositeData(ThreadInfoCompositeData.java:72) Caused: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.netbeans.modules.sampler.SamplesOutputStream.toCompositeData(SamplesOutputStream.java:178) Caused: java.lang.RuntimeException at org.netbeans.modules.sampler.SamplesOutputStream.toCompositeData(SamplesOutputStream.java:184) at org.netbeans.modules.sampler.SamplesOutputStream.access$400(SamplesOutputStream.java:44) at org.netbeans.modules.sampler.SamplesOutputStream$Sample.writeToStream(SamplesOutputStream.java:285) at org.netbeans.modules.sampler.SamplesOutputStream$Sample.access$300(SamplesOutputStream.java:253) at org.netbeans.modules.sampler.SamplesOutputStream.close(SamplesOutputStream.java:202) at org.netbeans.modules.sampler.Sampler.stopSampling(Sampler.java:231) at org.netbeans.modules.sampler.Sampler.stopAndWriteTo(Sampler.java:197) [catch] at org.netbeans.modules.editor.completion.CompletionImplProfile.stopImpl(CompletionImplProfile.java:84) at org.netbeans.modules.editor.completion.CompletionImplProfile.access$000(CompletionImplProfile.java:29) at org.netbeans.modules.editor.completion.CompletionImplProfile$1.run(CompletionImplProfile.java:59) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists