on 10-31-2011 9:06 AM
Hello Experts,
We are using .Net as Front End.The client needs MII chart and their features ,but the trick is they do not want to call a HTML / IRPT page from MII (version : 11.5 ).
we tried the following solution
As it is a 11.5 MII version, I direclty took the "/IIluminator/Classes" and "Illum8.zip" path and tried to create custom APPLET in the HTML code.
we dont know it is the right way of doing, just we have given it out a try.
but we are getting the following error in the JAVA console,
Java Plug-in 1.6.0_22
Using JRE version 1.6.0_22-b04 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\234862
----
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----
java.net.MalformedURLException: unknown protocol: c
* at java.net.URL.<init>(Unknown Source)*
* at java.net.URL.<init>(Unknown Source)*
* at sun.plugin.util.GrayBoxPainter.setProgressFilter(Unknown Source)*
* at sun.plugin.AppletViewer.initApplet(Unknown Source)*
* at sun.plugin.AppletViewer.appletInit(Unknown Source)*
* at sun.plugin.viewer.LifeCycleManager.loadAppletPanel(Unknown Source)*
* at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)*
java.lang.NoClassDefFoundError: com/lighthammer/Illuminator/gui/chart/iChartApplet
* at java.lang.ClassLoader.defineClass1(Native Method)*
* at java.lang.ClassLoader.defineClassCond(Unknown Source)*
* at java.lang.ClassLoader.defineClass(Unknown Source)*
* at java.security.SecureClassLoader.defineClass(Unknown Source)*
* at sun.applet.AppletClassLoader.findClass(Unknown Source)*
* at java.lang.ClassLoader.loadClass(Unknown Source)*
* at sun.applet.AppletClassLoader.loadClass(Unknown Source)*
* at java.lang.ClassLoader.loadClass(Unknown Source)*
* at sun.applet.AppletClassLoader.loadCode(Unknown Source)*
* at sun.applet.AppletPanel.createApplet(Unknown Source)*
* at sun.plugin.AppletViewer.createApplet(Unknown Source)*
* at sun.applet.AppletPanel.runLoader(Unknown Source)*
* at sun.applet.AppletPanel.run(Unknown Source)*
* at java.lang.Thread.run(Unknown Source)*
Caused by: java.lang.ClassNotFoundException: com.lighthammer.Illuminator.gui.chart.iChartApplet
* at sun.applet.AppletClassLoader.findClass(Unknown Source)*
* at java.lang.ClassLoader.loadClass(Unknown Source)*
* at sun.applet.AppletClassLoader.loadClass(Unknown Source)*
* at java.lang.ClassLoader.loadClass(Unknown Source)*
Is there any possible solution to bring only the APPLET part from MII (without using IFRAME in .NET).
Thanks for any help in advance.
Regards,
Lino
Hi Lino,
If you are using MII version 11.5 it is advisable to use java version 1.4.2_XX but you are using Java Plug-in 1.6.0_22, it will bring error one way or the other...
Regards
Sweety
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lino,
please, paste here the code applet.
Danilo Santos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Santos ,
Thanks for the reply
Below is my code
Samta Thakkar: <HTML>
<HEAD>
<TITLE>
Auto-Generated Page
</TITLE>
</HEAD>
<BODY>
<APPLET NAME="myChart" CODEBASE="C:/Inetpub/wwwroot/Illuminator/Classes" CODE="iChart" ARCHIVE="illum8.zip" WIDTH="840" HEIGHT="400">
<PARAM NAME="DisplayTemplate" VALUE="Demo_Project/Vale_POC/SampleChart.xml">
<PARAM NAME="QueryTemplate" VALUE="Demo_Project/Vale_POC/QryValePOC.xml">
<PARAM Name="TagName.1" VALUE="CylTemp1">
</APPLET>
</BODY>
</HTML>
Hi Lino,
Keep the original code of the applet.
<APPLET NAME="myChart" CODEBASE="/Illuminator/Classes" CODE="iChart" ARCHIVE="illum8.zip" WIDTH="840" HEIGHT="400">
<PARAM NAME="DisplayTemplate" VALUE="Demo_Project/Vale_POC/SampleChart.xml">
<PARAM NAME="QueryTemplate" VALUE="Demo_Project/Vale_POC/QryValePOC.xml">
<PARAM Name="TagName.1" VALUE="CylTemp1">
</APPLET>
In 11.5 existis guest user. add two parameters in you applet.
<PARAM NAME="IllumLoginName" VALUE="Guest">
<PARAM NAME="IllumLoginPassword" VALUE="Guest">
I believe the best solution would be to use the SAP MII portal for developing your application and not the. NET. In SAP MII already have a lot tools ready for development of application.
If you use frame follow the link.
http://help.sap.com/saphelp_xmii115/helpdata/en/Security/Programmatic_Logins.htm
Hope this help.
Danilo Santos
Hi Santos ,
Thanks for your kind reply.
I have also tried as you said but it is giving me the folloying Access denied error at my JAVA console
ConsoleLogger::Creating NEW instance...
ERROR - Error Loading Resource File for Applet_: access denied (java.util.PropertyPermission http.strictPostRedirect read)
Authenticator::Authentication error is Authentication Required
Thanks and Regards,
Lino
User | Count |
---|---|
9 | |
7 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.