No Eclipse versions will install - java

Trying to install any version of Eclipse will fail with varying errors.
Sometimes I get the error:
with error log
!ENTRY org.eclipse.osgi 4 0 2019-02-19 19:49:23.951
!MESSAGE Application error
!STACK 1
java.lang.NullPointerException
at org.eclipse.swt.widgets.Control.internal_new_GC(Control.java:2180)
at org.eclipse.swt.graphics.GC.<init>(GC.java:177)
at org.eclipse.swt.graphics.GC.<init>(GC.java:138)
at org.eclipse.jface.dialogs.Dialog.initializeDialogUnits(Dialog.java:937)
here.
Other times I open the installer and I get a window with dialog boxes that are messed up
clicking on the visible box gives this error (text here). (Note: This only happens when I have an older version of Eclipse running).
Downloading an older version of Eclipse isn't helpful either. Trying to install Neon gives this error. It mentions something about a ImageBuilderInternalException on something called MattStuff, but it's not the only type of error and I have no clue where this MattStuff is so I may delete it.
Trying to install Neon now gives another error
Trying to get Mars gives this error.
Trying to directory get the Eclipse application instead of the Eclipse Installer (as suggested by #howlger) gives these errors. Note: Clicking on details does not do anything.

Related

NetBeans IDE 12.5 no Project Open

I'm running NetBeans IDE 12.5 with Java 1.8.0_311 on Mac OS 11.16 Big Sur.
No Folders are displayed in the Projects Window, no difference with new created or old projects.
I already adjusted the netbeans.conf to the right JDK home directory:
netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_311.jdk/Contents/Home"
Also I get an Unexpected Exception - java.lang.NullPointerException in the notifications when trying to open a project.
Full trace:
java.lang.NullPointerException
at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.runJavaSourceTaskWhenScanFinished(AnnotationModelHelper.java:190)
at org.netbeans.modules.j2ee.dd.impl.webservices.annotation.WebservicesMetadataModelImpl.runReadActionWhenReady(WebservicesMetadataModelImpl.java:80)
at org.netbeans.modules.j2ee.metadata.model.api.MetadataModel.runReadActionWhenReady(MetadataModel.java:160)
at org.netbeans.modules.websvc.core.jaxws.projects.JavaEEWSOpenHook.projectOpened(JavaEEWSOpenHook.java:80)
at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:60)
at org.netbeans.spi.project.ui.support.UILookupMergerSupport$OpenHookImpl.projectOpened(UILookupMergerSupport.java:223)
at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:60)
[catch] at org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:1323)
at org.netbeans.modules.project.ui.OpenProjectList.access$1600(OpenProjectList.java:116)
at org.netbeans.modules.project.ui.OpenProjectList$LoadOpenProjects.loadOnBackground(OpenProjectList.java:513)
at org.netbeans.modules.project.ui.OpenProjectList$LoadOpenProjects.run(OpenProjectList.java:384)
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)
I found a similar question on stack overflow where adjusting the config file was mentioned as a possible solution.
Output from IDE Log:
WARNING [org.netbeans.modules.options.keymap.LayersBridge]: Invalid shortcut: org.openide.loaders.XMLDataObject#20e83598[MultiFileObject#19d29edf[Actions/Help/master-help.xml]]
WARNING [org.netbeans.modules.options.keymap.LayersBridge]: Invalid shortcut: org.openide.loaders.BrokenDataShadow#72ee9bcd[MultiFileObject#58de53e0[Keymaps/NetBeans/D-BACK_QUOTE.shadow]]
WARNING [null]: Last record repeated again.
Any other ideas?
Thanks!

what to do with "Building workspace has encountered a problem"

When i start Eclipse or do anything(like creating a package or a class) it always sends me this error :
"Building workspace" has encountered a problem
Details:
Errors occurred during the build.
Errors running builder 'Java Builder' on project 'learning'.
java.lang.NullPointerException
1) Go to your "Markers"-Tab and check for problems. In my case:
"The compiler compliance specified is 1.8 but a JRE 11 is used"
2) go into your ".log" file and check for detailed error messages
the .log-File you will find in in your -Folder, inside the ".metadata"-Folder
In my case I saw this error message:
!ENTRY org.eclipse.m2e.logback.appender 2 0 2019-09-10 18:30:28.624
!MESSAGE C:\Program Files\Git\mingw64\etc.probe-b4958459-0f11-46f4-bc0f-85bf6a8174c1
!STACK 0
Solution:
I updated my eGit Plugin. Of course you can also uninstall it.
Go to the menu under "Help" -> "Eclipse Marketplace", then to the "Installed"-Tab
Here you either update or uninstall the plugin that causes the problem

