× 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 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)

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.