on 07-14-2010 8:14 PM
Hello experts,
We are using a relatively new installation of 12.1. When we try to use column sorting in a grid applet it works fine for numeric columns but not for string columns. When we try it on a string column we get a class not found error in the Java console.
Here is the dump from the Java console (I have changed the hostname to "hostname" below):
network: Cache entry not found [url: http://hostname:50000/XMII/Classes/com/sap/lhcommon/xml/XMLUtil.class, version: null]
network: Connecting http://hostname:50000/XMII/Classes/com/sap/lhcommon/xml/XMLUtil.class with proxy=DIRECT
network: Connecting http://hostname:50000/ with proxy=DIRECT
network: Connecting http://hostname:50000/XMII/Classes/com/sap/lhcommon/xml/XMLUtil.class with cookie "saplb_*=(J2EE3937420)3937450; JSESSIONID=zEqb7pK3U6P-p7rfC-HAzGvCFolUmF7SKQGqFDwA_SAP"
Exception in thread "AWT-EventQueue-2" java.lang.NoClassDefFoundError: com/sap/lhcommon/xml/XMLUtil
at com.sap.lhcommon.util.ConversionUtil.stringToXml(ConversionUtil.java:1951)
at com.sap.lhcommon.common.PrimitiveVariantData.convertFromString(PrimitiveVariantData.java:1175)
at com.sap.lhcommon.common.VariantData.convertFromString(VariantData.java:292)
at com.sap.lhcommon.common.VariantData.convertTo(VariantData.java:355)
at com.sap.lhcommon.common.PrimitiveVariantData.compareTo(PrimitiveVariantData.java:2696)
at com.sap.lhcommon.common.VariantData.compareTo(VariantData.java:733)
at com.sap.lhcommon.common.PrimitiveVariantData.compareTo(PrimitiveVariantData.java:2762)
at com.sap.lhcommon.common.VariantData.compareTo(VariantData.java:733)
at com.sap.xmii.applet.grid.decorators.SortDecorator$1.compare(SortDecorator.java:76)
at com.sap.xmii.applet.grid.decorators.SortDecorator$Row.compareTo(SortDecorator.java:358)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at com.sap.xmii.applet.grid.decorators.SortDecorator.getViewToModel(SortDecorator.java:291)
at com.sap.xmii.applet.grid.decorators.SortDecorator.modelIndex(SortDecorator.java:298)
at com.sap.xmii.applet.grid.decorators.SortDecorator.getValueAt(SortDecorator.java:323)
at javax.swing.JTable.getValueAt(Unknown Source)
at javax.swing.JTable.prepareRenderer(Unknown Source)
at com.sap.xmii.applet.grid.base.BaseTable.prepareRenderer(BaseTable.java:572)
at javax.swing.plaf.basic.BasicTableUI.paintCell(Unknown Source)
at javax.swing.plaf.basic.BasicTableUI.paintCells(Unknown Source)
at javax.swing.plaf.basic.BasicTableUI.paint(Unknown Source)
at javax.swing.plaf.ComponentUI.update(Unknown Source)
at javax.swing.JComponent.paintComponent(Unknown Source)
at com.sap.xmii.applet.grid.base.DataGrid.paintComponent(DataGrid.java:609)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(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)
Caused by: java.lang.ClassNotFoundException: com.sap.lhcommon.xml.XMLUtil
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 49 more
Caused by: java.io.IOException: open HTTP connection failed:http://hostname:50000/XMII/Classes/com/sap/lhcommon/xml/XMLUtil.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
I am guessing we are just missing a jar file on the server?
Thanks for your help.
-Mike
Michael,
We have similar issue, will be fixed in SP6 which will be available in few weeks/days.
Regards,
Ajay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
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.