Intellij Checkstyle gives error NoClassDefFoundError - java

I have Intellij 2017.2.3 and Checkstyle-IDEA 5.10.0 running on my Ubuntu 17 dekstop. When i try to add a checkstyle for my Java project (at Settings->Other settings->Checkstyle) I get this error message:
java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap
at org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.java:963)
at org.apache.commons.beanutils.BeanUtilsBean.copyProperty(BeanUtilsBean.java:391)
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.tryCopyProperty(AutomaticBean.java:217)
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.contextualize(AutomaticBean.java:249)
at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:455)
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:186)
at org.infernus.idea.checkstyle.service.cmd.OpCreateChecker.execute(OpCreateChecker.java:58)
at org.infernus.idea.checkstyle.service.cmd.OpCreateChecker.execute(OpCreateChecker.java:26)
at org.infernus.idea.checkstyle.service.CheckstyleActionsImpl.executeCommand(CheckstyleActionsImpl.java:126)
at org.infernus.idea.checkstyle.service.CheckstyleActionsImpl.createChecker(CheckstyleActionsImpl.java:56)
at org.infernus.idea.checkstyle.service.CheckstyleActionsImpl.createChecker(CheckstyleActionsImpl.java:47)
at org.infernus.idea.checkstyle.checker.CheckerFactoryWorker.run(CheckerFactoryWorker.java:44)
Is it familiar for anyone?

I got the same issue while migrating the project from WAS 8 to WAS Liberty.
I did copying the jar commons-collections.jar in to the server location /servers/<server_name>/lib/global and resolved it.
So try to place the jar at IntelliJ local server.
java.lang.NoClassDefFoundError: org.apache.commons.collections.FastHashMap
at org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.java:963)
at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:935)
at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:823)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:431)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)

Related

Unable to Run Android Application on Eclipse IDE

I'm just a beginner in Android Development.
I'm Creating my First app by Watching Tutorial.
When i try to run my application it throws an error.
Errors occurred during the build.
Errors running builder 'Android Package Builder' on project 'HelloAndroid'.
sun/misc/BASE64Encoder
java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder
at com.android.sdklib.internal.build.SignedJarBuilder.<init>(SignedJarBuilder.java:177)
at com.android.sdklib.build.ApkBuilder.init(ApkBuilder.java:446)
at com.android.sdklib.build.ApkBuilder.<init>(ApkBuilder.java:422)
at com.android.sdklib.build.ApkBuilder.<init>(ApkBuilder.java:362)
at com.android.ide.eclipse.adt.internal.build.BuildHelper.finalPackage(BuildHelper.java:391)
at com.android.ide.eclipse.adt.internal.build.BuildHelper.finalDebugPackage(BuildHelper.java:359)
at com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.build(PostCompilerBuilder.java:632)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:846)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:229)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:357)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:483)
at org.eclipse.core.internal.resources.Project$1.run(Project.java:565)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2292)
at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:603)
at org.eclipse.core.internal.resources.Project.build(Project.java:124)
at com.android.ide.eclipse.adt.internal.project.ProjectHelper.doFullIncrementalDebugBuild(ProjectHelper.java:1143)
at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(LaunchConfigDelegate.java:155)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:803)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:716)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1021)
at org.eclipse.debug.internal.ui.DebugUIPlugin$2.run(DebugUIPlugin.java:1224)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.lang.ClassNotFoundException: sun.misc.BASE64Encoder cannot be found by com.android.ide.eclipse.base_23.0.7.2120684
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:519)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:171)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
... 23 more
I have tried Almost Every Solution i found on Web.
but all i found is for old version eclipse.
Here i'm Using,
Windows 7
Java SE 16
Eclipse IDE 2021-03 (4.19.0)
If Someone has any Solution for my Configuration then Please help.
Thanks.

Error: Eclipse 4.5 MARS NullPointerException (JUnit-Tests)

I do have a problem with Eclipse 4.5 when building a JUnit Test Class.
I can build all tests with the help of ant in its repository.
I think it is a configuration problem in Eclipse.
I already followed a lot of solutions in this forum:
Cleaning the path of eclipse itself
restarting eclipse
try to compile with JUnit3
try to compile with JUnit4
try another JRE
start the project in a different workspace
The reason why I haven't updated my Eclipse is because my company only uses Eclipse 4.5. So I can't accept an answer to update it.
The error log:
!ENTRY org.eclipse.core.jobs 4 2 2019-09-09 17:55:58.495
!MESSAGE An internal error occurred during: "Launching JUnitEntityDBUtility".
!STACK 0
java.lang.NullPointerException
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.localURL(JUnitLaunchConfigurationDelegate.java:429)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.entryString(JUnitLaunchConfigurationDelegate.java:418)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.addEntry(JUnitLaunchConfigurationDelegate.java:405)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.localizeClasspath(JUnitLaunchConfigurationDelegate.java:396)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.getClasspath(JUnitLaunchConfigurationDelegate.java:373)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.launch(JUnitLaunchConfigurationDelegate.java:147)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Delete and recreate your JUnitEntityDBUtility launch configuration.
The stack trace can be found here and here. At the second finding you will find the explanation and a workaround by Moritz Eysholdt for your issue as follows (highlighting by me):
That NPE occurs if you execute a test's launch config in an Eclipse
that does not have the plugin org.eclipse.jdt.junit4.runtime.patch
installed when the launch config was created by an Eclipse that did
actually have org.eclipse.jdt.junit4.runtime.patch installed.
Workaround: Install org.eclipse.jdt.junit4.runtime.patch via the Xpect
update site or delete+recreate your launch configuration.
[...]

