在linux weblogic 服务器调用swt进行网页截屏时报错,困扰了大半个月了,还请各位朋友帮帮~~,
使用的是
DJNativeSwing-SWT.jar
DJNativeSwing.jar
swt.jar
jna-4.0.0.jar
NativeSwing[1]: Exception in thread "main" java.lang.reflect.InvocationTargetException
NativeSwing[1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
NativeSwing[1]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
NativeSwing[1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
NativeSwing[1]: at java.lang.reflect.Method.invoke(Method.java:597)
NativeSwing[1]: at chrriis.common.NetworkURLClassLoader.main(NetworkURLClassLoader.java:96)
NativeSwing[1]: Caused by: org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
NativeSwing[1]: at org.eclipse.swt.SWT.error(Unknown Source)
NativeSwing[1]: at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)
NativeSwing[1]: at org.eclipse.swt.widgets.Display.create(Unknown Source)
NativeSwing[1]: at org.eclipse.swt.graphics.Device.(Unknown Source)
NativeSwing[1]: at org.eclipse.swt.widgets.Display.(Unknown Source)
NativeSwing[1]: at chrriis.dj.nativeswing.swtimpl.NativeInterface$OutProcess.runNativeSide(NativeInterface.java:999)
NativeSwing[1]: at chrriis.dj.nativeswing.swtimpl.NativeInterface.main(NativeInterface.java:1096)
NativeSwing[1]: ... 5 more
NativeSwing[2]: Exception in thread "main" java.lang.reflect.InvocationTargetException
NativeSwing[2]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
NativeSwing[2]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
NativeSwing[2]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
NativeSwing[2]: at java.lang.reflect.Method.invoke(Method.java:597)
NativeSwing[2]: at chrriis.common.NetworkURLClassLoader.main(NetworkURLClassLoader.java:96)
NativeSwing[2]: Caused by: org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
NativeSwing[2]: at org.eclipse.swt.SWT.error(Unknown Source)
NativeSwing[2]: at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)
NativeSwing[2]: at org.eclipse.swt.widgets.Display.create(Unknown Source)
NativeSwing[2]: at org.eclipse.swt.graphics.Device.(Unknown Source)
NativeSwing[2]: at org.eclipse.swt.widgets.Display.(Unknown Source)
NativeSwing[2]: at chrriis.dj.nativeswing.swtimpl.NativeInterface$OutProcess.runNativeSide(NativeInterface.java:999)
NativeSwing[2]: at chrriis.dj.nativeswing.swtimpl.NativeInterface.main(NativeInterface.java:1096)
NativeSwing[2]: ... 5 more
NativeSwing[3]: Exception in thread "main" java.lang.reflect.InvocationTargetException
NativeSwing[3]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
NativeSwing[3]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
NativeSwing[3]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
NativeSwing[3]: at java.lang.reflect.Method.invoke(Method.java:597)
NativeSwing[3]: at chrriis.common.NetworkURLClassLoader.main(NetworkURLClassLoader.java:96)
NativeSwing[3]: Caused by: org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
NativeSwing[3]: at org.eclipse.swt.SWT.error(Unknown Source)
NativeSwing[3]: at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)
NativeSwing[3]: at org.eclipse.swt.widgets.Display.create(Unknown Source)
NativeSwing[3]: at org.eclipse.swt.graphics.Device.(Unknown Source)
NativeSwing[3]: at org.eclipse.swt.widgets.Display.(Unknown Source)
NativeSwing[3]: at chrriis.dj.nativeswing.swtimpl.NativeInterface$OutProcess.runNativeSide(NativeInterface.java:999)
NativeSwing[3]: at chrriis.dj.nativeswing.swtimpl.NativeInterface.main(NativeInterface.java:1096)
NativeSwing[3]: ... 5 more
java.lang.RuntimeException: java.net.SocketException: Connection reset
NativeInterface.open:java.lang.RuntimeException: java.net.SocketException: Connection reset
at chrriis.dj.nativeswing.swtimpl.OutProcessSocketsMessagingInterface.openChannel(OutProcessSocketsMessagingInterface.java:64)
at chrriis.dj.nativeswing.swtimpl.MessagingInterface.initialize(MessagingInterface.java:51)
at chrriis.dj.nativeswing.swtimpl.OutProcessSocketsMessagingInterface.(OutProcessSocketsMessagingInterface.java:29)
at chrriis.dj.nativeswing.swtimpl.OutProcessSocketsMessagingInterface$SwingOutProcessSocketsMessagingInterface.(OutProcessSocketsMessagingInterface.java:151)
at chrriis.dj.nativeswing.swtimpl.NativeInterface$OutProcess.createOutProcessMessagingInterface(NativeInterface.java:830)
at chrriis.dj.nativeswing.swtimpl.NativeInterface$OutProcess.createOutProcessCommunicationChannel(NativeInterface.java:540)
at chrriis.dj.nativeswing.swtimpl.NativeInterface.open(NativeInterface.java:244)
at sunline.common.logic.filter.FileFilter.doFilter(FileFilter.java:103)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at sunline.common.logic.filter.EncodingFilter.doFilter(EncodingFilter.java:39)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3739)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3705)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2282)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2181)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1491)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2266)
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2279)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2750)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780)
at java.io.ObjectInputStream.(ObjectInputStream.java:280)
at chrriis.dj.nativeswing.swtimpl.OutProcessSocketsMessagingInterface.openChannel(OutProcessSocketsMessagingInterface.java:62)
... 19 more
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。