Coder Social home page Coder Social logo

ClassNotFoundException appears in the NB messages.log with the `externalcodeformatter_for_netbeans` plugin installed about externalcodeformatter_for_netbeans HOT 5 CLOSED

dbalek avatar dbalek commented on August 17, 2024
ClassNotFoundException appears in the NB messages.log with the `externalcodeformatter_for_netbeans` plugin installed

from externalcodeformatter_for_netbeans.

Comments (5)

funfried avatar funfried commented on August 17, 2024

@dbalek Thanks for reporting.

Does the formatting work anyway? Which formatters are you using? Do you use the JSDT formatter for JavaScript files?

I'll have a look myself, but would be great if you could give some more information on this error.

Cheers,
Fabian

from externalcodeformatter_for_netbeans.

dbalek avatar dbalek commented on August 17, 2024

Does the formatting work anyway? Which formatters are you using? Do you use the JSDT formatter for JavaScript files?

Formatting seems to work fine (tested with the Eclipse Formatter on Java files). The exception appears in the log on every IDE startup during module loading (before any reformat action invocation). It seems like a possible clash between jar files distributed with the plugin and the jar files distributed by NetBeans itself?

from externalcodeformatter_for_netbeans.

jonathanpoulin9 avatar jonathanpoulin9 commented on August 17, 2024

@funfried, I confirm. On NetBeans startup, I have exactly the same message as @dbalek in the log file. I am using the plugin version 1.15.1 with NetBeans 14 under Ubuntu 18.04. The log file is here: $HOME/.netbeans/14/var/log/messages.log.

from externalcodeformatter_for_netbeans.

funfried avatar funfried commented on August 17, 2024

@dbalek and @jonathanpoulin9

Sorry for the late response.

I checked it for my self and found it as well in the log file at the very beginning of the log statements:

java.lang.ClassNotFoundException: org.eclipse.osgi.launch.EquinoxFactory@ModuleCL@1657fa27[de.funfried.netbeans.plugins.externalcodeformatter]:jar:file:/Users/fbahle/Library/Application%20Support/NetBeans/14/modules/ext/de.funfried.netbeans.plugins.externalcodeformatter/org-eclipse-platform/org.eclipse.osgi.jar!/ not a subclass of org.osgi.framework.launch.FrameworkFactory@ModuleCL@5192e598[org.netbeans.libs.osgi]:jar:file:/Applications/NetBeans/Apache%20NetBeans%2014.app/Contents/Resources/NetBeans/netbeans/platform/modules/ext/osgi.core-8.0.0.jar!/
[catch] at org.openide.util.lookup.MetaInfServicesLookup.search(MetaInfServicesLookup.java:325)
	at org.openide.util.lookup.MetaInfServicesLookup.beforeLookup(MetaInfServicesLookup.java:132)
	at org.openide.util.lookup.AbstractLookup.lookupItem(AbstractLookup.java:402)
	at org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:396)
	at org.netbeans.core.netigso.Netigso.prepare(Netigso.java:136)
	at org.netbeans.NetigsoHandle.turnOn(NetigsoHandle.java:115)
	at org.netbeans.ModuleManager.enable(ModuleManager.java:1445)
	at org.netbeans.ModuleManager.enable(ModuleManager.java:1254)
	at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:316)
	at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:252)
	at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:298)
	at org.netbeans.core.startup.Main.getModuleSystem(Main.java:173)
	at org.netbeans.core.startup.Main.getModuleSystem(Main.java:142)
	at org.netbeans.core.startup.Main.start(Main.java:299)
	at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98)
	at java.base/java.lang.Thread.run(Thread.java:833)
INFO [null]: Last record repeated again.
INFO [org.netbeans.modules.netbinox]: Install area set to file:/Applications/NetBeans/Apache NetBeans 14.app/Contents/Resources/NetBeans/netbeans/```

I'll look into it, actually, I think I already found the issue. I hope I can fix it soon.

Cheers,
Fabian

from externalcodeformatter_for_netbeans.

funfried avatar funfried commented on August 17, 2024

Hi @dbalek,

it took some time, but in the latest 1.15.2 SNAPSHOT version, it should be fixed. Would be great if you could confirm.

Thanks in advance.

Cheers,
Fabian

from externalcodeformatter_for_netbeans.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.