InvocationTargetException when running rest general client code

139 views
Skip to first unread message

mon...@gmail.com

unread,
May 22, 2015, 7:50:56 AM5/22/15
to dukes...@googlegroups.com
when running the rest example general client code module, 80% of the times an exception occurs in the console.
The fx browser window then turns black. When changing the layout, the application screen appears for a split second before turning black again.

In general the javafx browser needs quite a long time to load the page (5 seconds before general layout appears, 20+ seconds before text appears), while normal browser and android app load much faster.


May 22, 2015 1:13:48 PM org.springsource.loaded.jvm.JVM copyMethod
SEVERE: Problems copying method. Incompatible JVM?
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springsource.loaded.jvm.JVM.copyMethod(JVM.java:134)
at org.springsource.loaded.ri.OriginalClassInvoker.createJavaMethod(OriginalClassInvoker.java:68)
at org.springsource.loaded.ri.ReflectiveInterceptor.jlClassGetMethod(ReflectiveInterceptor.java:136)
at net.java.html.boot.BrowserBuilder$1OnPageLoad$1CallInitMethod.run(BrowserBuilder.java:347)
at net.java.html.BrwsrCtx$1Wrap.run(BrwsrCtx.java:174)
at org.netbeans.html.boot.fx.AbstractFXPresenter.execute(AbstractFXPresenter.java:282)
at net.java.html.BrwsrCtx.execute(BrwsrCtx.java:185)
at net.java.html.boot.BrowserBuilder$1OnPageLoad.run(BrowserBuilder.java:375)
at org.netbeans.html.boot.fx.AbstractFXPresenter.onPageLoad(AbstractFXPresenter.java:145)
at org.netbeans.html.boot.fx.FXBrwsr$6.changed(FXBrwsr.java:258)
at org.netbeans.html.boot.fx.FXBrwsr$6.changed(FXBrwsr.java:250)
at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:182)
at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
at javafx.beans.property.ReadOnlyObjectWrapper$ReadOnlyPropertyImpl.fireValueChangedEvent(ReadOnlyObjectWrapper.java:176)
at javafx.beans.property.ReadOnlyObjectWrapper.fireValueChangedEvent(ReadOnlyObjectWrapper.java:142)
at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:112)
at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:146)
at javafx.scene.web.WebEngine$LoadWorker.updateState(WebEngine.java:1226)
at javafx.scene.web.WebEngine$LoadWorker.dispatchLoadEvent(WebEngine.java:1337)
at javafx.scene.web.WebEngine$LoadWorker.access$1100(WebEngine.java:1219)
at javafx.scene.web.WebEngine$PageLoadListener.dispatchLoadEvent(WebEngine.java:1206)
at com.sun.webkit.WebPage.fireLoadEvent(WebPage.java:2388)
at com.sun.webkit.WebPage.fwkFireLoadEvent(WebPage.java:2232)
at com.sun.webkit.network.URLLoader.twkDidFinishLoading(Native Method)
at com.sun.webkit.network.URLLoader.notifyDidFinishLoading(URLLoader.java:830)
at com.sun.webkit.network.URLLoader.lambda$didFinishLoading$95(URLLoader.java:821)
at com.sun.webkit.network.URLLoader$$Lambda$173/77392364.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl.lambda$null$170(PlatformImpl.java:295)
at com.sun.javafx.application.PlatformImpl$$Lambda$55/59593227.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$171(PlatformImpl.java:294)
at com.sun.javafx.application.PlatformImpl$$Lambda$54/1476449185.run(Unknown Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.lambda$null$48(GtkApplication.java:139)
at com.sun.glass.ui.gtk.GtkApplication$$Lambda$43/1452220159.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: Can not copy a non-root Method
at java.lang.reflect.Method.copy(Method.java:151)
... 41 more


Jaroslav Tulach

unread,
May 22, 2015, 8:14:18 AM5/22/15
to Timon Veenstra, dukes...@googlegroups.com
Hello Timon.
The black screen issue may be related to
https://netbeans.org/bugzilla/show_bug.cgi?id=236961

the fix should be on NetBeans 8.0.x AU in few weeks.

The "Problems copying method. Incompatible JVM?"
problem is related to springloaded. It should be just a warning. In case you want to avoid it, you can disable use of springloaded during exec:exec in the pom.xml

-jt


--
You received this message because you are subscribed to the Google Groups "DukeScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dukescript+...@googlegroups.com.
Visit this group at http://groups.google.com/group/dukescript.
To view this discussion on the web visit https://groups.google.com/d/msgid/dukescript/91baed64-a9b2-44d3-b989-0a0f83b46a12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Timon Veenstra

unread,
May 22, 2015, 8:25:09 AM5/22/15
to Jaroslav Tulach, dukes...@googlegroups.com

The black screen issue may be related to
https://netbeans.org/bugzilla/show_bug.cgi?id=236961

the fix should be on NetBeans 8.0.x AU in few weeks.

Thanks, I will check with the nightly build.
 

The "Problems copying method. Incompatible JVM?"
problem is related to springloaded. It should be just a warning. In case you want to avoid it, you can disable use of springloaded during exec:exec in the pom.xml

np, I will consider it a warning.
I was wondering if that error was causing the slow loading, but does not seem related.

Cheers,
Timon 

Timon Veenstra

unread,
May 22, 2015, 9:05:09 AM5/22/15
to Jaroslav Tulach, dukes...@googlegroups.com


the fix should be on NetBeans 8.0.x AU in few weeks.

Thanks, I will check with the nightly build.

Fixed in nightly NetBeans build 

I was wondering if that error was causing the slow loading, but does not seem related.

for the record, slow loading was caused by slow internet connection in combination with css import:

so not related to dukescript ;)

Cheers.
Timon 
Reply all
Reply to author
Forward
0 new messages