Link to home
Start Free TrialLog in
Avatar of sharingsunshine
sharingsunshineFlag for United States of America

asked on

Aptana 3.6 Preview Problem On Mac

I installed Aptana Studio on my Yosemite Mac and tried to use Preview feature and it just spins and then in activity monitor it shows Aptana Studio in red and the message not responding.

When I turn on the error logging I get this message.

!ENTRY org.eclipse.ui.workbench 4 2 2016-02-10 17:45:47.867
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.help.ui.internal.views.HelpView.handlePartActivation(HelpView.java:143)
	at org.eclipse.help.ui.internal.views.HelpView.hook(HelpView.java:315)
	at org.eclipse.help.ui.internal.views.HelpView.partOpened(HelpView.java:291)
	at org.eclipse.ui.internal.PartService$10.run(PartService.java:175)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.PartService.partOpened(PartService.java:173)
	at org.eclipse.ui.internal.WorkbenchPage$19.run(WorkbenchPage.java:4844)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.WorkbenchPage.firePartOpened(WorkbenchPage.java:4842)
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart$2.handleEvent(CompatibilityPart.java:118)
	at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:4650)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:205)
	at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
	at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
	at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
	at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
	at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
	at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
	at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
	at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
	at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
	at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
	at org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl.setObject(PartImpl.java:378)
	at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:131)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:949)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:633)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:526)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:511)
	at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:61)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:949)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:633)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
	at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1147)
	at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:96)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:649)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
	at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
	at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
	at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:581)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1042)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
	at com.aptana.rcp.IDEApplication.start(IDEApplication.java:126)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1450)

Open in new window


I checked my Java and it appears to be correct

java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468-11M4833)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode)
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

That looks like internal errors. I would reinstall Eclipse
Avatar of sharingsunshine

ASKER

I installed the standalone version.

http://www.aptana.com/products/studio3/download.html

Are you saying reinstall that one or use the other option?
Try reinstalling that first
I reinstalled it and still have the problem.
What you might try is to uninstall it again, then install Eclipse and then whatever sits on eclipse later
I can't tell which Eclipse when I download the installer it says it won't work with my OS X. When I try Eclipse Mars it just takes me back to the same page with the installer.

So I am not clear how to go from here.
It appears, that doing it that way it is using a legacy java 6.  I say appears because the oracle link doesn't work.  However, running an old form of Java won't work because I have other apps that need a more current java.
What versions of Java have you got installed? Can you invoke the most recent?
I have java 8 installed.  However, I set up another partition with java 6 installed.  I went to eclipse site and downloaded their installer

https://gyazo.com/65ae668379eb2cf3036f3e753dc224bd

and it says that version won't work.  

https://gyazo.com/1d669268b0448fa4fbac6eeb701ed2c2

I then tried to load eclipse for php and got the same message

Any other suggestions?
https://www.eclipse.org/downloads/download.php?file=/oomph/epp/mars/R1a/eclipse-inst-mac64.tar.gz

Try the above. Just for now, untar it into a temp directory and let us know when you've done that
I did untar it and clicked on the installer and got same message

https://gyazo.com/fce39185766435a02d6ee567f67b3878
Nope - i didn't suggest doing that ;)


untar it into a temp directory and let us know when you've done that

You need to go into Terminal and set (export) JAVA_HOME to Java 8 JDK install dir and then start the eclipse executable
OK, thanks for the reminder.  I have untarred it in a temp directory.  Running terminal I get this error

 set (export) JAVA_HOME to Java 8 JDK install dir
-bash: syntax error near unexpected token `export'
Firstly, please post the full path containing javac in the Java 8 version
I think you are saying with javac the compiler.  But I can't say for sure because I don't know what exactly to look for

I found something about java here /System/Library/Frameworks/JavaVM.framework/Home

can you tell me what a file ending would be for a compiler so I can look that way?
There's no ending (extension) on an executable file in Unix (usually). You will find it with the following


find / -type f -name javac

Open in new window


I'm afraid you might have to adjust that for Apple's own implementation, but try it as is first
Of course, you might find that no JDK (hence no javac) is installed, and, actually, none is strictly necessary to use Eclipse, but i'd recommend you to get one if that's the case.
running your command I got this

find / -type f -name javac
/Applications/PhpStorm.app/Contents/jre/jdk/Contents/Home/bin/javac
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/javac
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/javac
/Volumes/Macintosh HD 2/Applications/PhpStorm.app/Contents/jre/jdk/Contents/Home/bin/javac
/Volumes/Macintosh HD 2/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/javac
/Volumes/Macintosh HD 2/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/javac

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I loaded this jdk https://gyazo.com/a6f23d4062bf8a68928173dceda44986

I installed it and no errors are showing but the preview button is grayed out now.  So how should I proceed?

Thanks,

Randal
A JDK from some kind of 3rd party site - that looks pretty dogdy
jdk-8u73-macosx-x64.dmg looks to be what you need, yes
Then we are back to my original problem

I installed Aptana Studio on my Yosemite Mac and tried to use Preview feature

Any suggestions?
OK, thanks for the reminder.  I have untarred it in a temp directory.  Running terminal I get this error

That can't be the case (unless you deleted it) as javac in a path with Java 8 in it would have been found

If you're saying you've now installed with the .dmg, that too should be detected with the find command
I installed the jdk to my existing Aptana installation.  I opened it up and had a page I wanted to preview and the preview button is grayed out.  The page is ending in .php but does have html code in it.
Can you now find javac (Java 8) with the find command?
I am not sure.  Here is what it shows

find / -type f -name javac
/Applications/PhpStorm.app/Contents/jre/jdk/Contents/Home/bin/javac
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/javac
/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/bin/javac
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/javac
/Volumes/Macintosh HD 2/Applications/PhpStorm.app/Contents/jre/jdk/Contents/Home/bin/javac
/Volumes/Macintosh HD 2/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/javac
/Volumes/Macintosh HD 2/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/javac

Open in new window

Yes. Here it is:

/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/bin/javac

Open in new window


You need to make sure that anything you start (we'll say Eclipse normally) knows what the environment is. Try this for starters in Terminal

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
java -version

Open in new window

I put those commands in and I get the same issue with a .php file.  Which is, the preview button is grayed out.

Here is what terminal shows for version.

java -version
java version "1.8.0_74"
Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
eclipse

Open in new window


Does the above start Eclipse properly? (The Eclipse bin directory will need to be in PATH)
I didn't have Eclipse installed.  Remember I couldn't get the installer to ever work.  Now it worked and I installed Eclipse Mars.1 for php developers.  I then followed the directions to get Aptana installed through Eclipse.

However, now the preview button isn't even showing.  

So it seems Eclipse is loading properly but don't know what to do about no preview option.
I can't help with Aptana specifics i'm afraid
You got me past the error in fine form and I could never have figured out those steps without  your help.
:)