#1 2015-04-08 22:31:54

mprzygoc
Member
Registered: 2015-04-08

Run applet from Asp.Net WebForms

Hello,
I'm trying to add ReportServer to an ASP.Net MVC site and am wondering if anyone has had any experience with this.  So far I've gotten the applet to find ReportServer.class and to go through most of the loading process (I'm warned about several potential security risks and asked if I would like to block ReportServer's external content).  However before ReportServer is launched I get a an abundance of FileNotFound errors for .jar's that I do not have in my project and were not included in the ReportServer.zip, finally I get a runtime InvocationTargetException stating that I'm trying to run client only code on my server and killing the applet.

Here are a handful of the FileNotFound errors I'm getting, I won't list them all because there are a lot. But I'm wondering if this is normal, if somehow I lost a significant portion of the ReportServer package, or if this is a problem caused by the environment I'm trying to run in. And at the end is the InvocationTargetException, I'm not sure what could be causing this as all code should be getting executed client side. It seems no one else has run into this sort of trouble as I can't find any other mention of InvocationTargetException or the culprit method GWT.create() anywhere on these forums, but again I'm wondering if this is a quirk with running java applets through aspx pages, perhaps code that would normally be client side gets executed on the server or if there is something else going on here, that possibly these problems are related.


network: Cache entry not found [url: http://localhost:52465/reportserver/WEB-INF/lib/gmbal-api-only.jar, version: null]
network: Connecting http://localhost:52465/reportserver/WEB-INF/lib/gmbal-api-only.jar with proxy=DIRECT
network: Connecting http://localhost:52465/ with proxy=DIRECT
network: Connecting http://localhost:52465/reportserver/WEB-INF/lib/gmbal-api-only.jar with cookie "_ga=GA1.1.1622299273.1418231823; __uvt=; uvts=2itjIE969cPgk7CA; _gat=1"
java.io.FileNotFoundException: http://localhost:52465/reportserver/WEB-INF/lib/gmbal-api-only.jar
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.access$200(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessController.doPrivileged(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at sun.plugin.PluginURLJarFileCallBack.downloadJAR(Unknown Source)
    at sun.plugin.PluginURLJarFileCallBack.access$000(Unknown Source)
    at sun.plugin.PluginURLJarFileCallBack$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
    at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
    at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
    at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
    at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFileInternal(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$800(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
network: Cache entry not found [url: http://localhost:52465/reportserver/WEB-INF/lib/gmbal-api-only.jar, version: null]
network: Connecting http://localhost:52465/reportserver/WEB-INF/lib/gmbal-api-only.jar with proxy=DIRECT
network: Connecting http://localhost:52465/ with proxy=DIRECT
network: Connecting http://localhost:52465/reportserver/WEB-INF/lib/gmbal-api-only.jar with cookie "_ga=GA1.1.1622299273.1418231823; __uvt=; uvts=2itjIE969cPgk7CA; _gat=1"
java.io.FileNotFoundException: http://localhost:52465/reportserver/WEB-INF/lib/gmbal-api-only.jar
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.access$200(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessController.doPrivileged(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at sun.plugin.PluginURLJarFileCallBack.downloadJAR(Unknown Source)
    at sun.plugin.PluginURLJarFileCallBack.access$000(Unknown Source)
    at sun.plugin.PluginURLJarFileCallBack$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
    at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
    at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
    at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
    at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFileInternal(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$800(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
network: Cache entry not found [url: http://localhost:52465/reportserver/WEB-INF/lib/management-api.jar, version: null]
network: Connecting http://localhost:52465/reportserver/WEB-INF/lib/management-api.jar with proxy=DIRECT
network: Connecting http://localhost:52465/ with proxy=DIRECT
network: Connecting http://localhost:52465/reportserver/WEB-INF/lib/management-api.jar with cookie "_ga=GA1.1.1622299273.1418231823; __uvt=; uvts=2itjIE969cPgk7CA; _gat=1"
java.io.FileNotFoundException: http://localhost:52465/reportserver/WEB-INF/lib/management-api.jar
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.access$200(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessController.doPrivileged(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at sun.plugin.PluginURLJarFileCallBack.downloadJAR(Unknown Source)
    at sun.plugin.PluginURLJarFileCallBack.access$000(Unknown Source)
    at sun.plugin.PluginURLJarFileCallBack$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
    at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
    at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
    at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
    at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFileInternal(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$800(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
network: Cache entry not found [url: http://localhost:52465/reportserver/WEB-INF/lib/management-api.jar, version: null]
network: Connecting http://localhost:52465/reportserver/WEB-INF/lib/management-api.jar with proxy=DIRECT
network: Connecting http://localhost:52465/ with proxy=DIRECT
network: Connecting http://localhost:52465/reportserver/WEB-INF/lib/management-api.jar with cookie "_ga=GA1.1.1622299273.1418231823; __uvt=; uvts=2itjIE969cPgk7CA; _gat=1"
java.io.FileNotFoundException: http://localhost:52465/reportserver/WEB-INF/lib/management-api.jar
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.access$200(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessController.doPrivileged(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at sun.plugin.PluginURLJarFileCallBack.downloadJAR(Unknown Source)
    at sun.plugin.PluginURLJarFileCallBack.access$000(Unknown Source)
    at sun.plugin.PluginURLJarFileCallBack$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
    at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
    at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
    at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
    at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFileInternal(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$800(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
network: Cache entry found [url: http://localhost:52465/reportserver/WEB-INF/classes/net/datenwerke/rs/web/client/ReportServer.class, version: null] prevalidated=false/0
cache: Adding MemoryCache entry: http://localhost:52465/reportserver/WEB-INF/classes/net/datenwerke/rs/web/client/ReportServer.class
cache: Resource http://localhost:52465/reportserver/WEB-INF/classes/net/datenwerke/rs/web/client/ReportServer.class has expired.
network: Connecting http://localhost:52465/reportserver/WEB-INF/classes/net/datenwerke/rs/web/client/ReportServer.class with proxy=DIRECT
network: Connecting http://localhost:52465/reportserver/WEB-INF/classes/net/datenwerke/rs/web/client/ReportServer.class with cookie "_ga=GA1.1.1622299273.1418231823; __uvt=; uvts=2itjIE969cPgk7CA; _gat=1"
network: Connecting http://localhost:52465/ with proxy=DIRECT
network: Connecting http://localhost:52465/reportserver/WEB-INF/classes/net/datenwerke/rs/web/client/ReportServer.class with cookie "_ga=GA1.1.1622299273.1418231823; __uvt=; uvts=2itjIE969cPgk7CA; _gat=1"
network: ResponseCode for http://localhost:52465/reportserver/WEB-INF/classes/net/datenwerke/rs/web/client/ReportServer.class : 304
network: Encoding for http://localhost:52465/reportserver/WEB-INF/classes/net/datenwerke/rs/web/client/ReportServer.class : null
network: Disconnect connection to http://localhost:52465/reportserver/WEB-INF/classes/net/datenwerke/rs/web/client/ReportServer.class
cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@62cb3be5: 1
network: Cache entry not found [url: http://localhost:52465/reportserver/WEB-INF/classes/, version: null]
security: Grant connect perm for http://localhost:52465/reportserver/WEB-INF/classes/ : java.security.Permissions@13da85c (
("java.net.URLPermission" "http://localhost:52465" "*:*")
("java.net.URLPermission" "http://localhost:52465/-" "*:*")
)

network: Created version ID: 1.8.0.40
network: Created version ID: 1.8.0.31
network: Created version ID: 1.8.0.40
network: Created version ID: 1.8.0.31
cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@80881101: 3
cache: Clean up the reference queue: http://localhost:52465/reportserver/WEB-INF/lib/activation-1.1.jar
cache: deregisterReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@80881101: 2
security: Grant connect perm for http://localhost:52465/reportserver/WEB-INF/lib/gwt-servlet-2.5.1.jar : java.security.Permissions@19e3999 (
("java.net.URLPermission" "http://localhost:52465" "*:*")
("java.net.URLPermission" "http://localhost:52465/-" "*:*")
)

network: Created version ID: 1.8.0.40
network: Created version ID: 1.8.0.31
network: Cache entry not found [url: http://localhost:52465/reportserver/WEB-INF/classes/, version: null]
network: Created version ID: 1.8.0.40
network: Created version ID: 1.8.0.31
security: SSV validation:
    running: 1.8.0_31
    requested: null
    range: null
    javaVersionParam: null
    Rule Set version: null
network: Created version ID: 1.8.0.31
network: Created version ID: 1.8.0.31
security: continue with running version
network: Created version ID: 1.8.0.31
network: Created version ID: 1.8
network: Created version ID: 8.0.31
network: Cache entry found [url: http://localhost:52465/reportserver/WEB-INF/classes/net/datenwerke/rs/web/client/RSGinjector.class, version: null] prevalidated=false/0
cache: Adding MemoryCache entry: http://localhost:52465/reportserver/WEB-INF/classes/net/datenwerke/rs/web/client/RSGinjector.class
cache: Resource http://localhost:52465/reportserver/WEB-INF/classes/net/datenwerke/rs/web/client/RSGinjector.class has expired.
network: Connecting http://localhost:52465/reportserver/WEB-INF/classes/net/datenwerke/rs/web/client/RSGinjector.class with proxy=DIRECT
network: Connecting http://localhost:52465/ with proxy=DIRECT
network: Connecting http://localhost:52465/reportserver/WEB-INF/classes/net/datenwerke/rs/web/client/RSGinjector.class with cookie "_ga=GA1.1.1622299273.1418231823; __uvt=; uvts=2itjIE969cPgk7CA; _gat=1"
network: ResponseCode for http://localhost:52465/reportserver/WEB-INF/classes/net/datenwerke/rs/web/client/RSGinjector.class : 304
network: Encoding for http://localhost:52465/reportserver/WEB-INF/classes/net/datenwerke/rs/web/client/RSGinjector.class : null
network: Disconnect connection to http://localhost:52465/reportserver/WEB-INF/classes/net/datenwerke/rs/web/client/RSGinjector.class
cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@eaea4000: 1
security: Grant connect perm for http://localhost:52465/reportserver/WEB-INF/lib/gin-1.5.0.jar : java.security.Permissions@1c3c607 (
("java.net.URLPermission" "http://localhost:52465" "*:*")
("java.net.URLPermission" "http://localhost:52465/-" "*:*")
)

network: Created version ID: 1.8.0.40
network: Created version ID: 1.8.0.31
security: Grant connect perm for http://localhost:52465/reportserver/WEB-INF/lib/requestfactory-server-2.5.0-rc1.jar : java.security.Permissions@11e5555 (
("java.net.URLPermission" "http://localhost:52465" "*:*")
("java.net.URLPermission" "http://localhost:52465/-" "*:*")
)

network: Created version ID: 1.8.0.40
network: Created version ID: 1.8.0.31
basic: exception: java.lang.reflect.InvocationTargetException.
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.runOnEDTAndWait(Unknown Source)
    at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.instantiateApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
    at com.sun.deploy.uitoolkit.impl.awt.OldPluginAWTUtil.invokeAndWait(Unknown Source)
    ... 5 more
Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create() is only usable in client code!  It cannot be called, for example, from server code.  If you are running a unit test, check that your test case extends GWTTestCase and that GWT.create() is not called from within an initializer or constructor.
    at com.google.gwt.core.shared.GWT.create(GWT.java:51)
    at com.google.gwt.core.client.GWT.create(GWT.java:85)
    at net.datenwerke.rs.web.client.ReportServer.<init>(ReportServer.java:19)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter$1.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$500(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
security: Reset deny session certificate store
basic: Removed progress listener: sun.plugin.util.ProgressMonitorAdapter@1762fd4
basic: Loading Java Applet Failed...
security: Reset deny session certificate store
basic: Dialog type is not candidate for embedding
Java Plug-in 11.31.2.13
Using JRE version 1.8.0_31-b13 Java HotSpot(TM) Client VM


Has anyone run into similar issues or managed or attempted to run this applet from a .net project? Information about setting up applets in .Net is already pretty spotty online, and I've been unable to find any evidence here that ReportServer has been tried with .Net, so any help would be greatly appreciated.

Thanks!!

Offline

#2 2015-04-09 06:22:42

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: Run applet from Asp.Net WebForms

Hi,

I am afraid this will not work. ReportServer is not an applet. It is a Java web application that runs within an application server (e.g., Tomcat or Jetty). Once you have ReportServer running in an application server you could then embed functionality within other applications (e.g., .NET applications). For more information on the installation process of ReportServer have a look at the configuration guide available on sourceforge: http://sourceforge.net/projects/dw-rs/f … rce=navbar.

Cheers
-Arno

Offline

Board footer

Powered by FluxBB