Hi Team,
Currently we are under NW 7.0 SP 21.
When i lanuch the xml form builder to create the xml forms under Content Management -> Form Builder it shows the blank page and getting the below error.
____________________________________________________________________________________
Java Plug-in 1.6.0_18
Using JRE version 1.6.0_18-b07 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\
----------------------------------------------------
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
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>
----------------------------------------------------
Mar 15, 2012 11:57:53 AM - (ERROR) (Client) com.sapportals.wcm.app.xfbuilder.util.PropertyResourceHandler: Resource "icons/close.gif" could not be loaded -> Exception: java.io.IOException: Invalid jar file
Mar 15, 2012 11:58:03 AM - (ERROR) com.sapportals.wcm.app.xfbuilder.client.util.CloseablePane: could not load icon: icons/close.gif
Mar 15, 2012 11:58:06 AM - (ERROR) (Client) com.sapportals.wcm.app.xfbuilder.util.PropertyResourceHandler: Resource "config/ClientSettings.xml" could not be loaded -> Exception: java.io.IOException: Invalid jar file
Mar 15, 2012 11:58:06 AM - (ERROR) (Client) com.sapportals.wcm.app.xfbuilder: Access denied for resource com/sapportals/wcm/app/xfbuilder/client/config/ClientSettings.xml
Exception in thread "thread applet-com.sapportals.wcm.app.xfbuilder.client.XFormsBuilder-1" java.lang.NoClassDefFoundError: IllegalName: <html><head><LINK REL=stylesheet HREF="/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/customer/BrandingTheme/glbl/glbl_nn7.css?7.0.21.5.1">
at java.lang.ClassLoader.preDefineClass(Unknown Source)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at javax.xml.parsers.FactoryFinder.getProviderClass(Unknown Source)
at javax.xml.parsers.FactoryFinder.newInstance(Unknown Source)
at javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
at javax.xml.parsers.FactoryFinder.find(Unknown Source)
at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
at com.sapportals.wcm.app.xfbuilder.util.xml.XFDomHelperAbstract.<init>(XFDomHelperAbstract.java:251)
at com.sapportals.wcm.app.xfbuilder.util.xml.XFDomHelperAbstract$1.<init>(XFDomHelperAbstract.java:222)
at com.sapportals.wcm.app.xfbuilder.util.xml.XFDomHelperAbstract.<clinit>(XFDomHelperAbstract.java:215)
at com.sapportals.wcm.app.xfbuilder.client.EditorManager.loadClientSettings(EditorManager.java:3185)
at com.sapportals.wcm.app.xfbuilder.client.EditorManager.<init>(EditorManager.java:337)
at com.sapportals.wcm.app.xfbuilder.client.XFormsBuilder.createEditor(XFormsBuilder.java:269)
at com.sapportals.wcm.app.xfbuilder.client.XFormsBuilder.init(XFormsBuilder.java:367)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
_______________________________________________________________________________________________________
After that what i have done is that, i have run the environmental took kit check, i got the below error.
Java Plug-in 1.6.0_18
Using JRE version 1.6.0_18-b07 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\
----------------------------------------------------
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
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.lang.ClassFormatError: Incompatible magic value 1013478509 in class file com/sapportals/wcm/app/xfbuilder/envtest/XFBuilderTestApplet
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.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassFormatError: Incompatible magic value 1013478509 in class file com/sapportals/wcm/app/xfbuilder/envtest/XFBuilderTestApplet
In production system we were able to run this form builder since production system is running on the IBM JVM. Recently we are migrated to SAP JVM from JBM JVM. In quality system SAP JVM is running , we were not able to launch the xml form builder,
Could you please help me to resolve this issue.
Best Regards,
Manoj K
Please check you JAVA version. A 7.0 portal runs under a JVM of version 1.4.2 but from the error it looks like you are running 1.6 java version.
Forms builder runs a client side java applet so check local versions too.
Hope this helps.
Hi Simon,
Thanks for the reply. But it does not work in that case. Please let me know is there any other way where we can check?
Best Regards,
M
Have you checked on OSS? Have you raised a message with SAP? If it only started happening after you upgraded to the SAP JVM, then it seems likely to be the cause, check with SAP.
Hi Manoj,
Can you check if it runs on Portal Server? (If your Portal runs on Windows)
Logon to portal on portal server and try again.
In my case, mostly this helps
Hi Manoj,
This very much seems like a permission problem with the referenced JARs. Please do the following:
In KM repository /etc, check the permissions for the folder xmlforms. Check that the built-in group "Everyone" has the permission "Read" (at least). If this is the case (initially or after you have added the permission), also reset the permissions of the child objects (from the permission dialogue of the xmlforms folder).
Just to explain at least a bit of the background:
"Invalid jar file", "IllegalName: <html><head>..." and "ClassFormatError: Incompatible magic value 1013478509" point to the possibility that instead of the JAR file expected, the portal reacted with an error message, "access denied". This exactly starts with the html code provided above.
Hope it helps
Detlev
Hi Detlev Beutner,
Thanks for the reply. Yes i have checked the permissions for the folder and as well the jar files which is being accessed, "ContentManager" role is having full control. The user who is tying to execute the xml form builder have the 'ContentManager" role. Please advise me how to solve this issue further.
Is there any thing to do with IE 8 browser? or with permissions ? or with Jar files.
Thanks
ManojK
Hi ManojK,
Please call http://xxx:yy/irj/go/km/docs/etc/xmlforms/xfcheck/km.appl.xmlforms.xfcheck_core.jar (xxx, yy with your values, of course) in a browser where you are logged in as the same user as the one failing so far.
I expect that this won't give you the JAR but an error message in the browser. If this is the case, please post the HTML source of that message (if lengthy, just add it as an attachement).
Hope it helps
Detlev
Hi Detlev,
when i call the http://xxx:yy/irj/go/km/docs/etc/xmlforms/xfcheck/km.appl.xmlforms.xfcheck_core.jar via browser i am able to access the jar file, and its prompting me for the option to download it. i am not sure at this point of time what wen wrong. please guide me..
and one more thing, i just called the http://xxx:yy/irj/go/km/docs/etc/xmlforms/xfcheck/xfbuildertest.html to test the environment. i got the below error.
Java Plug-in 1.6.0_18
Using JRE version 1.6.0_18-b07 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\XXX
----------------------------------------------------
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
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.lang.ClassFormatError: Incompatible magic value 1013478509 in class file com/sapportals/wcm/app/xfbuilder/envtest/XFBuilderTestApplet
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.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassFormatError: Incompatible magic value 1013478509 in class file com/sapportals/wcm/app/xfbuilder/envtest/XFBuilderTestApplet
Please advise me. thanks in advance.
Thanks
Manoj K
Hm, I still bet that it is an access denied message. The most simple way to directly check out which expected binary returns HTML content would be to use HttpWatch (or similar) and check the requests/responses. That should pount to the cause directly.
Hope it helps
Detlev
Hi Manoj K,
Great that you have HttpWatch at start. The 304 is not an error but a response that the content has not been modified and therefore can be accessed from the local cache.
Anyhow, I would suggest to clear you local cache, reset HttpWatch, make the call of the page again until the error got reproduced. If you send me the httpwatch trace, it would make life much easier (for having the content and not only the static image) - if you don't want to publish the server address (as you have wiped it out on the image), you still might mail it directly to me...?!
Hope it helps
Detlev
Hi Detlev,
Can you please post me your mail id?
If you move the cursor over my name (link) here, you will immediately see my mail address :-).
Hi Manoj,
Did you create the XML form builder like below ;
a. Navigate to Content Management - > Forms Builder (will launch new window)
b. Click File - > Open Project -> Alerts. Click Open
c. Click Generate Project (small manila folder)
d. Next, click preview (small green play icon)
e. Do the same for News
Let me know if your problem is resolved
Rgds
Pravesh
Hi Pravesh,
The problem is not with an XMLForms project but with the builder (applet) itself (stated clearly enough throughout this thread).
Detlev