Cannot see variables while debugging flash on eclipse - java

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.

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

No Eclipse versions will install

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.

Eclipse type hierarchy stack overflow

I am repeatedly getting stack overflow errors on eclipse. It corresponds to adding Apache's PDFBox 2.0 to my build path and incorporating and modifying some code I found on SO. This eclipse bug report seems pertinent.
I have tried refreshing, closing and reopening the project, deleting the .index files etc.
Here is the eclipse log:
!STACK 0
org.eclipse.recommenders.utils.Logs$LogTraceException
at org.eclipse.recommenders.utils.Logs$LogTraceException.newTrace(Logs.java:381)
at org.eclipse.recommenders.utils.Logs.log(Logs.java:134)
at org.eclipse.recommenders.internal.types.rcp.ProjectTypesIndex.needsRebuild(ProjectTypesIndex.java:169)
at org.eclipse.recommenders.internal.types.rcp.ProjectTypesIndex.startUp(ProjectTypesIndex.java:122)
at com.google.common.util.concurrent.AbstractIdleService$2$1.run(AbstractIdleService.java:54)
at com.google.common.util.concurrent.Callables$3.run(Callables.java:93)
at java.lang.Thread.run(Thread.java:745)
!ENTRY org.eclipse.core.jobs 4 2 2017-03-31 14:07:44.593
!MESSAGE An internal error occurred during: "Indexing type hierarchy of project ‘penelope-vision’".
!STACK 0
java.lang.StackOverflowError
at java.util.HashMap.hash(HashMap.java:338)
at java.util.HashMap.get(HashMap.java:556)
at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.getAllSupertypes0(TypeHierarchy.java:503)
at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.getAllSupertypes0(TypeHierarchy.java:522)
at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.getAllSupertypes0(TypeHierarchy.java:522)
at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.getAllSupertypes0(TypeHierarchy.java:522)
at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.getAllSupertypes0(TypeHierarchy.java:522)
at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.getAllSupertypes0(TypeHierarchy.java:522)
The last line is repeated many times.
While it is an acknowledged bug by Eclipse community, you can take the following workarounds:
1) Try to use a newer version of Eclipse (Oxygen or Neon).
2) Backup your projects from the workspace. Delete your workspace. Start Eclipse and let it create a new one. Then copy over your projects from backup to the new workspace.

Changing perspective causes popup error, debug perspective no longer functional

Just installed Eclipse Juno, having problems with perspectives since then. In addition to the editor window being very small and confined to one corner of the display (in Debug; it's okay in Java perspective), I am getting errors when changing perspectives. Suggestions? I'm going to go back to Indigo if I can't fix this.
When I switch from the Debug perspective to the Java perspective I get a popup titled "Problem Occurred." The text in the popup reads:
An error has occurred. See error log for more details.
org.eclipse.ui.internal.WorkbenchPage.findPerspective(Lorg/eclipse/ui/IPerspectiveDescriptor;)Lorg/eclipse/ui/internal/Perspective;
The error log shows a stacktrace which starts:
!ENTRY org.eclipse.ui.workbench 4 2 2012-11-26 12:56:50.841
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.NoSuchMethodError: org.eclipse.ui.internal.WorkbenchPage.findPerspective(Lorg/eclipse/ui/IPerspectiveDescriptor;)Lorg/eclipse/ui/internal/Perspective;
at com.google.gdt.eclipse.suite.GdtPlugin.maybeAddNewWizardActionsToPerspective(GdtPlugin.java:302)
at com.google.gdt.eclipse.suite.GdtPlugin.access$0(GdtPlugin.java:295)
at com.google.gdt.eclipse.suite.GdtPlugin$1.perspectiveActivated(GdtPlugin.java:206)
at org.eclipse.ui.internal.PerspectiveListenerList$1.run(PerspectiveListenerList.java:74)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.PerspectiveListenerList.fireEvent(PerspectiveListenerList.java:58)
at org.eclipse.ui.internal.PerspectiveListenerList.firePerspectiveActivated(PerspectiveListenerList.java:72)
at org.eclipse.ui.internal.WorkbenchWindow.firePerspectiveActivated(WorkbenchWindow.java:1260)
at org.eclipse.ui.internal.WorkbenchPage$4.handleEvent(WorkbenchPage.java:2834)
Try the steps below:
Start your eclipse with clean option as eclipse -clean. If you are using the shortcut then go to properties and add -clean in the target.
Go to the debug perspective, right click the debug icon in right top corner and select reset.
Hope this fixes your problem.

Categories