Cannot see variables while debugging flash on eclipse

I keep having the issue when I try to debug a Flex/AS3 application on Eclipse IDE, as long as I hover over any variable the pop up window shows an error:
An internal error occurred during: "Evaluating Flex expression...".
java.lang.NullPointerException
More details for the error, took me a while to find out in the eclipse log:
!ENTRY org.eclipse.core.jobs 4 2 2017-10-19 10:48:03.565
!MESSAGE An internal error occurred during: "Evaluating Flex expression...".
!STACK 0
java.lang.NullPointerException
at flash.tools.debugger.concrete.PlayerSession.pullUpActivationObjectVariables(PlayerSession.java:1007)
at flash.tools.debugger.concrete.PlayerSession.requestFrame(PlayerSession.java:984)
at flash.tools.debugger.concrete.DStackContext.populate(DStackContext.java:156)
at flash.tools.debugger.concrete.DStackContext.getThis(DStackContext.java:92)
at com.adobe.flexbuilder.debug.djapi.wrappers.ThreadSafeFrame.getThis(ThreadSafeFrame.java:121)
at com.adobe.flexbuilder.debug.model.FlexStackFrame.initVariables(FlexStackFrame.java:283)
at com.adobe.flexbuilder.debug.model.FlexStackFrame.getVariables(FlexStackFrame.java:410)
at com.adobe.flexbuilder.debug.expression.FlexStackContext.lookup(FlexStackContext.java:52)
at flash.tools.debugger.expression.VariableExp.evaluate(VariableExp.java:28)
at com.adobe.flexbuilder.debug.djapi.wrappers.ThreadSafeValueExp.evaluate(ThreadSafeValueExp.java:54)
at com.adobe.flexbuilder.debug.expression.FlexExpression.evaluate(FlexExpression.java:120)
at com.adobe.flexbuilder.debug.expression.FlexWatchExpressionDelegate$EvaluationJob.run(FlexWatchExpressionDelegate.java:103)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
The variable tab and expressions tab on eclipse both are empty:
screen shot here
My environment:
Eclipse 3.3.2
Flash debugger 27.0.0.170 (debug version)
Firefox 56.0.1 64-bit
Flex builder 3
I have tried : reinstalling the flash debugger, and even rebuilt the Workspace for my Eclipse, no luck. Some ideas to fix this will be really appreciated.
Revert my browser and flash to the older version finally fixed the problem. Thanks all.

Java EE "JDI Event Dispatch" error

When I try to debug any project in Java EE INDIGO (64 bit) in win 7 and place a breakpoint somewhere the program acts as expected but when I hit f6 or f5 to go further eclipse throws an error which reads (I have Spring installed):
An internal error occurred during: "JDI Event Dispatch".
com.springsource.sts.groovy.debug.core.GroovyDebugProvider.isAlwaysInteretingLaunch()Z
(No typo, "Z" does appear)
Now I can't debug any program because it always gives this error. Can anyone help?
From the eclipse error log:
!MESSAGE com.springsource.sts.groovy.debug.core.GroovyDebugProvider.isAlwaysInteretingLaunch()Z
!STACK 0
java.lang.AbstractMethodError: com.springsource.sts.groovy.debug.core.GroovyDebugProvider.isAlwaysInteretingLaunch()Z
at org.eclipse.contribution.jdt.debug.DebugHooksAspect.isInterestingLaunch(DebugHooksAspect.aj:253)
at org.eclipse.contribution.jdt.debug.DebugHooksAspect.ajc$inlineAccessMethod$org_eclipse_contribution_jdt_debug_DebugHooksAspect$org_eclipse_contribution_jdt_debug_DebugHooksAspect$isInterestingLaunch(DebugHooksAspect.aj:1)
at org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget.getStepFilters_aroundBody1$advice(JDIDebugTarget.java:195)
at org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget.getStepFilters(JDIDebugTarget.java:1)
at org.eclipse.jdt.internal.debug.core.model.JDIThread$StepHandler.attachFiltersToStepRequest(JDIThread.java:2154)
at org.eclipse.jdt.internal.debug.core.model.JDIThread$StepHandler.createStepRequest(JDIThread.java:2065)
at org.eclipse.jdt.internal.debug.core.model.JDIThread$StepHandler.createStepRequest(JDIThread.java:2040)
at org.eclipse.jdt.internal.debug.core.model.JDIThread$StepHandler.step(JDIThread.java:1989)
at org.eclipse.jdt.internal.debug.core.model.JDIThread.stepOver(JDIThread.java:1412)
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.stepOver(JDIStackFrame.java:418)
at org.eclipse.debug.internal.core.commands.StepOverCommand.step(StepOverCommand.java:27)
at org.eclipse.debug.internal.core.commands.StepCommand.doExecute(StepCommand.java:34)
at org.eclipse.debug.core.commands.AbstractDebugCommand$1.run(AbstractDebugCommand.java:213)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
This seems to be a similar bug to this bug in codehaus jira (see comments section). I was able to switch back to an older eclipse installation (from two weeks ago) to get rid of the current problem and will upgrade to Eclipse 3.7 as soon as time permits.
As crazy as this sounds, I too was getting this error when debugging an Android App and trying to step into a specific method, and resolved it by renaming the method I was trying to step into.
I had tried:
completely reinstalling the app
cleaning in Eclipse
reboot of device (phone), OS, and restart of Eclipse
increasing debug timeouts in Preferences | Java | Debug
My method was called "getMessageInfoFromDb"... and was in a class that didn't extend anything, but implemented Serializable ;-)
Try disabling simple step filtering, especially filtering of simple getters.
delete the Temp folder from yourlocalpath\domainfolder\server\AdminServer
domains\base_domain\servers\AdminServer
Have you done any DB import twice or more time on the same DB that you use for the application in which you are running in debug mode. Because I am also getting similar error with the caption JDI while starting Application Server with deployed .ear in Eclipse based IDE as a popup.
When db is imported twice user created tables gets imported if it's been tried in the same kind of databases. But Oracle App & System Specific tables throws error in process of importing. And some crash in that....
I hope this is what scenario yours as well....
In my scenario I had imported Oracle db from UNIX environment to Oracle XE in Windows environment.

