IDEA6: Problem HTML / Mozilla Preview on Intel Mac 10.4.7
I could download the preview OK, but then it hangs:
any ideas?
ERROR - ins.idea.browser.BrowserEditor - IntelliJ IDEA 6.0
Build #5766
ERROR - ins.idea.browser.BrowserEditor - JDK: 1.5.0_06
ERROR - ins.idea.browser.BrowserEditor - VM: Java
HotSpot(TM) Client VM
ERROR - ins.idea.browser.BrowserEditor - Vendor: Apple
Computer, Inc.
ERROR - ins.idea.browser.BrowserEditor - OS: Mac OS X
Watcher OK.
Exception in thread "AWT-AppKit" java.lang.UnsatisfiedLinkError:
getClassAddress
at com.jniwrapper.macosx.cocoa.CocoaLib.getClassAddress(Native Method)
at com.jniwrapper.macosx.cocoa.CocoaLib.(CocoaLib.java:22)
at com.jniwrapper.macosx.cocoa.Sel.getFunctionUID(Sel.java:138)
at com.jniwrapper.macosx.cocoa.Sel.(Sel.java:32)
at com.jniwrapper.macosx.cocoa.Sel.getFunction(Sel.java:49)
at com.jniwrapper.macosx.cocoa.CObject.(CObject.java:64)
at com.jniwrapper.macosx.cocoa.CObject.(CObject.java:48)
at com.jniwrapper.macosx.cocoa.CObject.(CObject.java:43)
at com.jniwrapper.macosx.cocoa.nsobject.NSObject.(NSObject.java:111)
at
com.jniwrapper.macosx.cocoa.nsresponder.NSResponder.(NSResponder.java:33)
at
com.jniwrapper.macosx.cocoa.nsview.NSView.(NSView.java:45)
at
com.jniwrapper.jxbrowser.impl.awt.MacAwtWebBrowserChrome$CocoaCanvas.(MacAwtWebBrowserChrome.java:130)
at
com.jniwrapper.jxbrowser.impl.awt.MacAwtWebBrowserChrome.]]>(MacAwtWebBrowserChrome.java:35)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
com.jniwrapper.jxbrowser.impl.awt.AwtChromeFactory.getAwtWebBrowserChrome(AwtChromeFactory.java:50)
at
com.jniwrapper.jxbrowser.impl.WebBrowserSupport$2.run(WebBrowserSupport.java:57)
at
com.jniwrapper.macosx.cocoa.embedded.AbstractEmbeddedView$1.run(AbstractEmbeddedView.java:169)
at
com.jniwrapper.macosx.cocoa.embedded.AbstractEmbeddedView.callback(AbstractEmbeddedView.java:148)
Please sign in to leave a comment.
Oliver,
Looks like we've found the problem. The updated native library was not extracted from the JAR to a temp folder.
Here are the steps to try to fix this:
1. Close IDEA
2. Delete /tmp/libCocoa2JavaEmbeddingUtil.jnilib
3. Restart IDEA
Please try and let us know the result
Eugene
hmm, did that but it's not working yet... when I try to open an .html
file, the editor does not show at all and idea hangs with the same
console log message (below)
Only when I remove the $APP$/plugins/HtmlPreview folder can I open the
editor again (of course, the Mozilla Preview tab is missing then)
Here is what is in the folder:
$APP$/plugins/HtmlPreview/lib/backport-util-concurrent-src.zip
$APP$/plugins/HtmlPreview/lib/backport-util-concurrent.jar
$APP$/plugins/HtmlPreview/lib/HtmlPreview.jar
$APP$/plugins/HtmlPreview/lib/jxbrowser.jar
$APP$/plugins/HtmlPreview/lib/macpack-1.0.jar
$APP$/plugins/HtmlPreview/lib/mozilla_patches.zip
$APP$/plugins/HtmlPreview/lib/MozillaInterfaces-src.jar
$APP$/plugins/HtmlPreview/lib/MozillaInterfaces.jar
$APP$/plugins/HtmlPreview/lib/resources_en.jar
$APP$/plugins/HtmlPreview/lib/winpack-3.5.jar
$APP$/plugins/HtmlPreview/license/javaxpcom_license.txt
$APP$/plugins/HtmlPreview/license/MozillaInterfaces_license.txt
where should the download have been extracted to?
O
Exception in thread "AWT-AppKit" java.lang.UnsatisfiedLinkError:
getClassAddress
at com.jniwrapper.macosx.cocoa.CocoaLib.getClassAddress(Native Method)
at com.jniwrapper.macosx.cocoa.CocoaLib.(CocoaLib.java:22) at com.jniwrapper.macosx.cocoa.Sel.getFunctionUID(Sel.java:138) at com.jniwrapper.macosx.cocoa.Sel.(Sel.java:32) at com.jniwrapper.macosx.cocoa.Sel.getFunction(Sel.java:49) at com.jniwrapper.macosx.cocoa.CObject.(CObject.java:64) at com.jniwrapper.macosx.cocoa.CObject.(CObject.java:48) at com.jniwrapper.macosx.cocoa.CObject.(CObject.java:43) at com.jniwrapper.macosx.cocoa.nsobject.NSObject.(NSObject.java:111) at com.jniwrapper.macosx.cocoa.nsresponder.NSResponder.(NSResponder.java:33) at com.jniwrapper.macosx.cocoa.nsview.NSView.(NSView.java:45) at com.jniwrapper.jxbrowser.impl.awt.MacAwtWebBrowserChrome$CocoaCanvas.(MacAwtWebBrowserChrome.java:130) at com.jniwrapper.jxbrowser.impl.awt.MacAwtWebBrowserChrome.(MacAwtWebBrowserChrome.java:35) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at com.jniwrapper.jxbrowser.impl.awt.AwtChromeFactory.getAwtWebBrowserChrome(AwtChromeFactory.java:50) at com.jniwrapper.jxbrowser.impl.WebBrowserSupport$2.run(WebBrowserSupport.java:57) at com.jniwrapper.macosx.cocoa.embedded.AbstractEmbeddedView$1.run(AbstractEmbeddedView.java:169) at com.jniwrapper.macosx.cocoa.embedded.AbstractEmbeddedView.callback(AbstractEmbeddedView.java:148) On 2006-10-10 19:51:51 +0200, Eugene Toporov ]]> said:
any news on how to get this running - it's still not working (with 6.0.1)
O
On 2006-10-10 19:51:51 +0200, Eugene Toporov <no_mail@jetbrains.com> said:
Just as a data point, it's not just you seeing this. I ran into it as well.
good to know - does IDEA also hang when you want to open HTML files
(without having removed the HtmlPreivew Plugin)?
O
On 2006-10-14 08:39:15 +0200, Daniel Henninger <jadestorm@nc.rr.com> said:
FYI -- I'm seeing this as well. Another forum thread (http://www.intellij.net/forums/thread.jspa?messageID=5167909�) is also reporting this; one post there says that the 6.0.2 EA build fixes this. I'm downloading while typing, hoping it does resolve the issue....
Note that the 6.0.2 EA page isn't directly accessible from the regular EAP page. Go here for the download goodness (found in another forum posting):
http://www.jetbrains.net/confluence/display/IDEADEV/6.0.2+EAP
Running the 6.0.2 Beta (build 60443), this problem has gone away for me!
... typo there; running build #6043 fixes the hanging Mozilla Preview issue.
On 2006-10-19 21:31:24 +0200, Peter Wagener <no_mail@jetbrains.com> said:
thanks! looking good here as well
O