ILLEGAL SCAPE CHARACTER

text = r.subst(text,"\x07");
This line returns "Illegal scape character"
Why ?
It's a regular expression using org.apache.regexp
Please, Help me!!!!

It means that '\x' is an illegal escape character. If you want the String '\x' use '\\x' since Java uses '\' as the escape character and '\\' escapes to '\'

Similar Messages

  • Illegal escape character

    Hi i am writing a servlet which has html in it too...so the commands for html pages i just use out.println("").
    But i wanted to add a new picture on the page and had this command
    out.println("<IMG SRC=C:\Documents and Settings\bsharma\My Documents\My Pictures\index1.gif>");
    but i get a compiling error saying 'illegal escape character'
    I know it is because of the \ ..but is there a way around it?
    -bhaarat

    Try:
    out.println("<IMG SRC=C:\\Documents and Settings\\bsharma\\My Documents\\My Pictures\\index1.gif>");

  • Illegal pattern character 'Y'

    Hi Guys,
    I was following the tutorial in building a Web Application with ADF Business Components and JavaServer Faces using the following link: http://www.oracle.com/technology/obe/obe1013jdev/masterdetail_adf_bc/master-detail_pagewith_adf_bc.htm. I had installed Jdeveloper version - 10.1.3.3.0. After I've built the Search.jsp and the EditOrders.jspx file. The Search.jsp is working fine but as soon as I hit the 'Edit' button on it which is supposed to navigate and display the EditOrders.jspx page and allow user to modify data on it but instead it displays the following error:
    500 Internal Server Error
    java.lang.IllegalArgumentException: Illegal pattern character 'Y'     at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:678)     at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:497)     at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:446)     at oracle.adf.view.faces.convert.DateTimeConverter._getSimpleDateFormat(DateTimeConverter.java:1337)     at oracle.adf.view.faces.convert.DateTimeConverter._getDateFormat(DateTimeConverter.java:1508)     at oracle.adf.view.faces.convert.DateTimeConverter._getExample(DateTimeConverter.java:1252)     at oracle.adf.view.faces.convert.DateTimeConverter._getAllowedPatterns(DateTimeConverter.java:1063)     at oracle.adf.view.faces.convert.DateTimeConverter._getExpectedPatterns(DateTimeConverter.java:990)     at oracle.adf.view.faces.convert.DateTimeConverter.getExample(DateTimeConverter.java:1029)     at oracle.adfinternal.view.faces.convert.DateTimeConverter.getClientConversionFormat(DateTimeConverter.java:235)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.FormData._addOnSubmitConverter(FormData.java:462)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.FormData.addOnSubmitConverterValidators(FormData.java:338)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.EditableValueRenderer.addOnSubmitConverterValidators(EditableValueRenderer.java:178)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.SimpleInputTextRenderer.encodeAllAsElement(SimpleInputTextRenderer.java:82)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.SimpleSelectInputTextRenderer.renderTextField(SimpleSelectInputTextRenderer.java:139)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.SimpleSelectInputTextRenderer.encodeAllAsElement(SimpleSelectInputTextRenderer.java:123)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.SimpleSelectInputDateRenderer.encodeAllAsElement(SimpleSelectInputDateRenderer.java:172)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.FormElementRenderer.encodeAll(FormElementRenderer.java:48)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.delegateRenderer(CoreRenderer.java:281)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.InputLabelAndMessageRenderer.renderFieldCellContents(InputLabelAndMessageRenderer.java:115)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.LabelAndMessageRenderer._renderFieldCell(LabelAndMessageRenderer.java:293)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.LabelAndMessageRenderer.encodeAll(LabelAndMessageRenderer.java:163)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.InputLabelAndMessageRenderer.encodeAll(InputLabelAndMessageRenderer.java:94)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)     at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:246)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelFormRenderer.encodeColumnChild(PanelFormRenderer.java:275)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelFormRenderer.renderColumn(PanelFormRenderer.java:251)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelFormRenderer._renderColumns(PanelFormRenderer.java:545)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelFormRenderer._encodeChildren(PanelFormRenderer.java:153)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelFormRenderer.encodeAll(PanelFormRenderer.java:69)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)     at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)     at oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUtils.java:54)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:242)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(CoreRenderer.java:265)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:65)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:117)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:147)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:60)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)     at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)     at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:645)     at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:568)     at oracle.adf.view.faces.webapp.UIXComponentTag.doEndTag(UIXComponentTag.java:100)     at EditOrdersjspx._jspService(_EditOrders_jspx.java:412)     [EditOrders.jspx]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:287)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)     at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)     at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)     at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)     at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)     at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)     at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)     at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     at java.lang.Thread.run(Thread.java:595)
    I had removed the EditOrders.jspx and create it from scratch several times but it still gives me the same error. I also followed the exact instructions as outlined in the tutorial. All your feedback is welcomed and I sincerely thank you for all your time and efforts spent.
    Kind Regards,
    John

    Hi Guys,
    My latest findings is that even after I've modified the Ordersview's 'ORDER_DATE' column to 'to_date(trunc(Orders.ORDER_DATE)) as Order_Date' in the 'SQL Statement' attribute under the 'View Object Editor', remap the definition 'OrderView' in the 'Data Control Palette' and recreate the EditOrders.jsp page, I'm still getting the same error in the exactly same way as I had described in my very first post of this error. Please shed some lights if you have solved or came across to some similar errors in the past.
    Thanks and Regards,
    John

  • Illegal XML character exception in Importing data imprt manager

    Did any one of you face Illegal XML character error while importing extracted data from ECC
    I googled and found out XML parser does not like to find '<' '&' in the data , is that true? if so what was the work around ?? BTW we are getting DEBMDM customer data and import manager is bombing with these errors with every other file.
    I know import server is a route , but any other solution?
    -Sudhir

    Hi Sudhir,
    We had faced a similar situation when using extracted Material Master data from ECC.
    We had some special characters in some of the fields like Material description such as (<,^,*,&,#@)etc.But these data were readily imported in MDM without much troubble.However there were some other fields which had error in the Date Formats and were not excepted by MDM
    While automatically importing this data in MDM using the Import server the records failed throwing exceptions.
    We then analysed the Source file carefully in Excel format by using Fillters  and identified these Wrong date charactes which were giving troubble.
    We corrected the dates and had no futher issues for the special character text we imported them with Data type  Text Normalized and they passed corrrectly even with Data type as TEXT.
    So I suggest that you analyses your data correctly in excel if required for better clearance and check for any futher in consisitencies in the dtaa for every field value.
    Hope It Helped,
    Thanks & Regards
    Simona Pinto

  • Generating JavaDoc returns with "illegal escape character"

    Hello,
    I'm using JDeveloper 10.1.2.0.0.
    I'm trying to generate JavaDoc for a couple of my packages.
    The generator returns 2 errors due to "illegal escape character".
    This is the error message :
    C:\MyDocs\General Procs\Start_Java_Package\Portlets\src\PortletsUtils\Utils.java:65: illegal escape character
    + ".replace(/\à/g,\"a_accent\")"
    ^
    C:\MyDocs\General Procs\Start_Java_Package\Portlets\src\PortletsUtils\Utils.java:66: illegal escape character
    + ".replace(/\ç/g,\"c_cedile\")"
    ^
    The error is on the "à" and "ç".
    This special character is within a double quote, so it should be text for him.
    Compiling the package is no problem.
    What can I do so the generation of my javadoc continues ?
    Thanks a lot.
    Filip Huysmans.

    Because you don't escape the "\".
    String mypattern = "(<img\\w*)";

  • Illegal pattern character

    Hi
    I have error "Illegal pattern character 'y'" in Personalization tab of Properties of Publication object in CMC and InfoView if
    Source Crystal reports documents of Publication object contains date parameters with some default date.
    BusinessObjects Enterprise XI 3.1 running at Windows 2003 server. Product Locale: English,
    Preferred Viewing Locale: English (US).
    May be someone know smth about  this?

    This is bug, it will be fixed in december 09

  • Deserialization error: XML parsing error: Illegal XML character

    Hi All,
    Anybody knows what caused this? This error occured at the client side when the server returned an object that contains other objects to client during a jaxrpc call. It worked before, something is definitely changed, I reversed my changes but still the same.
    Please help, thanx a lot.
    [java] java.rmi.RemoteException: Runtime exception; nested exception is:
    [java] deserialization error: deserialization error: deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:2: Illegal XML character:
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:234)
    [java] at com.ummq.ME_Stub.getMsg(MsgExpertIF_Stub.java:1333)
    [java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
    [java] at javax.swing.AbstractButton$ForwardActionEvents.actionPerforme
    d(AbstractButton.java:1817)
    [java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    [java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    [java] at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    [java] at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109)
    [java] at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mous
    eReleased(BasicMenuItemUI.java:943)
    [java] at java.awt.Component.processMouseEvent(Component.java:5093)
    [java] at java.awt.Component.processEvent(Component.java:4890)
    [java] at java.awt.Container.processEvent(Container.java:1566)
    [java] at java.awt.Component.dispatchEventImpl(Component.java:3598)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1623)
    [java] at java.awt.Component.dispatchEvent(Component.java:3439)
    [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
    [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
    [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1609)
    [java] at java.awt.Window.dispatchEventImpl(Window.java:1585)
    [java] at java.awt.Component.dispatchEvent(Component.java:3439)
    [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
    [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    [java] Caused by: deserialization error: deserialization error: deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:2: Illegal XML character:
    [java] at com.sun.xml.rpc.encoding.SOAPDeserializationContext.deseriali
    zeMultiRefObjects(SOAPDeserializationContext.java:65)
    [java] before getMsg
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:175)
    [java] ... 30 more
    [java] java.rmi.RemoteException: Runtime exception; nested exception is:
    [java] deserialization error: deserialization error: deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:2: Illegal XML character:
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:234)
    [java] at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1161)
    [java] at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1218)
    [java] at javax.swing.JComboBox.contentsChanged(JComboBox.java:1265)
    [java] at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
    [java] at javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:88)
    [java] at javax.swing.JComboBox.setSelectedItem(JComboBox.java:551)
    [java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
    [java] at javax.swing.AbstractButton$ForwardActionEvents.actionPerforme
    d(AbstractButton.java:1817)
    [java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    [java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    [java] at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    [java] at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109)
    [java] at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mous
    eReleased(BasicMenuItemUI.java:943)
    [java] at java.awt.Component.processMouseEvent(Component.java:5093)
    [java] at java.awt.Component.processEvent(Component.java:4890)
    [java] at java.awt.Container.processEvent(Container.java:1566)
    [java] at java.awt.Component.dispatchEventImpl(Component.java:3598)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1623)
    [java] at java.awt.Component.dispatchEvent(Component.java:3439)
    [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
    [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
    [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1609)
    [java] at java.awt.Window.dispatchEventImpl(Window.java:1585)
    [java] at java.awt.Component.dispatchEvent(Component.java:3439)
    [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
    [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    [java] Caused by: deserialization error: deserialization error: deserializa
    tion error: XML parsing error: com.sun.xml.rpc.sp.ParseException:2: Illegal XML character:
    [java] at com.sun.xml.rpc.encoding.SOAPDeserializationContext.deseriali
    zeMultiRefObjects(SOAPDeserializationContext.java:65)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:175)
    [java] ... 39 more

    What type of encoding are you using? Do you transform a string in an array of bytes or viceversa?
    Marco

  • Illegal ASCII character, 0xc3

    I have developed a webservice but I have a problem when certain characters get
    passed through. The error is as follows:-
    java.io.CharConversionException: Illegal ASCII character, 0xc3
    at weblogic.xml.babel.reader.XmlReader$AsciiReader.read(XmlReader.java:8
    24)
    at weblogic.xml.babel.scanner.ScannerState.read(ScannerState.java:382)
    at weblogic.xml.babel.scanner.ScannerState.expect(ScannerState.java:235)
    at weblogic.xml.babel.scanner.Reference.read(Reference.java:115)
    at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:262)
    at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:153)
    at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:451)
    at weblogic.xml.babel.baseparser.CharDataElement.parse(CharDataElement.j
    ava:84)
    at weblogic.xml.babel.baseparser.BaseParser.parseElement(BaseParser.java
    :399)
    at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:27
    8)
    at weblogic.xml.babel.parsers.XMLInputStreamParser.internalParseSome(XML
    InputStreamParser.java:120)
    at weblogic.xml.babel.parsers.XMLInputStreamParser.streamParseSome(XMLIn
    putStreamParser.java:135)
    at weblogic.xml.babel.stream.XMLInputStreamBase.peek(XMLInputStreamBase.
    java:203)
    at weblogic.xml.stream.util.XMLInputStreamFilterBase.hasNext(XMLInputStr
    eamFilterBase.java:55)
    at weblogic.webservice.xml.XMLNode.readChildren(XMLNode.java:714)
    at weblogic.webservice.xml.XMLNode.read(XMLNode.java:664)
    at weblogic.webservice.xml.XMLNode.readChildren(XMLNode.java:722)
    at weblogic.webservice.xml.XMLNode.read(XMLNode.java:664)
    at weblogic.webservice.xml.XMLNode.readChildren(XMLNode.java:722)
    at weblogic.webservice.xml.XMLNode.read(XMLNode.java:664)
    at weblogic.webservice.core.soap.SOAPEnvelopeImpl.<init>(SOAPEnvelopeImp
    l.java:166)
    at weblogic.webservice.core.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:1
    04)
    at weblogic.webservice.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.
    java:113)
    at weblogic.webservice.core.soap.MessageFactoryImpl.createMessage(Messag
    eFactoryImpl.java:27)
    at weblogic.webservice.binding.soap.HttpServerBinding.receive(HttpServer
    Binding.java:50)
    at weblogic.webservice.core.DefaultWebService.invoke(DefaultWebService.j
    ava:243)
    at weblogic.webservice.server.servlet.ServletBase.serverSideInvoke(Servl
    etBase.java:419)
    at weblogic.webservice.server.servlet.WebServiceServlet.serverSideInvoke
    (WebServiceServlet.java:277)
    at weblogic.webservice.server.servlet.ServletBase.doPost(ServletBase.jav
    a:403)
    at weblogic.webservice.server.servlet.WebServiceServlet.doPost(WebServic
    eServlet.java:245)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1075)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:418)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    Does anyone have any ideas. I did see a similar post which recommended setting
    the weblogic.webservice.i18n.charset="UTF-8" system property, however I already
    had this set and it makes no difference.
    Anyones help would be much appreciated.
    Cheers
    Andy

    Hi Andy,
    The weblogic.webservice.i18n.charset is valid for both WLS v7 & v8. The
    API using the BindingInfo class is for WLS v8.
    I've attached a simple method (there are many ways to do this) that you
    can call to print out the hex values in your stream to help troubleshoot
    the problem. If you could create a small reproducer for our support
    team, that would be a big help.
    Thanks,
    Bruce
    Andy Freeman wrote:
    >
    I am using WLS 7 sp2. I had already set the weblogic.webservice.i18n.charset system
    property, but this didn't make any difference, although I'm not sure that this
    is a valid feature of wls7.
    The docs you pointed out mention using the BindingInfo class on the client, but
    again I think this is wls8 class, and isn't included in wls7.
    Any further advice/assistence would be much appreciated.
    Cheers
    Andy
    Bruce Stephens <[email protected]> wrote:
    Hi Andy,
    The error text says it; the US-ASCII character is invalid. You might
    look over the information about character sets and encoding in the docs
    [1]. Did you try setting the weblogic.webservice.i18n.charset="UTF-8"
    property on the server side? Java character encoding is a one of the
    engineering wonders of the world :-)
    What version of WLS?
    Thanks,
    Bruce
    [1]
    http://edocs.bea.com/wls/docs81/webserv/i18n.html#1069146
    Andy Freeman wrote:
    I have developed a webservice but I have a problem when certain charactersget
    passed through. The error is as follows:-
    java.io.CharConversionException: Illegal ASCII character, 0xc3
    at weblogic.xml.babel.reader.XmlReader$AsciiReader.read(XmlReader.java:8
    24)
    at weblogic.xml.babel.scanner.ScannerState.read(ScannerState.java:382)
    at weblogic.xml.babel.scanner.ScannerState.expect(ScannerState.java:235)
    at weblogic.xml.babel.scanner.Reference.read(Reference.java:115)
    at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:262)
    at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:153)
    at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:451)
    at weblogic.xml.babel.baseparser.CharDataElement.parse(CharDataElement.j
    ava:84)
    at weblogic.xml.babel.baseparser.BaseParser.parseElement(BaseParser.java
    :399)
    at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:27
    8)
    at weblogic.xml.babel.parsers.XMLInputStreamParser.internalParseSome(XML
    InputStreamParser.java:120)
    at weblogic.xml.babel.parsers.XMLInputStreamParser.streamParseSome(XMLIn
    putStreamParser.java:135)
    at weblogic.xml.babel.stream.XMLInputStreamBase.peek(XMLInputStreamBase.
    java:203)
    at weblogic.xml.stream.util.XMLInputStreamFilterBase.hasNext(XMLInputStr
    eamFilterBase.java:55)
    at weblogic.webservice.xml.XMLNode.readChildren(XMLNode.java:714)
    at weblogic.webservice.xml.XMLNode.read(XMLNode.java:664)
    at weblogic.webservice.xml.XMLNode.readChildren(XMLNode.java:722)
    at weblogic.webservice.xml.XMLNode.read(XMLNode.java:664)
    at weblogic.webservice.xml.XMLNode.readChildren(XMLNode.java:722)
    at weblogic.webservice.xml.XMLNode.read(XMLNode.java:664)
    at weblogic.webservice.core.soap.SOAPEnvelopeImpl.<init>(SOAPEnvelopeImp
    l.java:166)
    at weblogic.webservice.core.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:1
    04)
    at weblogic.webservice.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.
    java:113)
    at weblogic.webservice.core.soap.MessageFactoryImpl.createMessage(Messag
    eFactoryImpl.java:27)
    at weblogic.webservice.binding.soap.HttpServerBinding.receive(HttpServer
    Binding.java:50)
    at weblogic.webservice.core.DefaultWebService.invoke(DefaultWebService.j
    ava:243)
    at weblogic.webservice.server.servlet.ServletBase.serverSideInvoke(Servl
    etBase.java:419)
    at weblogic.webservice.server.servlet.WebServiceServlet.serverSideInvoke
    (WebServiceServlet.java:277)
    at weblogic.webservice.server.servlet.ServletBase.doPost(ServletBase.jav
    a:403)
    at weblogic.webservice.server.servlet.WebServiceServlet.doPost(WebServic
    eServlet.java:245)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1075)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:418)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    Does anyone have any ideas. I did see a similar post which recommendedsetting
    the weblogic.webservice.i18n.charset="UTF-8" system property, howeverI already
    had this set and it makes no difference.
    Anyones help would be much appreciated.
    Cheers
    Andy
    [Hex.java]

  • Regular Expression Escaped Digit "\d" Illegal Escape Character

    Hello,
    I'm trying to write a regular expression to determine if a String matches a date format that is defined as YYYYMMDD. For example, March 11, 2009 would be "20090311"
    For the time being I don't care if an invalid month or day is entered. I've attempted both of the following
    if (date.matches("(19|20)\d{4}")) {
      // warn the user
    }and
    if (java.util.regex.Pattern.matches("(19|20)\d{4}"), date)) {
      // warn the user
    }And both yield Illegal Escape Character compilation errors, for the "\d" part of the regular expression.
    http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html#sum
    Says that "\d" is the predefined digit character class. So at this point, I don't know what I'm doing wrong. I realize I could just define the character class myself, and use a pattern like "(19|20)[0-9]{4}", but I would like to know why "\d" isn't being recognized by the compiler.
    Thanks,
    Paul

    paulwooten wrote:
    Can someone give me an explanation of heuristics, as they might apply to SimpleDateFormat? Does this mean that if the format was similar the parser might figure it out? Say, if instead of "yyyyMMdd", it was "yyyyddMM", or "yyMMdd"?No. Since all of these are valid formats, there's no way for the parser to distinguish this.
    Or does this have to do with rejecting February 29, and other dates like that.That's the one. When setLenient(false) is called, then the 29th February is only accepted in leap years.
    It will also reject the 57th January when lenient is set to false (try parsing that with lenient=true, you'll be surprised).
    I've read some of the wikipedia article about heuristics, but I'm confused as to how it would apply to this example.Don't concentrate to much on the term heuristics. Just remember: lenient=true means that not-really-correct dates will be accepted, lenient=false means more strict checks.

  • Illegal XML character SAX Parser exception

    The element type "body" must be terminated by the matching end-tag "".  i get this exception, its thrown from the SAXParser. if you look at the end tag it shows you an empty string end-tag "". . This should get displayed as end-tag "</body>". instead.
    What can i do to make it displayed as end-tag "</body" . There are loads of similar issues on-line, but non of them had a satisfactory answer.
    help !

    and thanks for the replies :)Most of the replies you thank pointed you at searching how to escape HTML markup when copying the plain text to an HTML document. DId you consider doing this search?
    For example, Jakarta's Commons-Lang library has a [StringEscapeUtils class|http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringEscapeUtils.html] with methods that seem to provide just this capability.
    now what i think i should do is, to append the auto generated error message with some special characters so it could display in html.No. The "special characters", or merely, special markup, are what makes the browser not render the string correctly (it probably thinks +</body>+ is the closing tag of the similarly-named HTML element. You need to escape this markup, or a at least the lower/greater signs that make it look like markup.
    but how can i chnage the auto generated message ?You shouldn't strive to change the message itself, but to convert it to something that renders correctly when embedded into an HTML document.
    Edited by: jduprez on Mar 17, 2010 12:35 PM

  • SAXParseException: character conversion error: Illegal character 0x9A...

    This is my problem:
    I use JDom to parse remote XML document with DTD linked to it. But I get that error. Request is:
    SAXBuilder builder = new SAXBuilder();
    Document doc = builder.build(new URL(url));
    This works fine when I use these XML and DTD docs locally, which means that I give xml file name as a parameter from console. Then everything goes well. But when I move my program to server and try to run it there, SAXParseException is thrown. Why???
    Error is:
    error on line 1 of document "http://server.net/doc.dtd" Character conversion error: Illegal ASCII character 0x9A (line number may be too low)
    What this means? And why this just happens when I run program in server? Help, please
    tia J_J

    Exactly that's the problem.
    String class :
    * This class is implemented to map an ordinary java.lang.String
    * into an xml compliant String
    public class String2Xml
         private final String invalidChars [] = {"�",
                                                           "�",
                                                           "�",
                                                           "�",
                                                           "�",
                                                           "�",
                                                           "�",
                                                           "�",
                                                           "�",
                                                           "�",
                                                           "`",
                                                           "�",
                                                           "<",
                                                           ">",
         private final String replaceChars [] = {"��",
                                                           "&#223;",
                                                           "&#228;",
                                                           "&#246;",
                                                           "&#252;",
                                                           "&#196;",
                                                           "&#214;",
                                                           "&#220;",
                                                           "&#167;",
                                                           "&#128;",
                                                           "&#96;",
                                                           "&#180;",
                                                           "<",
                                                           ">",
                                                           "&apos;"};
         * Constructor
         public String2Xml();
         * This operation is implemented to check if the given String
         * matches one of the invalidChars. If an invalid char is found
         * it'll be replaced.
         * @return String - the correct xml String
         public String checkString(String check)
              for (int i = 0; i < invalidChars.length; i++)
                   check = check.replaceAll(invalidChars, replaceChars[i]);
              System.out.println("Check : " + check);
              return check;

  • Illegal character

    Hello
    can anyone tell me what character &#x19; is ?? I got this illegal xml character error saying this is illegal while working with FOP. Can anyone tell me where on the web I can find a table mapping of xml characters
    thanks
    pauli

    Hello
    Ok, I think I know what's going on here. The illegal characters are apos and quotes. I am generating a xml document from a text field in sql server. I am using the JDBC driver from microsoft to get it. the driver probably does not know how to copy apos and quotes and replace them with these illegal xml characters (x19, xc1). So, my questions is: how can I look for and replace these illegal xml characters in the xml document. I am using the xerces parser from apache. Is there a way for the parser to pick up on these illegal characters.
    thanks
    pauli

  • Character conversion error

    Hi all,
    We are getting the following error when trying to parse an xml string resource - Character conversion error: "Illegal ASCII character, 0xc2" (line number may
    be too low)-. We have not been able to get around this. We have tried creating the InputSource two different ways:
    reader = new StringReader(stringSource);
    src = new InputSource( reader );
    and
    src = new InputSource(new InputStreamReader(new ByteArrayInputStream(stringSource.getBytes())));
    The problem does appear to go away if we treat the DTD we are validating against as a file. If we set it has a uri, we get the above problem.
    Is anyone else experiencing this problem?
    Any help would be greatly appreciated.
    Thanks in advance,
    Greg

    Hi,
    2 possible solutions:
    1) try using the xerces parser instead of sun's parser
    2) look at the posting at the following url and see wether the posted solution solves your problem: http://forums.java.sun.com/thread.jsp?forum=34&thread=67558
    Hope this helps,
    Kurt.

  • "character conversion error" while parsing xml files

    Hello,
    I'm trying to parse MusicXML (Recordare) files, but I'm getting an exception.
    I'm using the SAX parser (javax.xml.parsers.SAXParser).
    Here is the code I use to instantiate it:
    final javax.xml.parsers.SAXParserFactory saxParserFactory = javax.xml.parsers.SAXParserFactory.newInstance();
    final javax.xml.parsers.SAXParser saxParser = saxParserFactory.newSAXParser();
    final org.xml.sax.XMLReader parser = saxParser.getXMLReader();
    I'm using my own handler, but I get the same exception even if I use org.xml.sax.helpers.DefaultHandler.
    The error I get is:
    Character conversion error: "Illegal ASCII character, 0xc2" (line number may be too low).
    The first few lines of my xml files look like this:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE score-partwise
    PUBLIC "-//Recordare//DTD MusicXML 0.6 Partwise//EN"
    "http://www.musicxml.org/dtds/partwise.dtd">
    <score-partwise>
    [...etc...]
    If I delete the <!DOCTYPE ...> line, then I don't get the exception anymore. But the MusicXML files I get (from some other program) always contain this line, and it would be quite some work to delete them from every file manually.
    So does anyone know if there is a way to avoid deleting that line in every file, while still being able to parse the xml files without exceptions?
    Or maybe does anyone know what the exact cause of the exception is? (because I don't know what exactly causes it)
    Thank you in advance.
    Greetz,
    Jipo

    So does anyone know if there is a way to avoid
    deleting that line in every file, while still being
    able to parse the xml files without exceptions?ok this is side-stepping the real problem but I've used this code to filterout DTD references for other reasons   public static InputStream filterOutDTDRef(InputStream in) throws IOException {
          BufferedReader iniReader = new BufferedReader(new InputStreamReader(in));
          StringBuffer newXML = new StringBuffer();
          for(String line = iniReader.readLine(); line!=null; line = iniReader.readLine())
             newXML.append(line+"\n");
          in.close();
          int s = newXML.indexOf("<!DOCTYPE ");
          if(s!=-1)
             newXML.replace(s,newXML.indexOf(">",s)+1,"");
          return new ByteArrayInputStream(newXML.toString().getBytes());
       }and it actually speeds up the parsing phase too (since the DTD ref.s were on the web and the XML standard mandates that there is a fetch for each xml file parsed..)
    you can feed the above into the InputSource constructor that takes an InputStream argument.
    Now for the real problem... 0xc2 is "LATIN CAPITAL LETTER A WITH CIRCUMFLEX" according to a unicode chart - which is not an ASCII character (as the error message correctly reports). I'm not sure why the file is being parsed as ASCII though? You could try parsing in a FileReader to the inputsource and hope it picks up the default character encoding of your system, and that that character encoding matches the file. Or you could try passing in a FileReader constructed with a explicit character encoding (eg "UTF8") and see if that does the trick?
    asjf

  • German character in the file path and failure to compile jsp

    Hi,
    a customer of mine has installed our product which embeds the tomcat server in a path which contains a german characters ouside the standard en characters (_���), this results in failure to compile the jsp pages, even the example pages that comes with tomcat are failing to compile.
    for example if i try to open the numguess.jsp, it fails to compile the file..
    Any help greatlly appriciated..
    Kind Regards,
    K

    If your server is running on a Unix derivate, the system might well have UTF-8 by default. Or you might even erroneously have stated in your JSP that it is UTF-8.
    If the JSP is ISO-8859-1 (German), then jsp compilation cannot read it (as UTF-8), as illegal multibyte character sequences occur.
    Require your customer to save everything as UTF-8, which has its advantages, should the customer go multilingual (Greek, Polish, Bulgarian, Spanish).

Maybe you are looking for

  • Creative ALchemy different version for different cards or one for a

    Hello, if there are different versions from Creative ALchemy In the forums i found somthing about - ALchemy for Audigy, - ALchemy X-FI Editon and on the Creative Download Page i found "Creative ALchemy .20.04". Also on my driver CD was an ALchemy X-F

  • Report program for  purchasing doucment per vendor

    hi gurus am using ME2L tcode in which i need to include a new field called last delivery date in my report how to give a start to that program. i have tried own way in that i dont no how to give link to the table .I tried with views but some tables d

  • Spaces out of control?

    When switching between an external monitor and no external monitor, spaces seems to get confused. I'm on a MacBook Pro and at work I have an external monitor where all but one space gets assigned to the external monitor. I then have to drag to reconf

  • Data Services Designer - Function returns value, but doesnt always populate

    Within my Query Transform I call a function that I pass a old Vendor code to a sql statement and it does a few lookups and cross references it returns a new value. My issue is sometime it doesnt put the value in the field. I know it has returned a va

  • Source Table not Partitioned, But destination is, Will Streams Work?

    I want to use Oracle streams to setup replication in a single source environment. Here is what I need to do: I have a sorce data base where tables are not partitioned and oits an OLTP system. I have another DB which has same schema as OLTP, but some