From: Hofbauer G. <Gee...@cr...> - 2004-03-26 13:37:02
|
Hi, =20 =20 We have a problem with submitting Classifcation Nodes. When we submit this XML: =20 <tns:LeafRegistryObjectList xsi:schemaLocation=3D"urn:oasis:names:tc:ebxml-regrep:rim:xsd:2.1 = rim.xsd" xmlns:tns=3D"urn:oasis:names:tc:ebxml-regrep:rim:xsd:2.1" xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"> <tns:ClassificationNode parent=3D"urn:uuid:de95a42e-a0e3-40a3-abcc-ee6d88492639" code=3D"GSM" path=3D"" id=3D"" accessControlPolicy=3D"" objectType=3D"" xmlns:tns=3D"urn:oasis:names:tc:ebxml-regrep:rim:xsd:2.1"> <tns:Name> <tns:LocalizedString lang=3D"nl-BE" charset=3D"UTF-8" value=3D"GSM"/> </tns:Name> <tns:Description> <tns:LocalizedString lang=3D"nl-BE" charset=3D"UTF-8" value=3D"GSM"/> </tns:Description> </tns:ClassificationNode> </tns:LeafRegistryObjectList>=20 =20 We don't get an error so the classificationnode is submitted with no problems. =20 But the next time we want to see this classifications (and not classificationnode ) and do "select * from classschemes" in our interface we get the following error in tomcat: =20 Executing query: ' SELECT * FROM classscheme' java.lang.StringIndexOutOfBoundsException: String index out of range: 21 at java.lang.String.charAt(String.java:460) at org.postgresql.jdbc2.ResultSet.toTimestamp(ResultSet.java:1653) at org.postgresql.jdbc2.ResultSet.getTimestamp(ResultSet.java:398) at org.postgresql.jdbc2.ResultSet.getTimestamp(ResultSet.java:617) at com.sun.ebxml.registry.persistence.rdb.RegistryEntryDAO.loadObjectFromRe sultSet(RegistryEntryDAO.java:278) at com.sun.ebxml.registry.persistence.rdb.ClassificationSchemeDAO.loadObjec tFromResultSet(ClassificationSchemeDAO.java:465) at com.sun.ebxml.registry.persistence.rdb.ClassificationSchemeDAO.getLeafOb jectList(ClassificationSchemeDAO.java:492) at com.sun.ebxml.registry.persistence.rdb.SQLPersistenceManagerImpl.getLeaf ObjectList(SQLPersistenceManagerImpl.java:946) at com.sun.ebxml.registry.persistence.rdb.SQLPersistenceManagerImpl.execute SQLQuery(SQLPersistenceManagerImpl.java:883) at com.sun.ebxml.registry.query.sql.SQLQueryProcessor.executeQuery(SQLQuery Processor.java:63) at com.sun.ebxml.registry.query.QueryManagerImpl.submitAdhocQuery(QueryMana gerImpl.java:53) at com.sun.ebxml.registry.interfaces.Request.process(Request.java:92) at com.sun.ebxml.registry.interfaces.soap.RegistryJAXMServlet.onMessage(Reg istryJAXMServlet.java:228) at javax.xml.messaging.JAXMServlet.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:256) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon textValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :195) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 64) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:80 5) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:696) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:60 5) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:677) at java.lang.Thread.run(Thread.java:536) RegistryEntry id =3D 'urn:uuid:cc00859b-1fdb-4ad2-845e-c18fe02a39b8' java.lang.StringIndexOutOfBoundsException: String index out of range: 21 at java.lang.String.charAt(String.java:460) at org.postgresql.jdbc2.ResultSet.toTimestamp(ResultSet.java:1653) at org.postgresql.jdbc2.ResultSet.getTimestamp(ResultSet.java:398) at org.postgresql.jdbc2.ResultSet.getTimestamp(ResultSet.java:617) at com.sun.ebxml.registry.persistence.rdb.RegistryEntryDAO.loadObjectFromRe sultSet(RegistryEntryDAO.java:278) at com.sun.ebxml.registry.persistence.rdb.ClassificationSchemeDAO.loadObjec tFromResultSet(ClassificationSchemeDAO.java:465) at com.sun.ebxml.registry.persistence.rdb.ClassificationSchemeDAO.getLeafOb jectList(ClassificationSchemeDAO.java:492) at com.sun.ebxml.registry.persistence.rdb.SQLPersistenceManagerImpl.getLeaf ObjectList(SQLPersistenceManagerImpl.java:946) at com.sun.ebxml.registry.persistence.rdb.SQLPersistenceManagerImpl.execute SQLQuery(SQLPersistenceManagerImpl.java:883) at com.sun.ebxml.registry.query.sql.SQLQueryProcessor.executeQuery(SQLQuery Processor.java:63) at com.sun.ebxml.registry.query.QueryManagerImpl.submitAdhocQuery(QueryMana gerImpl.java:53) at com.sun.ebxml.registry.interfaces.Request.process(Request.java:92) at com.sun.ebxml.registry.interfaces.soap.RegistryJAXMServlet.onMessage(Reg istryJAXMServlet.java:228) at javax.xml.messaging.JAXMServlet.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:256) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon textValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :195) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 64) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:80 5) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:696) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:60 5) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:677) at java.lang.Thread.run(Thread.java:536) RegistryEntry id =3D 'urn:uuid:f44b756d-a06b-4adb-9b63-a3b35d5b686d' =20 =20 Any idea what the problem could be? =20 =20 Regards, =20 Geert =20 =20 |