I'm useing netbeans and Jruby. When I want to build a project I got the following message:
SEVERE: library `socket' could not be loaded: java.lang.LinkageError: loader (instance of java/net/URLClassLoader): attempted duplicate class definition for name: "org/jruby/ext/socket/RubySocket"
Can anybody help to me what could be the problem ? Thanks
It's a known issue with jdk6u18 or higher. The workaround currently is to downgrade to jdk6u17. You can find more information here http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6923688
I'd highly suggest voting so that Oracle fixes it. We're already at u20 and they still haven't addressed the problem.
Related
I am using Eclipse Oxygen 4.7.0.I20170612-0950 with PyDev 5.8.0.
When I try to use refactoring I get the following Error message:
Could not initialize class org.apache.lucene.codesc.Codec$Holder
The same thing happens when I try to use the Search function (Strg-H)
An internal error occurred during: "PyDev Index Search".
Could not initialize class org.apache.lucene.codecs.Codec$Holder`
Seems to be a problem with Lucene.
I found this post on the Eclipse website https://bugs.eclipse.org/bugs/show_bug.cgi?id=510604
But I am not very familiar with Eclipse and it didn't help.
Any Idea how to fix this?
Thanks in advance.
This is a bug. It's already reported at:
https://www.brainwy.com/tracker/PyDev/830
the plan is fixing it before the next release.
I solved it by installing the following feature:
Name: Dynamic Languages Toolkit - Core Lucene Index Frameworks
Version: 5.8.0.201706030400
Id: org.eclipse.dltk.core.index.lucene.feature.group
Provider: Eclipse DLTK
PyDev Release 5.9.0 (2017-08-10) fixed the problem!
http://www.pydev.org/
Thank you and keep up the great work!
I am getting the below mentioned error when the following plugins are included:
sonar-checkstyle-plugin-2.4.jar
sonar-findbugs-plugin-3.3.jar
sonar-pmd-plugin-2.5.jar
Logs:
ERROR : java.lang.IllegalStateException: Fail to instantiate class
[org.sonar.plugins.checkstyle.CheckstylePlugin] of plugin [checkstyle]
at org.sonar.core.platform.PluginLoader.instantiatePluginClasses(PluginLoader.java:146) ~[sonar-core-5.3.jar:na]
at org.sonar.core.platform.PluginLoader.load(PluginLoader.java:73) ~[sonar-core-5.3.jar:na]
at org.sonar.server.plugins.ServerPluginRepository.loadInstances(ServerPluginRepository.java:274) ~[sonar-server-5.3.jar:na]
at org.sonar.server.plugins.ServerPluginRepository.start(ServerPluginRepository.java:108) ~[sonar-server-5.3.jar:na]
The same error is given for the above mentioned plugins.
As these versions are supported for the version 5.3 (with reference to compatibility matrix in official documentation), need some help regarding fixing this error.
I am using MySQL database for the SonarQube 5.3. The installation works fine when the above mentioned plugins are removed from SONAR_HOME/extensions/plugins directory.
Is there some issue with this plugins for version 5.3? Has anyone tested these plugins on this version? Let me know if anyone has faced same issues and found out the solution to this problem.
I am getting the following error while running shark 0.9.0.
Exception in thread "main" java.lang.IncompatibleClassChangeError: Found class scala.collection.mutable.ArrayOps, but interface was expected
at shark.SharkCliDriver$.main(SharkCliDriver.scala:82)
at shark.SharkCliDriver.main(SharkCliDriver.scala)
Any solution regarding the problem is highly appreciable.
Its a backward compatibility issue.
This exception is raised when the version of scala-library.jar is different during compilation and execution. Make sure that you use the same library version during compiling and executing.
if you are using hadoop 2.x version, do the below steps
find path to shark installation folder -name hadoop-core-1.0.4.jar
remove all the hadoop-core-1.0.4.jar
check this
http://bigdataanalyze.blogspot.com/2014/03/issues-on-shark-with-cdh5-beta2-1.html
I have a grails project and I use the gwt plugin 0.6.1. GWT version is configured using ivy.
I have a strange unresolved symbol error when I try to use a class in package com.google.web.*. When I use the complete class names inline idea reports that it cannot resolve the web package. If I import the same class no error ocurres.
I already tried to run grails clean and removed the idea system directory as well - nothing works.
Idea usally import the class when I use smart complete but in this case idea insert the complete classname instead of importing the class.
The web package is found in the gwt-users-2.4.0.jar and gwt-servlet-2.4.0.jar. Both jars are in the classpath but this how the grails gwt plugin organizes gwt dependency.
Error when using full inline claasnames:
No error when using same class in import statement:
Does anyone have an idea?
Fixed already http://youtrack.jetbrains.net/issue/IDEA-81056
Fix is included in the next IDEA 11.1 EAP
http://confluence.jetbrains.com/display/IDEADEV/IDEA+11.1+EAP
I also had similar issue with IntelliJ IDEA, I solved problem by invalidating the idea cache. After invalidating the cache it will reindex all your library and other files. check this answer as well. Grails and IntelliJ Cache Issues
I've working in a rich client with an Griffon 0.3.1 enviroment during the last couple of months.
That version is getting old and now I'm required to upgrade the project into a 0.9.3.
After doing:
griffon upgrade
And getting the latest releases of the required plugins I'm facing the following error:
Compilation error: BUG! exception in phase 'canonicalization' in source unit 'C:\maestro\desarrollo\projects\interactionManager\sgmentia-client\griffon-app\controllers\com\nortia\sgmentia\client\campaign\CampaignController.groovy' ClassNode#getTypeClass for com.nortia.sgmentia.business.Seleccion is called before the type class is set
There were no compilation errors before the upgrading after trying several things I haven't got a clue.
Thanks in advance.
Ivan.
Try upgrading to 0.9.4. There were some corner cases in previous versions due to the introduction of AST injection behavior. Also, don't forget to invoke the clean command right after upgrade.
After some research, I write my own conclusions in order to help anyone with the same problem.
There is a big leap between Griffon 0.3.x and Griffon 0.9.x, some Apis have changed dramatically and AST Injection has been introduced.
The following links MUST be read in order to understand what's going on:
http://griffon.codehaus.org/Griffon+0.9.2-rc1?print=1
http://dist.codehaus.org/griffon/guide/guide/9.%20Threading.html#9.3%20Annotation%20Based%20Threading
If upgrading the straight way has not worked for you, try first disabling Threading injection:
griffon.disable.threading.injection=true
Finally, once you get your code compiled you can try to clean your controllers step by step.
Hope it helps.