tortoise svn fails to import to repository due to Inconsistent line ending style

I was very excited to see that there is a check-style like plugin called CheckStyle-IDEA plugin for IntelliJ that i can enforce code style on the source.
I installed it using the IDE plugin repository, restarted it.
Unfortunately After pressing the check this file or check project I got the an exception (see log below).
I am using windows 7 pro,
IDEA 10.0.3 build #103.255 Build on April 2011
JDK 1.6.0_21
did anyone encountered this problem?
is there any other tool to do this job through the intelliJ IDE?
Thanks
2011-05-05 11:41:56,723 [1300492] INFO - ea.checkstyle.CheckStylePlugin - Scanning current file(s).
2011-05-05 11:41:56,727 [1300496] ERROR - style.checker.CheckFilesThread - An error occurred while scanning a file.
org.infernus.idea.checkstyle.exception.CheckStylePluginException: An error occurred during a file scan.
at org.infernus.idea.checkstyle.CheckStylePlugin.processError(CheckStylePlugin.java:409)
at org.infernus.idea.checkstyle.checker.CheckFilesThread.run(CheckFilesThread.java:72)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at java.lang.String.charAt(String.java:686)
at java.util.regex.Matcher.appendReplacement(Matcher.java:703)
at java.util.regex.Matcher.replaceAll(Matcher.java:813)
at java.lang.String.replaceAll(String.java:2189)
at org.infernus.idea.checkstyle.util.ScannableFile.parentDirFor(ScannableFile.java:72)
at org.infernus.idea.checkstyle.util.ScannableFile.createTemporaryFileFor(ScannableFile.java:58)
at org.infernus.idea.checkstyle.util.ScannableFile.(ScannableFile.java:40)
at org.infernus.idea.checkstyle.checker.CreateScannableFileAction.run(CreateScannableFileAction.java:60)at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:757) at org.infernus.idea.checkstyle.checker.FileScanner.createTemporaryFile(FileScanner.java:228)
at org.infernus.idea.checkstyle.checker.FileScanner.checkPsiFile(FileScanner.java:167)
at org.infernus.idea.checkstyle.checker.FileScanner.run(FileScanner.java:80)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:770) at org.infernus.idea.checkstyle.checker.CheckFilesThread.runFileScanner(CheckFilesThread.java:39) at org.infernus.idea.checkstyle.checker.AbstractCheckerThread.processFilesForModuleInfoAndScan(AbstractCheckerThread.java:132)
at org.infernus.idea.checkstyle.checker.CheckFilesThread.run(CheckFilesThread.java:57)
Checkstyle-idea plugin is sadly rather buggy :(
You can post or view issues at http://code.google.com/p/checkstyle-idea/ and get much faster support than here.

Categories