AW: Exception when re-parsing the xsl file.
"Bernhard Woehrlin" <[email protected]>
| Newsgroups | gmane.comp.java.strutscx.user |
|---|---|
| Message-ID | <[email protected]> |
Simon,
I just took your XML data, putted it in an XML Document and read it in with
the StrutsCXXMLReader. The StrutsCXDocumentBuilder did place this correctly
in the XML-Output-Document. So no errors on this...
I just can wildly guess what is happening on your system:
- are you sure you have the v0.9.2 preview running I sent you the other day?
- rhe error message you get says something about oracle.xml.jaxp. I do use
JAXP delivered with the JDK 1.4 - may this cause the problem: Does it have
access to the latest JDOM:
java.lang.ClassCastException: org.jdom.transform.JDOMSource$DocumentReader
at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:201)
Berny
> -----Ursprüngliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]]Im Auftrag von Simon
> Kelly
> Gesendet: Montag, 10. März 2003 12:17
> An: [email protected]; Strutscx User
> Betreff: Re: [Strutscx-user] Exception when re-parsing the xsl file.
>
>
> ----- Original Message -----
> From: "Bernhard Woehrlin" <[email protected]>
> To: "Simon Kelly" <[email protected]>; "Strutscx User"
> <[email protected]>
> Sent: Monday, March 10, 2003 11:15 AM
> Subject: AW: [Strutscx-user] Exception when re-parsing the xsl file.
>
>
> > Hi Simon,
> >
> > please make sure you pass a well formed DOM or JDOM document to the
> > StrutsCXServlet...
> >
> > Thanks,
> >
> > Berny
>
> Ok, checked the document (JDom) and the org.jdom.output.XMLOutputter is
> printing a well formed xml document to the screen. Unfortunatly the same
> error is still occuring in exactly the same place :-( I have included a
> full printout of the transaction, from start to end (Which includes the
> XMLOutputter printout) and I am trying to see if I have neglected
> any of the
> settings required by sctrutscx, but I can't see anything obvious.
>
> Thanks again for all the help,
>
> Simon
>
> INFO: Jk running ID=0 time=10/170 config=C:\Programme\Apache Group\Tomcat
> 4.1\conf\jk2.properties
> 2003-03-10 12:14:34,525 INFO -
> [StrutsCXBaseAction] -------------------------------------------- STRUTSCX
> BASEACTION INVOCED
> 2003-03-10 12:14:34,595 INFO - [StrutsCXXMLReader] begin to load:
> /WEB-INF/strutscx-config.xml
> 2003-03-10 12:14:34,605 INFO - [StrutsCXXMLReader] file last
> modified: Mon
> Mar 10 12:14:05 CET 2003
> 2003-03-10 12:14:34,605 INFO - [StrutsCXXMLReader] the time we know: null
> 2003-03-10 12:14:34,605 INFO - [StrutsCXXMLReader] XML File has changed:
> reparsing...!
> 2003-03-10 12:14:34,775 INFO - [StrutsCXXMLReader] org.jdom.Document
> successfully created
> 2003-03-10 12:14:34,805 INFO - [StrutsCXXMLReader]
> /WEB-INF/strutscx-config.xml set to
> StrutsCXConstants.PACKAGE/WEB-INF/strutscx-config.xml
> 2003-03-10 12:14:34,805 INFO - [StrutsCXXMLReader]
> /WEB-INF/strutscx-config.xml set to StrutsCXConstants.PROPERTIES
> 2003-03-10 12:14:34,845 INFO - [StrutsCXBaseActionHelper] SESSIONLOCALE
> IS:enCOUNTRY IS: EN
> 2003-03-10 12:14:34,855 INFO - [StrutsCXBaseActionHelper] LOCALE
> IS SET TO:
> en
> 2003-03-10 12:14:34,855 INFO - [StrutsCXBaseActionHelper] COUNTRY IS SET
> TO: EN
> 2003-03-10 12:14:34,855 INFO -
> [StrutsCXBaseActionHelper] --------------------------------------------
> DOMAINPARAMS IN CONTEXT
> 2003-03-10 12:14:35,536 INFO - [StrutsCXBaseActionHelper]
> tokenized locale
> is: en
> 2003-03-10 12:14:35,536 INFO - [StrutsCXBaseActionHelper] encoding for
> locale is: ISO-8859-1
> 2003-03-10 12:14:35,536 INFO - [StrutsCXXMLReader] begin to load:
> /WEB-INF/xml/variables_en.xml
> 2003-03-10 12:14:35,546 INFO - [StrutsCXXMLReader] file last
> modified: Mon
> Mar 10 12:14:05 CET 2003
> 2003-03-10 12:14:35,546 INFO - [StrutsCXXMLReader] the time we know: null
> 2003-03-10 12:14:35,546 INFO - [StrutsCXXMLReader] XML File has changed:
> reparsing...!
> 2003-03-10 12:14:35,576 INFO - [StrutsCXXMLReader] org.jdom.Document
> successfully created
> 2003-03-10 12:14:35,586 INFO - [StrutsCXXMLReader]
> /WEB-INF/xml/variables_en.xml set to
> StrutsCXConstants.PACKAGE/WEB-INF/xml/variables_en.xml
> 2003-03-10 12:14:35,626 INFO - [StrutsCXBaseActionHelper] variables
> parameter name set to: com.cappuccinonet.strutscx.variables.files.en
> 2003-03-10 12:14:35,626 INFO -
> [StrutsCXBaseActionHelper] --------------------------------------------
> RECYCLE DOMAINPARAMS IN SESSION
> 2003-03-10 12:14:35,626 INFO -
> [StrutsCXBaseActionHelper] --------------------------------------------
> 2003-03-10 12:14:35,626 INFO - [StrutsCXBaseActionHelper] SET
> ENCODING TO:
> ISO-8859-1
> 2003-03-10 12:14:35,637 INFO - [StrutsCXBaseActionHelper]
> entryId parameter
> is null
> 2003-03-10 12:14:35,637 INFO - [StrutsCXBaseActionHelper] got
> this entryId:
> null
> 2003-03-10 12:14:35,637 INFO - [StrutsCXBaseActionHelper] Set
> the following
> entryId: 1
> 2003-03-10 12:14:35,637 INFO - [StrutsCXBaseActionHelper] recycle servers
> date: 03.10.2003
> 2003-03-10 12:14:35,637 INFO - [StrutsCXBaseActionHelper] recycle servers
> date: 2003
> 2003-03-10 12:14:35,647 INFO - [StrutsCXBaseActionHelper] SET PERSIST_KEY
> TO: castorxml
> 2003-03-10 12:14:35,647 INFO - [StrutsCXBaseActionHelper] SET
> VIEW_KEY TO:
> html4
> 2003-03-10 12:14:35,657 INFO - [TestAction]Starting test of
> DBStructureXML....
> 2003-03-10 12:14:35,687 INFO - making intial instance of dbconnection
> factory
> 2003-03-10 12:14:35,687 INFO - Creating new database connection
> 2003-03-10 12:14:35,707 INFO - Initialising the connection :
> jdbc:oracle:thin:@hpewmdb:1521:wmwebdb as: kelly
> 2003-03-10 12:14:35,707 INFO - Initiating connection, checking parameters
> 2003-03-10 12:14:35,707 INFO - Initialising the database driver
> 2003-03-10 12:14:35,717 INFO - Createing new connection as : kelly on :
> jdbc:oracle:thin:@hpewmdb:1521:wmwebdb with password : kelly_ipe
> 2003-03-10 12:14:37,980 INFO - checking connection
> 2003-03-10 12:14:37,980 INFO - Connection made
> 2003-03-10 12:14:37,980 INFO - Connection initialised
> 2003-03-10 12:14:37,980 INFO - Saving connection in pool
> 2003-03-10 12:14:37,980 INFO - Returning database instance
> <?xml version="1.0" encoding="UTF-8"?>
> <tables>
> <!--** Table - fp1v1 **-->
> <table name="fp1v1">
> <column>TIMESTAMP</column>
> <column>EG1_HV_01</column>
> <column>EG1_MAG_01</column>
> <column>EG1_MAG_02</column>
> <column>EG1_MAG_03</column>
> <column>EG1_MAG_04</column>
> <column>EG1_MAG_05</column>
> <column>MO1_CNT_01</column>
> <column>MO1_POW_01</column>
> <column>MO1_POS_01</column>
> <column>MO2_CNT_01</column>
> <column>MO2_POW_01</column>
> <column>DET_T_01</column>
> <column>DET_T_02</column>
> <column>DET_T_03</column>
> <column>DET_T_04</column>
> <column>DET_POW_01</column>
> <column>DET_POW_02</column>
> <column>DET_POW_03</column>
> <column>DET_POW_04</column>
> <column>DET_VAL_01</column>
> <column>DET_P_01</column>
> </table>
> <!--** Table - fp2v1 **-->
> <table name="fp2v1">
> <column>TIMESTAMP</column>
> <column>TMP1_NORM</column>
> <column>TMP1_ACC</column>
> <column>TMP1_DEC</column>
> <column>TMP1_BAT</column>
> <column>TMP1_ON</column>
> <column>TMP1_REM</column>
> <column>TMP1_VEL</column>
> <column>TMP1_FAIL</column>
> <column>TMP1_EMER</column>
> <column>TMP1_ALAR</column>
> <column>TMP1_OVER</column>
> <column>TMP2_VEL</column>
> <column>TMP2_TMOT</column>
> <column>TMP2_TCOV</column>
> <column>TMP2_TBE1</column>
> <column>TMP2_TBE2</column>
> <column>TMP2_ERR</column>
> <column>TMP2_STAT</column>
> <column>TMP3_CURR</column>
> <column>TMP3_VOLT</column>
> <column>TMP3_VEL</column>
> <column>TMP3_TEMP</column>
> <column>TMP3_STAT</column>
> <column>TMP3_ERR</column>
> <column>TMP3_LIFE</column>
> <column>FP1_NORM</column>
> <column>FP2_VEL</column>
> <column>FP2_TMOT</column>
> <column>FP2_TCON</column>
> <column>FP2_TPFC</column>
> <column>FP2_TINV</column>
> <column>FP2_LIFE</column>
> <column>FP2_OVOL</column>
> <column>FP2_UVOL</column>
> <column>FP2_OTINV</column>
> <column>FP2_OTMOT</column>
> <column>FP2_ITEMP</column>
> <column>FP2_OCMOT</column>
> <column>FP2_EPTC</column>
> <column>FP2_OTPFC</column>
> <column>FP2_ERR</column>
> <column>UHV1_PRES</column>
> <column>UHV2_PRES</column>
> <column>UHV3_PRES</column>
> <column>CC1_PRES</column>
> <column>CC2_PRES</column>
> <column>TC1_PRES</column>
> <column>TC2_PRES</column>
> <column>TC3_PRES</column>
> <column>VAC1_PRES</column>
> <column>VAL1_OPEN</column>
> <column>VAL1_CLOSE</column>
> <column>VAL2_OPEN</column>
> <column>VAL2_CLOSE</column>
> <column>PT100_1</column>
> <column>PT100_2</column>
> <column>PT100_3</column>
> <column>PT100_4</column>
> <column>PT100_5</column>
> <column>PT100_6</column>
> <column>PT100_7</column>
> <column>PT100_8</column>
> <column>PT100_9</column>
> <column>PT100_10</column>
> <column>PT100_11</column>
> <column>PT100_12</column>
> <column>PT100_13</column>
> <column>PT100_14</column>
> <column>PT100_15</column>
> <column>PT100_16</column>
> <column>QMS_ON</column>
> </table>
> </tables>
>
> 2003-03-10 12:14:38,641 INFO - Returning connection and closing
> 2003-03-10 12:14:38,641 INFO - DBConnection returned ok
> There is a root element
> 2003-03-10 12:14:38,721 INFO -
> [XSLTServlet] ------------------------------------------- STRUTSCXSERVLET
> STARTED
> 2003-03-10 12:14:38,731 INFO -
> [StrutsCXDocumentBuilder]
> ------------------------------------------- BUILD
> OF DOCUMENT STARTED
> 2003-03-10 12:14:38,731 INFO - [StrutsCXDocumentBuilder]
> xsl_clientside is
> set to: null
> 2003-03-10 12:14:38,731 INFO - [StrutsCXDocumentBuilder] Created root
> element: root
> 2003-03-10 12:14:38,741 INFO - [StrutsCXDocumentBuilder]
> Received Document
> form variablesFileName: com.cappuccinonet.strutscx.variables.files.en
> 2003-03-10 12:14:38,751 INFO - The ActionForm parameter is null: No
> ActionFrom Element will be created!
> 2003-03-10 12:14:38,751 INFO - [StrutsCXDocumentBuilder]
> ActionForm Element
> created
> 2003-03-10 12:14:38,751 INFO - The Error parameter is null: No Error
> Element will be created!
> 2003-03-10 12:14:38,751 INFO - [StrutsCXDocumentBuilder] Error Element
> created
> 2003-03-10 12:14:38,761 INFO - CONSTRUCT request Attr:
> org.apache.struts.action.MESSAGE =
> org.apache.struts.util.PropertyMessageResources@fcf790
> 2003-03-10 12:14:38,761 INFO - CONSTRUCT request Attr: xsl_clientside =
> null
> 2003-03-10 12:14:38,761 INFO - CONSTRUCT request Attr: encoding =
> ISO-8859-1
> 2003-03-10 12:14:38,761 INFO - CONSTRUCT request Attr: viewtype = html4
> 2003-03-10 12:14:38,761 INFO - CONSTRUCT request Attr: persisttype =
> castorxml
> 2003-03-10 12:14:38,761 INFO - CONSTRUCT request Attr:
> org.apache.struts.action.mapping.instance =
> ActionConfig[path=/test,scope=session,type=com.katrin.presentation
> .action.Te
> stAction
> 2003-03-10 12:14:38,761 INFO - CONSTRUCT request Attr: entryId = 1
> 2003-03-10 12:14:38,761 INFO - CONSTRUCT request Attr:
> org.apache.struts.action.MODULE =
> org.apache.struts.config.impl.ModuleConfigImpl@e14d81
> 2003-03-10 12:14:38,771 INFO - CONSTRUCT request Attr: xslfile =
> home.html4.intro
> 2003-03-10 12:14:38,771 INFO - CONSTRUCT request Attr: xmlfile =
> [Document:
> No DOCTYPE declaration, Root is [Element: <tables/>]]
> 2003-03-10 12:14:38,771 INFO - [StrutsCXDocumentBuilder] Request element
> created
> 2003-03-10 12:14:38,771 INFO - [StrutsCXDocumentBuilder] jsessionid is:
> 998204E149B29788AB1B99461286EC6F
> 2003-03-10 12:14:38,781 INFO - [StrutsCXDocumentBuilder]
> CONSTRUCT session
> Attr: com.cappuccinonet.strutscx.domainparams_flag = true
> 2003-03-10 12:14:38,781 INFO - [StrutsCXDocumentBuilder]
> CONSTRUCT session
> Attr: locale = en
> 2003-03-10 12:14:38,781 INFO - [StrutsCXDocumentBuilder]
> CONSTRUCT session
> Attr: dateToday = 03.10.2003
> 2003-03-10 12:14:38,781 INFO - [StrutsCXDocumentBuilder]
> CONSTRUCT session
> Attr: country = EN
> 2003-03-10 12:14:38,781 INFO - [StrutsCXDocumentBuilder]
> CONSTRUCT session
> Attr: com.cappuccinonet.strutscx.session = true
> 2003-03-10 12:14:38,781 INFO - [StrutsCXDocumentBuilder]
> CONSTRUCT session
> Attr: domain = 127.0.0.1
> 2003-03-10 12:14:38,781 INFO - [StrutsCXDocumentBuilder]
> CONSTRUCT session
> Attr: thisYear = 2003
> 2003-03-10 12:14:38,781 INFO - [StrutsCXDocumentBuilder]
> CONSTRUCT session
> Attr: rootpath = C:\Programme\Apache Group\Tomcat 4.1\webapps\katrin\
> 2003-03-10 12:14:38,781 INFO - [StrutsCXDocumentBuilder]
> CONSTRUCT session
> Attr: httpDomain = http://127.0.0.1:8080
> 2003-03-10 12:14:38,791 INFO - [StrutsCXDocumentBuilder]
> CONSTRUCT session
> Attr: projectName = /katrin
> 2003-03-10 12:14:38,791 INFO - [StrutsCXDocumentBuilder]
> CONSTRUCT session
> Attr: port = 8080
> 2003-03-10 12:14:38,791 INFO - [StrutsCXDocumentBuilder] Session element
> created
> 2003-03-10 12:14:38,791 INFO - [StrutsCXDocumentBuilder] Doucment created
> 2003-03-10 12:14:38,881 INFO -
> [StrutsCXTransformer] -------------------------------------------
> TRANSFORM
> XML STARTED
> 2003-03-10 12:14:38,881 INFO - [StrutsCXTransformer] debug is
> set to: null
> 2003-03-10 12:14:38,881 INFO - [StrutsCXTransformer]
> xsl_clientside is set
> to: null
> 2003-03-10 12:14:38,881 INFO - [StrutsCXTransformer] encoding: ISO-8859-1
> 2003-03-10 12:14:38,881 INFO - [StrutsCXTransformer] Going to transforme
> XSL
> 2003-03-10 12:14:38,891 INFO - [StrutsCXTransformer] xpath statement:
> /properties/strutscx-definitions/definition[@name='home.html4.intro']/*
> 2003-03-10 12:14:38,971 INFO - [StrutsCXTransformer] SINGLE
> TRANSFORMATION
> 2003-03-10 12:14:39,192 INFO - [StrutsCXTransformer] file last modified:
> Mon Mar 10 12:14:05 CET 2003
> 2003-03-10 12:14:39,192 INFO - [StrutsCXTransformer] the time we
> know: null
> 2003-03-10 12:14:39,192 INFO - [StrutsCXTransformer] XSL File
> has changed:
> reparsing...!
> 2003-03-10 12:14:40,594 WARN - [StrutsCXTransformer] Exception
> java.lang.ClassCastException: org.jdom.transform.JDOMSource$DocumentReader
> at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:201)
> at
> com.cappuccinonet.strutscx.xslt.StrutsCXTransformer.makeTransforma
> tion(Unkno
> wn Source)
> at
> com.cappuccinonet.strutscx.xslt.StrutsCXTransformer.transform(Unknown
> Source)
> at com.cappuccinonet.strutscx.xslt.StrutsCXServlet.doPost(Unknown
> Source)
> at com.cappuccinonet.strutscx.xslt.StrutsCXServlet.doGet(Unknown
> Source)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationD
> ispatcher.
> java:684)
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(Applicati
> onDispatch
> er.java:432)
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(Application
> Dispatcher
> .java:356)
> at
> org.apache.struts.action.RequestProcessor.doForward(RequestProcess
> or.java:10
> 33)
> at
> org.apache.struts.action.RequestProcessor.processForwardConfig(Req
> uestProces
> sor.java:436)
> at
> org.apache.struts.action.RequestProcessor.processActionForward(Req
> uestProces
> sor.java:401)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor
> .java:279)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
> at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
> pplication
> FilterChain.java:247)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
> onFilterCh
> ain.java:193)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
> erValve.ja
> va:260)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> text.invok
> eNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardConte
> xtValve.ja
> va:191)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> text.invok
> eNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv
> e.java:180
> )
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> text.invok
> eNext(StandardPipeline.java:643)
> at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat
> cherValve.
> java:170)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> text.invok
> eNext(StandardPipeline.java:641)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv
> e.java:172
> )
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> text.invok
> eNext(StandardPipeline.java:641)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngine
> Valve.java
> :174)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> text.invok
> eNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.pr
> ocessConne
> ction(Http11Protocol.java:380)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thre
> adPool.jav
> a:533)
> at java.lang.Thread.run(Thread.java:536)
> 2003-03-10 12:14:40,644 INFO -
> [StrutsCXTransformer] ------------------------------------------- DOCUMENT
> SUCCESSFULLY SENT TO CLIENT
> 2003-03-10 12:14:40,644 INFO -
> [XSLTServlet] -------------------------------------------
> STRUTSCXSERVLET'S
> JOB DONE
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Strutscx-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/strutscx-user
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf