× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I did some reading on applet security and http://java.sun.com/developer/onlineTraining/Programming/JDCBook/appA.html and for fun added this directive
grant {
permission java.security.AllPermission;
};
To my local systems policy file and the permission error went away. Now I guess it's time to worth through all the possible policy settings to see the minimum needed to make it work

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Bob
Sent: Friday, July 25, 2008 3:42 AM
To: Java Programming on and around the iSeries / AS400
Subject: Re: using jt400 in a java applet

i have jt400 working from Html applet / Coldfusion / JSP / Flash / Command line
and none give this AccessControlException !!!
post the code sample to help recreate the problem .


----- Original Message ----
From: Mike Cunningham <mcunning@xxxxxxx>
To: Java Programming on and around the iSeries / AS400 <java400-l@xxxxxxxxxxxx>
Sent: Thursday, July 24, 2008 7:42:25 PM
Subject: using jt400 in a java applet

Has anyone ever used the IBM supplied jt400.jar in a java applet application that is sent to the client and executed from the PC? I have a java application that will run from my PC but when I deploy it as an applet it fails with a permissions error. It is acting like the jt400.jar files is trying to run outside the JRE and is being denied permission.

Error Message: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.reflect.AccessibleObject.setAccessible(Unknown Source)
at com.ibm.as400.access.PortMapper.getServerSocket(PortMapper.java:185)
at com.ibm.as400.access.AS400ImplRemote.signonConnect(AS400ImplRemote.java:1930)
at com.ibm.as400.access.AS400ImplRemote.signon(AS400ImplRemote.java:1849)
at com.ibm.as400.access.AS400.sendSignonRequest(AS400.java:2585)
at com.ibm.as400.access.AS400.promptSignon(AS400.java:2156)
at com.ibm.as400.access.AS400.signon(AS400.java:3426)
at com.ibm.as400.access.AS400.connectService(AS400.java:877)
at com.ibm.as400.access.AS400JDBCConnection.setProperties(AS400JDBCConnection.java:3029)
at com.ibm.as400.access.AS400JDBCDriver.prepareConnection(AS400JDBCDriver.java:1254)
at com.ibm.as400.access.AS400JDBCDriver.initializeConnection(AS400JDBCDriver.java:1105)
at com.ibm.as400.access.AS400JDBCDriver.connect(AS400JDBCDriver.java:355)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.discoverymachine.util.db.DBConnectionData.makeWritableConnection(DBConnectionData.java:270)
at com.discoverymachine.util.db.DBConnectionData.makeWritableConnection(DBConnectionData.java:227)
at com.discoverymachine.util.db.DBConnectionData.makeAnyConnection(DBConnectionData.java:317)
at com.discoverymachine.dm.engine.TMKDBFunctions.DBExecuteQuery(TMKDBFunctions.java:277)
at com.discoverymachine.dm.engine.TMKDBFunctions.DBExecuteQuery(TMKDBFunctions.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.discoverymachine.dm.engine.PredefinedFunctionMethod.invoke(PredefinedFunctionMethod.java:68)
at com.discoverymachine.dm.engine.RunFunctionExpression.run(RunFunctionExpression.java:231)
at com.discoverymachine.dm.engine.TMKLoader.processStack(TMKLoader.java:1125)
at com.discoverymachine.dm.engine.TMKLoader.run(TMKLoader.java:515)
at com.discoverymachine.dm.engine.GearEngine.runSynchronously(GearEngine.java:112)
at com.discoverymachine.dm.gears.DMGear.runSynchronously(DMGear.java:574)
at com.discoverymachine.dm.gears.GearApplet.start(GearApplet.java:277)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.



--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.