Applet working in IE not working in Firefox,Chrome


#1

Applet not working in Firefox or Chrome.The trace from Java Console is this:

java.security.AccessControlException: access denied (“java.net.SocketPermission” “www.w3.org:80” “connect,resolve”)
<span =“Apple-tab-span” style=“white-space:pre”> at java.security.AccessControlContext.checkPermission(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at java.security.AccessController.checkPermission(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at java.lang.SecurityManager.checkPermission(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at java.lang.SecurityManager.checkConnect(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at sun.plugin2.applet.SecurityManagerHelper.checkConnectHelper(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at sun.plugin2.applet.AWTAppletSecurityManager.checkConnect(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at sun.net.www.http.HttpClient.openServer(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at sun.net.www.http.HttpClient.(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at sun.net.www.http.HttpClient.New(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at sun.net.www.http.HttpClient.New(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.nwoods.jgo.svg.DefaultDocument.a(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.nwoods.jgo.svg.DefaultDocument.SVGReadDoc(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.bea.dsp.oam.console.metadatabrowser.datalineage.LineageGraphApplet.start(LineageGraphApplet.java:53)
<span =“Apple-tab-span” style=“white-space:pre”> at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.start(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at java.lang.Thread.run(Unknown Source)

java.lang.NullPointerException
<span =“Apple-tab-span” style=“white-space:pre”> at com.nwoods.jgo.svg.DefaultElement.getAttribute(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.nwoods.jgo.svg.DefaultDocument.buildJGoDoc(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.nwoods.jgo.svg.DefaultDocument.SVGReadDoc(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at com.bea.dsp.oam.console.metadatabrowser.datalineage.LineageGraphApplet.start(LineageGraphApplet.java:53)
<span =“Apple-tab-span” style=“white-space:pre”> at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.start(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
<span =“Apple-tab-span” style=“white-space:pre”> at java.lang.Thread.run(Unknown Source)

Any solution for this issue?


#2

You shouldn’t need to use any libraries other than the standard JDK in order to use the jgo.svg package. Can you remove the dependence on apache.xerces from your project?


#3

Thanks for the reply.Is JGo supported for jdk7?


#4

How to avoid accessing deault package xerces which comes as part of JDK.


#5

network: Cache entry not found [url: <a href=“http://www.w3.org/TR/html4/strict.dtd," target=”_blank" rel=“nofollow”><u><font color="#0066cc">http://www.w3.org/TR/html4/strict.dtd,</font></u></a> version: null]
network: Connecting http://www.w3.org/TR/html4/strict.dtd with proxy=HTTP @ www-proxy.us.oracle.com/148.87.19.20:80
network: Cache entry not found [url: <a href=“http://www.w3.org/crossdomain.xml," target=”_blank" rel=“nofollow”><u><font color="#0066cc">http://www.w3.org:80/crossdomain.xml,</font></u></a> version: null]
network: Connecting http://www.w3.org:80/crossdomain.xml with proxy=HTTP @ www-proxy.us.oracle.com/148.87.19.20:80
java.security.AccessControlException: access denied (“java.net.SocketPermission” “www.w3.org:80” “connect,resolve”)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at sun.plugin2.applet.SecurityManagerHelper.checkConnectHelper(Unknown Source)
at sun.plugin2.applet.AWTAppletSecurityManager.checkConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at com.nwoods.jgo.svg.DefaultDocument.a(Unknown Source)
at com.nwoods.jgo.svg.DefaultDocument.SVGReadDoc(Unknown Source)


#6

Yes, JGo is supported for jdk7


#7

I think you have an unnecessary (and incompatible) reference to com.sun.org.apache in your classpath.

The only reference you need in your classpath for JGo is jre\lib\rt.jar


#8

rt.jar comes with com.sun.org.apache.
How to avoid ?


#9

This problem may be due to increased applet security in more recent releases of the jre. We’ll continue to look into it, but in the meantime you might want to look at things that could cause security issues for java applets in general, such as your java security level, browser settings, and firewalls.


#10

Can you please get us JGoDocument without external site access.


#11

I’m sorry, but I do not understand your request. Don’t you already have JGoDocument.java source code?


#12

Could you please send the source code to registered emailid.
Or atleast make your sales team to send a mail to my registered emailid.