[
https://issues.apache.org/jira/browse/NETBEANS-430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17220983#comment-17220983
]
Eirik Bakke edited comment on NETBEANS-430 at 10/26/20, 8:36 PM:
-----------------------------------------------------------------
Still encountered this error on NetBeans 12.1 with the IDE running on Java
15.0.1 and a maven-based multi-module NetBeans Platform project compiling and
running on JDK 11.0.9, with nbjavac installed and Compile-on-Save enabled.
{noformat}
java.lang.ClassFormatError: Absent Code attribute in method that is not native
or abstract in class file com/ultorg/datamodel/proptypes/ViewPropertyTypes$2
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
at org.netbeans.JarClassLoader.doLoadClass(JarClassLoader.java:287)
at
org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:246)
at org.netbeans.ProxyClassLoader.doFindClass(ProxyClassLoader.java:174)
at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:125)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at com.ultorg.datamodel.view.CProp.<clinit>(CProp.java:45)
at com.ultorg.datamodel.query.Queries.<clinit>(Queries.java:69)
at
com.ultorg.project.result.ViewResultProvider.<clinit>(ViewResultProvider.java:93)
at
com.ultorg.project.installer.Installer.performWarmupTasks(Installer.java:139)
at
com.ultorg.project.installer.Installer.lambda$restored$3(Installer.java:121)
at
org.netbeans.modules.openide.util.NbMutexEventProvider$Event$1AWTWorker.run(NbMutexEventProvider.java:133)
at
java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
at
java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at
java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at
java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at
java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at
java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at
java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
[catch] at
java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
{noformat}
This exception occurred after a clean build of the entire project was made, and
a single Java file (not the class mentioned in the exception) was changed,
triggering CoS, and the application run.
was (Author: ebakke):
Still encountered this error on NetBeans 12.1 with the IDE running on Java
15.0.1 and a maven-based multi-module NetBeans Platform project compiling and
running on JDK 11.0.9, with nbjavac installed and Compile-on-Save enabled.
{noformat}
java.lang.ClassFormatError: Absent Code attribute in method that is not native
or abstract in class file com/ultorg/datamodel/proptypes/ViewPropertyTypes$2
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
at org.netbeans.JarClassLoader.doLoadClass(JarClassLoader.java:287)
at
org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:246)
at org.netbeans.ProxyClassLoader.doFindClass(ProxyClassLoader.java:174)
at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:125)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at com.ultorg.datamodel.view.CProp.<clinit>(CProp.java:45)
at com.ultorg.datamodel.query.Queries.<clinit>(Queries.java:69)
at
com.ultorg.project.result.ViewResultProvider.<clinit>(ViewResultProvider.java:93)
at
com.ultorg.project.installer.Installer.performWarmupTasks(Installer.java:139)
at
com.ultorg.project.installer.Installer.lambda$restored$3(Installer.java:121)
at
org.netbeans.modules.openide.util.NbMutexEventProvider$Event$1AWTWorker.run(NbMutexEventProvider.java:133)
at
java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
at
java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at
java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at
java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at
java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at
java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at
java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
[catch] at
java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
{noformat}
> "Invalid or deleted file", "Absent Code attribute" exceptions during Java
> editing and app/test running
> ------------------------------------------------------------------------------------------------------
>
> Key: NETBEANS-430
> URL: https://issues.apache.org/jira/browse/NETBEANS-430
> Project: NetBeans
> Issue Type: Bug
> Components: guibuilder - Code, java - Classfile, java - Source,
> projects - Maven
> Affects Versions: 9.0
> Environment: Apache NetBeans IDE Dev (Build
> incubator-netbeans-release-205-on-20180202), OpenJDK 64-Bit Server VM
> 9.0.4.1+11, Mac OS X version 10.9.5
> Reporter: Eirik Bakke
> Priority: Major
> Attachments: Class Files causing Trouble.zip, parseerror.txt
>
>
> While editing Java sources in a maven-based multi-module NetBeans Platform
> application on NetBeans 9.0 beta, the following IDE exception happens at
> irregular intervals, while editing unrelated files in a different module:
> {noformat}
> ALL [null]: An error occurred during parsing of
> '/var/folders/38/g_r_gdts0wx49_kbz5sjfj300000gn/T/vcs-1518825448194/vcs-1519673427266/FilterPanel.java'.
> Please report a bug against java/source and attach dump file
> '/Users/ebakke/Library/Application
> Support/NetBeans/dev/var/log/FilterPanel_8.dump'.
> {noformat}
> See the attached text file for the complete log dump and stack trace (can't
> attach the ".dump" file as it contains source code). The source file in
> question, FilterPanel.java, is generated in part by the Matisse GUI builder
> (so there's also a FilterPanel.form file). I've also got maven
> Compile-on-Save enabled.
> At other times, occasionally when running the same NetBeans Platform-based
> application, the application itself throws the following exception,
> mentioning the same file:
> {noformat}
> java.lang.ClassFormatError: Absent Code attribute in method that is not
> native or abstract in class file com/somepackage/project/filter/FilterPanel$2
> {noformat}
> See again the attached text file for the complete log dump and stack trace.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists