Hi there,
I integrated a normal html page into CAI.
This html page contains some java script.
I use:
parent.csciframe.setPropertyValue(‘text’, getText());
to send some data to the Adapter.
This data is “html” Code.
The bad thing is when I send this data:
[b]
line1
line2
[/b]I receive the following Exception:
java.lang.Error: Coud not interpret stream: m2032003405060000005CASA51_119696046142111969604613747769433623832313023ch.css.demo.adapter.PineditAdapterdummyhttp://localhost:51000/OAPGui/vertrag_oap_guii_clt/new1.htmlfalsep0400025text<p>line1</p>
<p>line2</p>p1500003pagePixelHeight924p1400004pagePixelWidth1400x041000
java.lang.Error: Coud not interpret stream: m2032003405060000005CASA51_119696046142111969604613747769433623832313023ch.css.demo.adapter.PineditAdapterdummyhttp://localhost:51000/OAPGui/vertrag_oap_guii_clt/new1.htmlfalsep0400025text<p>line1</p>
<p>line2</p>p1500003pagePixelHeight924p1400004pagePixelWidth1400x041000
at com.softwareag.cis.xml.XMLString.getNextTag(Unknown Source)
at com.softwareag.cis.server.InteractionModel.do(Unknown Source)
at com.softwareag.cis.server.InteractionModel.setDataAsXML(Unknown Source)
at com.softwareag.cis.server.XMLProcessor.processXML(Unknown Source)
at com.softwareag.cis.server.Connector.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(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:568)
Is there a way to tell CAI not to parse the text sent.
Using encodeURI(getText()) works but is cumbersome.
Thanks for your time.
Best regards,
Matthias