Lombok Eclipse issue: "Requesting Java AST from selection"

I have Lombok plugin installed in my Eclipse. It was working fine till now since many days. All of a sudden I am frequently getting a popup in my Eclipse with the following details:
An error has occurred. See error log for more details.
lombok/launch/PatchFixesHider$PatchFixes
An internal error occurred during: "Requesting Java AST from selection".
lombok/launch/PatchFixesHider$PatchFixes
The Eclipse error log has this:
!ENTRY org.eclipse.ui.workbench 4 2 2016-08-29 13:18:38.631
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.LinkageError: lombok/launch/PatchFixesHider$PatchFixes
at org.eclipse.jdt.internal.ui.search.OccurrencesFinder.addUsage(OccurrencesFinder.java)
at org.eclipse.jdt.internal.ui.search.OccurrencesFinder.visit(OccurrencesFinder.java:158)
at org.eclipse.jdt.core.dom.QualifiedName.accept0(QualifiedName.java:168)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2759)
at org.eclipse.jdt.core.dom.PackageDeclaration.accept0(PackageDeclaration.java:225)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2759)
Eclipse version :
Eclipse Java EE IDE for Web Developers.
Version: Neon Release (4.6.0)
Build id: 20160613-1800
This popup is occurring quite frequently and its very annoying.Does anyone knows the solution to fix this?
Removed older jar and updated with latest lombok jar (version 1.16.10).. restarted my system. this fixed this issue. Not sure what was the cause of this issue though.
Had the same issue, restarting Eclipse was sufficient for me.

Worklight project upgrade error

I encountered a problem with Worklight project that is new technology for me.
Error while upgrading Worklight project from version 6.1.0.00-20131126-0630 to 6.1.0.01-20140821-0406 (also tried 6.1.0.02-21041216-0421). Error message:
Unexpected error during upgrade: java.lang.NullPointerException at com.worklight.upgrader.internal.Zipper.addFolderToZip(Zipper.java:190)
at com.worklight.upgrader.internal.Zipper.addFolderToZip(Zipper.java:202) at com.worklight.upgrader.internal.Zipper.addFolderToZip(Zipper.java:202)
at com.worklight.upgrader.internal.Zipper.addFolder(Zipper.java:106) at com.worklight.upgrader.internal.Zipper.addFolder(Zipper.java:91)
at com.worklight.upgrader.WLUpgradeEngine.backupCurrentProject(WLUpgradeEngine.java:645) at com.worklight.upgrader.WLUpgradeEngine.performUpgrade(WLUpgradeEngine.java:294)
at com.worklight.upgrader.WLUpgradeEngine.upgradeProject(WLUpgradeEngine.java:188) at com.worklight.studio.plugin.upgrader.WLUpgraderWorkspaceJob.runInWorkspace(WLUpgraderWorkspaceJob.java:127)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Eclipse Java EE IDE for Web Developers.
Version: Kepler Service Release 2 Build id: 20140224-0627
Win8.1 x64
Any help or suggestions are very appreciated.
All the builds you have tried are very, very old.
As an IBM customer you should download the latest available iFix for your Studio installation from IBM Fix Central. The latest should be from July 2015.
Please try again with that version.
You can also attempt to delete the wlBuildResources folder per the instructions in this question: Worklight - FWLST1040E: android build failed: java.io.FileNotFoundException
Finally, if this is still happening also with the latest available iFix (see above), provide a project that this issue is reproducible with so that it could be debugged.

Grails error - Error executing bootstraps: java.lang.ClassNotFoundException: DefaultQuartzConfig

Think I uninstalled or reinstalled the Grails cookie plugin and now I'm not sure what got changed in my Grails app, but I'm getting an error:
2011-12-29 10:22:05,356 [main] ERROR context.GrailsContextLoader - Error executing bootstraps: java.lang.ClassNotFoundException: DefaultQuartzConfig
org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.ClassNotFoundException: DefaultQuartzConfig
at grails.spring.BeanBuilder.invokeBeanDefiningClosure(BeanBuilder.java:723)
at grails.spring.BeanBuilder.beans(BeanBuilder.java:573)
at grails.spring.BeanBuilder.invokeMethod(BeanBuilder.java:519)
at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:212)
at grails.web.container.EmbeddableServer$start.call(Unknown Source)
at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:158)
at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy)
at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
I've tried a grails clean and tried uninstall / reinstalling quartz. How can I track down the source of the issue?
I had the same issue, to fix it I copied the ConfigQuartz file to DefaultConfigQuartz. This seemed to resolve my issue. I hope it works for you!!
I had the same problem but I solved it in a different way.
I forced grails to download the your plugins again deleting all the plugin folders from:
.grails\1.3.7\projects\\plugins
In your case it should be enough to delete .grails\1.3.7\projects\\plugins\quartz-0.4.2

Categories

Resources