Re: Applet can't get an InitialContext in sp8 5.1
Here's the latest on this issue...
CASE_ID_NUM: 212375
I had a talk with one of our engineer here, he said the patch that was given
earlier, works for un secure protocols(http,t3). For secure protocols
already two cases are field(CR42423,CR42598). I will let you know once i had
feedback from engg team.
"Joe Herbers" <[email protected]> wrote in message
news:[email protected]...
Well, we thought the patch on the service pack fixed things, and it sort of
does, but not completely. I sent the following to BEA support a week and a
half ago, but so far I've gotten no response on this. Anyone else encounter
this?
Please reopen case 212375. The patch provided (CR041497) fixes the initial
problem we and others saw. However, the way the fix is implemented does not
seem to be completely correct. When we try with other configurations, such
as SSL, things don't completely work. Someone looked at a decompiled
version of the patched Handler.class and it seems to be catching the
exception as expected, but the catch is "outside" the code that still
needs to be executed in order for everything to work as desired.
We think that our prior workaround (reverting back to the version of the
Handler.class that exists in the original 5.1 install and not using the one
in sp8 or this patch) will continue to work for us, but that is not a
solution that we should go to production with. Please correct the patch.
"Joe Herbers" <[email protected]> wrote in message
news:<[email protected]>...
FYI: This was a weblogic bug (case 212375) in sp8 that is fixed by patch
CR041497.
"Sudheendra Galgali" <[email protected]> wrote in message
news:[email protected]...
Hi,
I have a simple applet that tries to create a context to the WL server. I am
currently trying out WL 5.1, service pack 8 on Windows NT 4.0/service pack 5
using JDK 1.3 and the 1.3.0.01 plugin on the client. I am attaching the
applet source code and the weblogic.policy file with this post.
When I try to create the context from the applet, I get the following
exception. I have tried playing with the weblogic.policy file but to no
avail. Can anybody help? The same code works when the server is run with WL
4.5.1 or 4.5.2.
java.lang.ExceptionInInitializerError: java.security.AccessControlException:
access denied (java.util.PropertyPermission * read,write)
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.checkPropertiesAccess(Unknown Source)
at java.lang.System.getProperties(Unknown Source)
at weblogic.net.http.Handler.init(Handler.java:43)
at
weblogic.socket.JVMSocketHTTPClient.<clinit>(JVMSocketHTTPClient.java:26)
at weblogic.socket.JVMSocketManager.create(JVMSocketManager.java:308)
at
weblogic.rjvm.ConnectionManager.findOrCreateSocket(ConnectionManager.java:93
5)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:339)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:306)
at
weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:252)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:223)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:186)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:155)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:200)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:195)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:148)
at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:123)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at Applet1.getInitialContext(Applet1.java:80)
at Applet1.init(Applet1.java:50)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Any help would be appreciated. Thanks in advance.
A further update on this: this patch fixes https for applets in sp8/9.
However, it doesn't work with proxy servers with https (which used to work -
http with proxy servers does still work). We've reported this to BEA and
they are investigating...
"Joe Herbers" <[email protected]> wrote in message
news:[email protected]...
There is now also a patch for this that makes SSL work:
cr042423_rel510sp81.jar Not sure if this patch works with sp9. The
original problem is fixed in sp9, but I don't think the SSL part is.
"Joe Herbers" <[email protected]> wrote in message
news:[email protected]...
Here's the latest on this issue...
CASE_ID_NUM: 212375
I had a talk with one of our engineer here, he said the patch that was given
earlier, works for un secure protocols(http,t3). For secure protocols
already two cases are field(CR42423,CR42598). I will let you know once i had
feedback from engg team.
"Joe Herbers" <[email protected]> wrote in message
news:[email protected]...
Well, we thought the patch on the service pack fixed things, and it sort of
does, but not completely. I sent the following to BEA support a week and a
half ago, but so far I've gotten no response on this. Anyone else encounter
this?
Please reopen case 212375. The patch provided (CR041497) fixes the initial
problem we and others saw. However, the way the fix is implemented does not
seem to be completely correct. When we try with other configurations, such
as SSL, things don't completely work. Someone looked at a decompiled
version of the patched Handler.class and it seems to be catching the
exception as expected, but the catch is "outside" the code that still
needs to be executed in order for everything to work as desired.
We think that our prior workaround (reverting back to the version of the
Handler.class that exists in the original 5.1 install and not using the one
in sp8 or this patch) will continue to work for us, but that is not a
solution that we should go to production with. Please correct the patch.
"Joe Herbers" <[email protected]> wrote in message
news:<[email protected]>...
FYI: This was a weblogic bug (case 212375) in sp8 that is fixed by patch
CR041497.
"Sudheendra Galgali" <[email protected]> wrote in message
news:[email protected]...
Hi,
I have a simple applet that tries to create a context to the WL server. I am
currently trying out WL 5.1, service pack 8 on Windows NT 4.0/service pack 5
using JDK 1.3 and the 1.3.0.01 plugin on the client. I am attaching the
applet source code and the weblogic.policy file with this post.
When I try to create the context from the applet, I get the following
exception. I have tried playing with the weblogic.policy file but to no
avail. Can anybody help? The same code works when the server is run with WL
4.5.1 or 4.5.2.
java.lang.ExceptionInInitializerError: java.security.AccessControlException:
access denied (java.util.PropertyPermission * read,write)
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.checkPropertiesAccess(Unknown Source)
at java.lang.System.getProperties(Unknown Source)
at weblogic.net.http.Handler.init(Handler.java:43)
at
weblogic.socket.JVMSocketHTTPClient.<clinit>(JVMSocketHTTPClient.java:26)
at weblogic.socket.JVMSocketManager.create(JVMSocketManager.java:308)
at
weblogic.rjvm.ConnectionManager.findOrCreateSocket(ConnectionManager.java:93
5)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:339)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:306)
at
weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:252)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:223)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:186)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:155)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:200)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:195)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:148)
at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:123)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at Applet1.getInitialContext(Applet1.java:80)
at Applet1.init(Applet1.java:50)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Any help would be appreciated. Thanks in advance.
Similar Messages
-
Applet can't get an InitialContext in sp8 5.1
Well, we thought the patch on the service pack fixed things, and it sort of
does, but not completely. I sent the following to BEA support a week and a
half ago, but so far I've gotten no response on this. Anyone else encounter
this?
Please reopen case 212375. The patch provided (CR041497) fixes the initial
problem we and others saw. However, the way the fix is implemented does not
seem to be completely correct. When we try with other configurations, such
as SSL, things don't completely work. Someone looked at a decompiled
version of the patched Handler.class and it seems to be catching the
exception as expected, but the catch is "outside" the code that still
needs to be executed in order for everything to work as desired.
We think that our prior workaround (reverting back to the version of the
Handler.class that exists in the original 5.1 install and not using the one
in sp8 or this patch) will continue to work for us, but that is not a
solution that we should go to production with. Please correct the patch.
"Joe Herbers" <[email protected]> wrote in message
news:<[email protected]>...
FYI: This was a weblogic bug (case 212375) in sp8 that is fixed by patch
CR041497.
"Sudheendra Galgali" <[email protected]> wrote in message
news:[email protected]...
Hi,
I have a simple applet that tries to create a context to the WL server. I am
currently trying out WL 5.1, service pack 8 on Windows NT 4.0/service pack 5
using JDK 1.3 and the 1.3.0.01 plugin on the client. I am attaching the
applet source code and the weblogic.policy file with this post.
When I try to create the context from the applet, I get the following
exception. I have tried playing with the weblogic.policy file but to no
avail. Can anybody help? The same code works when the server is run with WL
4.5.1 or 4.5.2.
java.lang.ExceptionInInitializerError: java.security.AccessControlException:
access denied (java.util.PropertyPermission * read,write)
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.checkPropertiesAccess(Unknown Source)
at java.lang.System.getProperties(Unknown Source)
at weblogic.net.http.Handler.init(Handler.java:43)
at
weblogic.socket.JVMSocketHTTPClient.<clinit>(JVMSocketHTTPClient.java:26)
at weblogic.socket.JVMSocketManager.create(JVMSocketManager.java:308)
at
weblogic.rjvm.ConnectionManager.findOrCreateSocket(ConnectionManager.java:93
5)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:339)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:306)
at
weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:252)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:223)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:186)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:155)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:200)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:195)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:148)
at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:123)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at Applet1.getInitialContext(Applet1.java:80)
at Applet1.init(Applet1.java:50)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Any help would be appreciated. Thanks in advance.Well, we thought the patch on the service pack fixed things, and it sort of
does, but not completely. I sent the following to BEA support a week and a
half ago, but so far I've gotten no response on this. Anyone else encounter
this?
Please reopen case 212375. The patch provided (CR041497) fixes the initial
problem we and others saw. However, the way the fix is implemented does not
seem to be completely correct. When we try with other configurations, such
as SSL, things don't completely work. Someone looked at a decompiled
version of the patched Handler.class and it seems to be catching the
exception as expected, but the catch is "outside" the code that still
needs to be executed in order for everything to work as desired.
We think that our prior workaround (reverting back to the version of the
Handler.class that exists in the original 5.1 install and not using the one
in sp8 or this patch) will continue to work for us, but that is not a
solution that we should go to production with. Please correct the patch.
"Joe Herbers" <[email protected]> wrote in message
news:<[email protected]>...
FYI: This was a weblogic bug (case 212375) in sp8 that is fixed by patch
CR041497.
"Sudheendra Galgali" <[email protected]> wrote in message
news:[email protected]...
Hi,
I have a simple applet that tries to create a context to the WL server. I am
currently trying out WL 5.1, service pack 8 on Windows NT 4.0/service pack 5
using JDK 1.3 and the 1.3.0.01 plugin on the client. I am attaching the
applet source code and the weblogic.policy file with this post.
When I try to create the context from the applet, I get the following
exception. I have tried playing with the weblogic.policy file but to no
avail. Can anybody help? The same code works when the server is run with WL
4.5.1 or 4.5.2.
java.lang.ExceptionInInitializerError: java.security.AccessControlException:
access denied (java.util.PropertyPermission * read,write)
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.checkPropertiesAccess(Unknown Source)
at java.lang.System.getProperties(Unknown Source)
at weblogic.net.http.Handler.init(Handler.java:43)
at
weblogic.socket.JVMSocketHTTPClient.<clinit>(JVMSocketHTTPClient.java:26)
at weblogic.socket.JVMSocketManager.create(JVMSocketManager.java:308)
at
weblogic.rjvm.ConnectionManager.findOrCreateSocket(ConnectionManager.java:93
5)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:339)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:306)
at
weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:252)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:223)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:186)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:155)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:200)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:195)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:148)
at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:123)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at Applet1.getInitialContext(Applet1.java:80)
at Applet1.init(Applet1.java:50)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Any help would be appreciated. Thanks in advance. -
Questions on Signed Applets -- Can't Get it to Work
For some reason my applet doesn't do any of the JDBC stuff that it's supposed to do on the web, yet when I run it through my IDE (Eclipse) the JDBC stuff gets executed. I uploaded all of my .class files and the mysql-connector com and org packages. Anybody have an idea what's wrong? I know this may be vague, so please ask questions if you need more information.
I got this error message when I changed things up a bit:
Connecting to the url MySQL database on port [port]
SQLException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.security.AccessControlException
MESSAGE: access denied (java.net.SocketPermission [url] resolve)
Message was edited by:
ktm5124When I view my applet on my website I get the error message: The application's digital signature is invalid. All I did was follow the steps at the URL I mentioned. What could I have done wrong? =(
Perhaps it's the policy file. Should I make the policy file myself? I uploaded the one that Eclipse made for me. It looks like this:
/* AUTOMATICALLY GENERATED ON Tue Apr 16 17:20:59 EDT 2002*/
/* DO NOT EDIT */
grant {
permission java.security.AllPermission;
Oh, and this is what my Java Console says when I view the applet on the website:
Connecting to the [database name] MySQL database on port 3306
SQLException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.security.AccessControlException
MESSAGE: access denied (java.net.SocketPermission [MySQL database URL] resolve)
STACKTRACE:
java.security.AccessControlException: access denied (java.net.SocketPermission [MySQL database URL] 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 java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:137)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555)
at com.mysql.jdbc.Connection.<init>(Connection.java:1485)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at util.LoadDriver.load(LoadDriver.java:19)
at main.RedButtonGame.init(RedButtonGame.java:77)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
** END NESTED EXCEPTION **
Last packet sent to the server was 751 ms ago.
SQLState: 08S01
VendorError: 0
Exception in thread "Timer-0" java.lang.NullPointerException
at main.ScoresUpdater.update(ScoresUpdater.java:76)
at main.ScoresUpdater.access$0(ScoresUpdater.java:70)
at main.ScoresUpdater$1.run(ScoresUpdater.java:55)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
at main.User.updateYourself(User.java:47)
at main.RedButtonGame.actionPerformed(RedButtonGame.java:244)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)
Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
at main.ScoresUpdater.update(ScoresUpdater.java:76)
at main.ScoresUpdater.refresh(ScoresUpdater.java:44)
at main.RedButtonGame.actionPerformed(RedButtonGame.java:247)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)
Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
at main.ScoresUpdater.update(ScoresUpdater.java:76)
at main.ScoresUpdater.refresh(ScoresUpdater.java:44)
at main.RedButtonGame.actionPerformed(RedButtonGame.java:247)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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) -
How can you get an applet to obey the CSS z-index attribute?
How can you get an applet to obey the CSS z-index attribute?
I have a DHMTL page with a panel that I want to slide back and forth. But another part of the requirement is to have the panel look like it is sliding under another panel.
The problem is that an applet is on the panel that slides. When the sliding panel move under the stationary panel the applet does not go under the stationary panel, but the reset of the sliding panel does render looking like it is sliding under.
See below.
- ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
- ~ ~ ^ ^ -
- ~ ~ ^ ^ -
- ~ #############*************** ^ -
- ~ # ^ * ^ -
- ~ # ^ * ^ -
- ~ # ^ * ^ -
- ~ # ^ * ^ -
- ~ # ^ * ^ -
- ~ # ^ * ^ -
- ~ # ^ * ^ -
- ~ # ^ * ^ -
- ~ # ^ * ^ -
- ~ # ^ * ^ -
- ~ # ^ * ^ -
- ~ #############^************** ^ -
- ~ ~ ^ ^ -
- ~ ~ ^ ^ -
- ~ ~ ^ ^ -
- ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
~ has a z-index of 1
# and * have a z-index 2
# shows above ~ and below ^
^ has a z-index of 3What I am getting with the applet on the panel with a z-index of 2 is the following
- ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
- ~ ~ ^ ^ -
- ~ ~ ^ ^ -
- ~ #############*************** ^ -
- ~ # ^ * ^ -
- ~ # @@@@@@@@@@@@@@@@@@@@ * ^ -
- ~ # @ @ * ^ -
- ~ # @ @ * ^ -
- ~ # @ @ * ^ -
- ~ # @ @ * ^ -
- ~ # @ @ * ^ -
- ~ # @ @ * ^ -
- ~ # @@@@@@@@@@@@@@@@@@@@ * ^ -
- ~ # ^ * ^ -
- ~ # ^ * ^ -
- ~ #############^************** ^ -
- ~ ~ ^ ^ -
- ~ ~ ^ ^ -
- ~ ~ ^ ^ -
- ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
--------------------------------------------------------Where @ is the applet. Notice how the applet is on top of the ^ but the panel under it, ^, is under like it should be. All the panels are 1x1 tables with a border. So how can I get the applet on the drawing shown with # and * to follow the rendering of the z-index of 2?Hi,
I have the same problem, and don't know how to solve it, So, i had tried to put my applet in a div tag wih z-index=0, but it still hide my other Dhtml divs with bigger Z-index (z-index =1000)
Have you any idea to solve this.
Thanks
Hakim -
Java 1.6 Applet on a mac... Can't get it to work
Hi all,
I posted this on another section of the forum, but they suggested this would be a better place. Sorry for a duplicate post.
I am developing a Java 1.6 Applet, and it works fine on Windows and Linux, but I can't seem to get it to work on a Mac.
I really have little expierence with Macs. I downloaded the newest mac java 1.6. I installed it. I went to the terminal, and verified that it is using java 1.6 (using the java -version command). But then when I load up safari or firefox, the applet will not load. If I open the java applet console, it tells me that it is using a 1.5 jre. I can't seem to be able to change the applet plugin to point to the 1.6 jre.
Note, that if I go to a terminal, and I run the applet with the 1.6 appletviewer, it works fine. My only issue is getting it to work in the browser on a mac.
Any ideas?
Thanks,
-AdamSame problem. Mac 10.5 Firefox 3
JavaFX 1.0 was just released. I can't get the JavaFX example applets to run with any kind of worthwhile quality -- I have to downgrade the Whole System to 1.5! Results in very low frames per second on the animation examples, and eventual complete freeze up of Firefox. I guess I'll click the giant orange Install Me button on the javafx.com website & see if that gets me any further.
Sun should implement their JVM and platform support for Apple computers. Current Java system on Mac is a miserable experience. -
I am writing a program that should allow me to communicate between applet. The applet is loaded via the a web site, but i can't get that to work, so i am using appletviewer instead.
I want to establish a connection between the applets thus allowing to chat.
So far i can open both applets up, (using localhost), but the applet isn't able to establish the connection and i have to turn off one of the applet window, before i get a connection, but it won't do anything after that.
I know it is a security problem, but how can i fix this problem.
Please can you help, i am in difficult position
JunaidI think what u are trying to do is some peer-to-peer communication using applets.
The thing is the applet knows ( via getCodeBase and getDocumentBase methods) from where it was launched. It has no knowledge of where other applets from the same server may be residing.
It looks to me that you will need to do some server-side coding as well..
On possible solution would be to
A) Install and run a Tomcat Server
B) Tomcat can be used as a webserver in limited way .. (refer it documentation ) by defaul it runs on port 8080
C) So you can say http://localhost:8080/
D) Use this launch the applets
E) Using HTTP Tunneling ( Read about it in Servlets ) you can set up Tomcat to broker messages between the 2 applets
Also from you question it appear that both the applets try to hook on the same port, now on one computer (localhost) one port can be used by one socket . Try to get them to use different ports then the appletviewer problems should solve it self.
To use different ports without making 2 different applets , simeply pass the port as a PARAM to the applet -
How can i get & use java true type fonts in my applet
Hi,
I could get the System fonts in my Applet by making use of Toolkit.getFontList()
I have used getGraphicsEnvironment to get fonts but my browser doesn't support it.I get ClassNotFoundException.
How can I get & make use True Type Fonts in my Java Applet.
Regards
SivaTo use getGraphicsEnvironment, you must convert your HTML with the HTMLConverter -- this will tell the browser not to use the native JVM to run your applet but to use a Java plugin to run the applet. If you cannot find HTMLConverter in your system, you may have to download it from Sun's web site.
V.V. -
Applet can get arbitrary objects as a param tag?
I wonder if I can get an ViewObject(which is in Info table ) as a value of value
attribute in applet tag. I mean an object in the infotable of jsp containing the
applet can be a value of value attribute in applet tag.
I have this question, since I should give a viewobject to applet when I push
submit button in jsp containing the applet.
Help! please~Hi Sam,
Instead of point 1, can you try poin 2 to see.
1.
<jsp:include page="test2.jsp" flush="true">
<jsp:param name="fname" value="FirstName"/>
<jsp:param name="lname" value="LastName"/>
<jsp:param name="age" value="11"/>
</jsp:include>
2.
<jsp:include page="test2.jsp?fname=FirstName&lname=LastName&age=11" flush="true"/>
3. test2.jsp
<%=request.getParameter("fname")%>
<%=request.getParameter("lname")%>
<%=request.getParameter("age")%>
-- Paul -
Applet is running in simulator but can't get on the real card.. PLEASE HELP
Hi,
I have been able to run my applet succesfully in a simulator, and it tested okay. My problem is that I can't get the sap or cap fil on my real card (gp211pkis)... I have read that it could be becaurse I need to specify a security domain AID...
Please help...
======================= Upload file into a card
CMD: Install for load
-> 80 E6 02 00 0E 09 A0 00 00 00 62 03 01 0C 05 00 00 00 00 00
<- 90 00
18 blocks to load ...
CMD: Load File
-> 80 E8 00 00 CC C4 82 0D AC BA CA CA FE 20 01 1C 63 6F 6D 2E 67 65 6D 70 6C 75 73 2E 65 78 61 6D 70 6C 65 73 2E 6F 70 70 75 72 73 65 09 A0 00 00 00 62 03 01 0C 05 43 66 69 6C 65 3A 2F 44 3A 2F 47 65 6D 70 6C 75 73 2F 47 65 6D 58 70 72 65 73 73 6F 2E 72 61 64 33 2F 65 78 61 6D 70 6C 65 73 2F 47 58 50 32 31 31 5F 50 4B 5F 49 53 2F 4F 50 50 75 72 73 65 2F 6F 75 74 2F 07 4F 50 50 75 72 73 65 0A A0 00 00 00 62 03 01 0C 05 01 00 00 0D 24 1F 8B 08 00 00 00 00 00 00 00 95 58 09 78 54 D5 15 FE EF 9B 35 C9 10 66 80 51 12 12 4C 01 25 4C 02 44 22 3B 06 B3 01 81 90 C4 CC 24 31 48 4D 86 99 17 18 4D 66 E2 2C 21 A8 45 4A A9 D6 2E 96 C8
<- 69 85
*** ??? : OP.error.E8.6985hello
your install for load command is not correct.
in data field you must specify security domain AID.
for example , issuer security domain AID : A000000003000000
install for load command :
80 E6 02 00 16 09 A0 00 00 00 62 03 01 0C 05 08 A0 00 00 00 03 00 00 00 00 00 00
you can use smart card Toolset Pro for sending this command.
in toolset Pro. leave Le field blank.
Best Regards,
siavash -
How can I get the ip addres of computers that log into my Applet?
How can I get the ip addres of computers that log into my Applet?
Thanks
REuvenTry using method getAddress of class InetAddress.
-
Can't get java to initiate applet, or even run, please help
I need help, please. Need java to do some organic chem work, and I can't get it to work. I have Java 2 runtime SE - 1.4.1_05, virtual machine 1.4.1_05-b01, and plug-in the same as J2SE. The Web Start file was corrupted when it downloaded, so I removed it from the Add/Remove in control panel. I'm running windows 2000 Pro, I'm not a computer expert (means I need explicit instructions), I'm a vet student trying to do my homework, and study for exams. Any reply here will be very appreciated, or to my e mail [email protected] Thank you, Cindy
There are plenty of people here that can and will help, but you need to tell us what the problem is (details, error messages, code samples, etc)
Here's a general blurb, post back it it doesn't help.
This may duplicate some of what you've already done, if so fine. But please verify you've done exactly what is written or know why you shouldn't before proceeding. You may want to print these instructions before continuing.
Also note that this applies to the currrent java version installed on "standard" windows systems, only.
To download the current version of Java, go here:
http://java.sun.com/j2se/1.4.2/download.html
and click on the word DOWNLOAD in the column labeled SDK in this line: Windows Offline installation (info)
After downloading, click on this page of installation instructions and read through #6:
http://java.sun.com/j2se/1.4.2/install-windows.html
Install the software according to the preceeding instructions. If you encounter
problems, see the section "Troubleshooting the Installation" in the installation instructions.
Below is a Helloworld program, copy and paste it into your editor and save it as "HelloWorld.java" Use capitalization, Java is case-sensitive. If you're using Notepad, quote the name when saving, otherwise Notepad adds ".txt" to the name. Go to DOS/command window and check that you've got the file where you want it and that it's named correctly.
-------save this program as HelloWorld.java--------
public class HelloWorld {
public static void main (String[] args) {
System.out.println("Hello World!");
In the same directory as HelloWorld.java, enter "javac" - the program should print out a list of options, if not, set your PATH - see below.
In the same directory as HelloWorld.java, enter "javac HelloWorld.java" and the javac compiler will create HelloWorld.class. If it was successful it will not give any messages. Check that the file is created.
In the same directory as HelloWorld.java, enter "java -classpath . HelloWorld" with the spaces and the period. The program will run. If it doesn't, recheck that you followed the instructions.
Here is additional information:
The Windows path is a set of pointers that Windows uses to locate programs that you execute, like javac.exe and java.exe. This setting is explained here:
http://java.sun.com/j2se/1.4.2/install-windows.html - 5. Update the PATH variable
(you should have already done this as part of the Java installation)
The CLASSPATH is another set of pointers that is used by Java to find the files that you create and want compiled and/or run. This setting is explained here:
Setting the Classpath:
http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html
[NOTE: always start your classpath with ".;" which means the current directory. See my classpath, below]
How Classes are Found:
http://java.sun.com/j2se/1.4.2/docs/tooldocs/findingclasses.html
Examples:
This is my path
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\BATCH;C:\J2SDK1.4.2_01\BIN;C:\PROGRA~1\UTILIT~1;C:\PROGRA~1\WIN98RK
This is my classpath
CLASSPATH=.;C:\mjava;C:\mnrx;C:\NetRexx\lib\NetRexxC.jar;C:\j2sdk1.4.2_01\lib\tools.jar;C:\NetRexx\NrxRedBk -
Dos application - can't get initialContext to WL7
Hi, I'm trying to get the InitialContext within an DOS application. But when I start
the dosappl, I get the following error:
javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.
WLInitialContextFactory. Root exception is java.lang.ClassNotFoundException: we
blogic.jndi.WLInitialContextFactory
I use the following programmatic code for getting the initial context:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
env.put(Context.PROVIDER_URL, "t3://localhost:7001");
env.put(Context.SECURITY_PRINCIPAL, "shadowdancer");
env.put(Context.SECURITY_CREDENTIALS, "sd5028991");
Context ctx = getInitialContext(); <- ERROR !!!!!
I hope someone knows what is wrong, I tried to put weblogic.jar in the same dir as
the appl and tried to reference to weblogic.jat using the -cp ... to run my appl
I use WL7
Thx
Maarten
[BookAppl.java]To who this reads
I've just put it in the welogic700\server\lib directory and now it works fine. But
the jar-file weblogic.jar is in my classpath, so why doesn't work when I try to run
the application in another directory?
thx
"Maarten" <[email protected]> wrote:
>
>
>
Hi, I'm trying to get the InitialContext within an DOS application. But
when I start
the dosappl, I get the following error:
javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.
WLInitialContextFactory. Root exception is java.lang.ClassNotFoundException:
we
blogic.jndi.WLInitialContextFactory
I use the following programmatic code for getting the initial context:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
env.put(Context.PROVIDER_URL, "t3://localhost:7001");
env.put(Context.SECURITY_PRINCIPAL, "shadowdancer");
env.put(Context.SECURITY_CREDENTIALS, "sd5028991");
Context ctx = getInitialContext(); <- ERROR !!!!!
I hope someone knows what is wrong, I tried to put weblogic.jar in the same
dir as
the appl and tried to reference to weblogic.jat using the -cp ... to run
my appl
I use WL7
Thx
Maarten -
How can I get Shake to show up in Launchpad?
I have Shake 4.1 installed on my Mid-2009 MBP, and I have Lion installed. (just to head off all the nonsensical responses- yes, Shake is installed and is working perfectly, never mind how it's still there after the Lion upgrade). Anyway, the shkqtv and shkv flipbook apps show up just fine in Launchpad, yet the Shake app itself isn't on any of my Launchpad pages. How can I get the Shake app to join its compatriots in Launchpad? I've tried the Launchpad-Control applet for the Sysprefs pane, but Shake doesn't show up there, either. Thanks in advance for your help!
I have the same problem. Does anyone have an answer?
-
How can I get a reference to the Local interface of a EJB 3 session?
Hi,
How can I get a reference to the Local interface of a EJB 3 session?
My session implements both the local and remote interfaces, so in my client, when I look up the remote interface using the following code, I did get a reference
processor = (IItemProcessorRemote)initialContext.lookup(IItemProcessorRemote.class.getName());but if I also look up the local interface in th eclient using this:
processorLocal =(IItemProcessor)initialContext.lookup(IItemProcessor.class.getName());I got errors like the following, do you know why? Thanks a lot!
Exception in thread "main" javax.naming.NameNotFoundException: sessions.IItemProcessor not found
at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:203)
at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:175)
at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:61)
at com.sun.enterprise.naming.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:116)
at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:121)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:650)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:193)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1705)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1565)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:947)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:178)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:717)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:473)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1270)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:479)BTW, findItemByTitle(String title) is a business method in my ItemProcessor session bean.
public String findItemByTitle(String title) {
AuctionItem item;
String result = null;
try {
Query query = entityManager
.createNativeQuery("SELECT i from AuctionItem i WHERE i.title LIKE : aTitle");
query.setParameter("aTitle", title);
item = (AuctionItem) query.getSingleResult();
result = item.toString();
} catch (EntityNotFoundException notFound) {
} catch (NonUniqueResultException nonUnique) {
return result;
} -
How can I get rid of windows 8.1 in my new lenovo and get windows 7 put in?
How can I get rid of Windows 8.1 on my new Lenovo laptop and install Windows 7?
Hi,
I'll assume your laptop was upgraded from Windows 7 to Windows 8.1
1. Start by copying all your personal folders (Documents, Pictures, Music, Videos, Favourites, local databases,
hosts files, etc) into an external disk, DVD, tape, whatever.
2. If I were you, I wouldn't use Windows 8.1 backup tool, I'm not sure Windows 7 Restore applet will be able
to read a Windows 8.1 backup.
3. Check that you have all the necessary licenses, CDs and executables to reinstall your former Windows 7
applications, components, browsers, plugins, Java, .NET Frameworks, etc. Be aware that some applications require
to keep same hostname and/or same IP and/or or same local username (or all of them) as they were on the original
Windows 7 machine.
4. Check that you have your Windows 7 CD and license handy.
5. Do you have a Windows 7 image backup of your laptop (prior to the Windows 8 upgrade)?
5.a Yes? Then restore that image and restore your personal folders on top. You might need to
install or reinstall some of the applications I mentioned on #3
5.b No? You'll have to format your laptop, install Windows 7 from scratch, create your local
user with administrative rights, install SP1, install necessary updates, reinstall all your
applications and finally restore your personal folders.
Sebastian Sajaroff Senior DBA Pharmacies Jean Coutu
Maybe you are looking for
-
Schedule Job to run every day at 01:00:00 i.e. mid-night 01:00 AM
Dear Gurus, I want to create a job that will run every day at 01:00:00 i.e. mid-night 01:00 AM. and the above job will be started from 2-Jul-2010 01:00:00 I have created below code. BEGIN DBMS_SCHEDULER.CREATE_JOB( JOB_NAME => 'Smry_Dly_Trial' ,JOB_T
-
Make to order---subcontracting
Dear Expert, Please help me on below scenario. I raised special sales order through MTO process. After that i run MRP. In this Process, one Subcontracting Process comes throgh Production Planning. I have converted PR to Subcontract PO. The Account as
-
Can I run the new Mac pro (6.1) with only one stick of ram?
Will that cause any problems. And if not how much will the overall quality be affected. it won't be a permanent solution, but for a few weeks at least. So can it happen? Can I run the Mac pro 2013 with only one memory stick?
-
I have an early 2008 Mac Pro with the ATI Radeon 2600. I recently installed Windows 7 and was looking to upgrade my graphics card to whatever is currently the best available now that I have access to Windows games. Scanning the forum I see the NVIDIA
-
Help on socket ! very urgent !!!
Hi all, i am developing a client app that connects to a server... for example i have the constuctor of a socket that connects to a server..the server requires the ipaddress and local port of the client for security reasons...so my socket constructor