开发者社区> 问答> 正文

linux调用swt网页截屏

在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

展开
收起
杨冬芳 2016-07-11 17:26:42 3240 0
2 条回答
写回答
取消 提交回答
  • 请问您这个问题解决了吗?

    2021-10-22 17:43:37
    赞同 展开评论 打赏
  • 你的linux调用swt网页截屏问题解决了吗?

    2019-07-17 19:54:27
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Alibaba Cloud Linux 3 发布 立即下载
ECS系统指南之Linux系统诊断 立即下载
ECS运维指南 之 Linux系统诊断 立即下载