NFA/CAPC Invalid Character Sync Probem

Document ID : KB000116863
Last Modified Date : 03/10/2018
Show Technical Document Details
Issue:
ERROR | pool-2-thread-17         | 2018-10-01 14:44:47,175 | com.ca.im.portal.dm.productsync.DataSourcePoller                 
      | 
Data source Network Flow Analysis@server encountered an error while processing a sync request.  The problem is in the data source, not CAPC.  Check the logs for the data source to determine the cause of the problem.  The following stack trace shows the context of the sync request:
javax.xml.ws.soap.SOAPFaultException: Response was of unexpected text/html ContentType.  Incoming portion of HTML stream: <html>
    <head>
        <title>'', hexadecimal value 0x0B, is an invalid character.</title>
        <style>
         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} 
         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
         pre {font-family:"Lucida Console";font-size: .9em}
         .marker {font-weight: bold; color: black;text-decoration: none;}
         .version {color: gray;}
         .error {margin-bottom: 10px;}
         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
        </style>
    </head>

    <body bgcolor="white">

            <span><H1>Server Error in '/ReporterDataSource' Application.<hr width=100% size=1 color=silver></H1>

            <h2> <i>'', hexadecimal value 0x0B, is an invalid character.</i> </h2></span>

            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

            <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

            <br><br>

            <b> Exception Details: </b>System.ArgumentException: '', hexadecimal value 0x0B, is an invalid character.<br><br>

            <b>Source Error:</b> <br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code>

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code>

                  </td>
               </tr>
            </table>

            <br>

            <b>Stack Trace:</b> <br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code><pre>

[ArgumentException: '', hexadecimal value 0x0B, is an invalid character.]
   System.Xml.XmlConvert.VerifyCharData(String data, ExceptionType exceptionType) +1872678
   System.Xml.DocumentXmlWriter.WriteString(String text) +29
   System.Xml.XmlWellFormedWriter.WriteString(String text) +84
   Microsoft.Web.Services3.Xml.XmlWrappingWriter.WriteString(String text) +12
   Microsoft.Web.Services3.Xml.XmlWrappingWriter.WriteString(String text) +12
   System.Web.Services.Protocols.Soap11ServerProtocolHelper.WriteFault(XmlWriter writer, SoapException soapException, HttpStatusCode statusCode) +606
   System.Web.Services.Protocols.SoapServerProtocol.WriteException(Exception e, Stream outputStream) +1224
   System.Web.Services.Protocols.WebServiceHandler.WriteException(Exception e) +106
   System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest() +782
   System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpContext context) +134
   System.Web.Script.Services.HandlerWrapper.ProcessRequest(HttpContext context) +13
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +75
</pre></code>

                  </td>
               </tr>
            </table>

            <br>

            <hr width=100% size=1 color=silver>

            <b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:2.0.50727.8793; ASP.NET Version:2.0.50727.8762

            </font>

    </body>
</html>
<!-- 
[ArgumentException]: '', hexadecimal value 0x0B, is an invalid character.
   at System.Xml.XmlConvert.VerifyCharData(String data, ExceptionType exceptionType)
   at System.Xml.DocumentXmlWriter.WriteString(String text)
   at System.Xml.XmlWellFormedWriter.WriteString(String text)
   at Microsoft.Web.Services3.Xml.XmlWrappingWriter.WriteString(String text)
   at Microsoft.Web.Services3.Xml.XmlWrappingWriter.WriteString(String text)
   at System.Web.Services.Protocols.Soap11ServerProtocolHelper.WriteFault(XmlWriter writer, SoapException soapException, HttpStatusCode statusCode)
   at System.Web.Services.Protocols.SoapServerProtocol.WriteException(Exception e, Stream outputStream)
   at System.Web.Services.Protocols.WebServiceHandler.WriteException(Exception e)
   at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
   at System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpContext context)
   at System.Web.Script.Services.ScriptHandlerFactory.HandlerWrapper.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
--><!-- 
This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using &lt;customErrors mode="Off"/&gt;. Consider using &lt;customErrors mode="On"/&gt; or &lt;customErrors mode="RemoteOnly"/&gt; in production environments.-->
    at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:156)
    at com.sun.proxy.$Proxy103.pullRequest(Unknown Source)
    at com.ca.im.portal.api.services.datasource.ProductSyncWSProxyImpl.pullRequest(ProductSyncWSProxyImpl.java:74)
    at com.ca.im.portal.dm.productsync.DataSourcePull.pullSync(DataSourcePull.java:131)
    at com.ca.im.portal.dm.productsync.DataSourcePullPhase.executeInternal(DataSourcePullPhase.java:37)
    at com.ca.im.portal.dm.productsync.DataSourceSyncPhase.execute(DataSourceSyncPhase.java:76)
    at com.ca.im.portal.dm.productsync.PullSyncPhaseTask.pullDataSource(PullSyncPhaseTask.java:103)
    at com.ca.im.portal.dm.productsync.PullSyncPhaseTask.execute(PullSyncPhaseTask.java:70)
    at com.ca.im.portal.dm.productsync.SyncPhaseExecutor$MakeDSSyncPhaseCallable$1.call(SyncPhaseExecutor.java:101)
    at com.ca.im.portal.dm.productsync.SyncPhaseExecutor$MakeDSSyncPhaseCallable$1.call(SyncPhaseExecutor.java:94)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType.  Incoming portion of HTML stream: <html>
    <head>
        <title>'', hexadecimal value 0x0B, is an invalid character.</title>
        <style>
         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} 
         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
         pre {font-family:"Lucida Console";font-size: .9em}
         .marker {font-weight: bold; color: black;text-decoration: none;}
         .version {color: gray;}
         .error {margin-bottom: 10px;}
         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
        </style>
    </head>

    <body bgcolor="white">

            <span><H1>Server Error in '/ReporterDataSource' Application.<hr width=100% size=1 color=silver></H1>

            <h2> <i>'', hexadecimal value 0x0B, is an invalid character.</i> </h2></span>

            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

            <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

            <br><br>

            <b> Exception Details: </b>System.ArgumentException: '', hexadecimal value 0x0B, is an invalid character.<br><br>

            <b>Source Error:</b> <br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code>

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code>

                  </td>
               </tr>
            </table>

            <br>

            <b>Stack Trace:</b> <br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code><pre>

[ArgumentException: '', hexadecimal value 0x0B, is an invalid character.]
   System.Xml.XmlConvert.VerifyCharData(String data, ExceptionType exceptionType) +1872678
   System.Xml.DocumentXmlWriter.WriteString(String text) +29
   System.Xml.XmlWellFormedWriter.WriteString(String text) +84
   Microsoft.Web.Services3.Xml.XmlWrappingWriter.WriteString(String text) +12
   Microsoft.Web.Services3.Xml.XmlWrappingWriter.WriteString(String text) +12
   System.Web.Services.Protocols.Soap11ServerProtocolHelper.WriteFault(XmlWriter writer, SoapException soapException, HttpStatusCode statusCode) +606
   System.Web.Services.Protocols.SoapServerProtocol.WriteException(Exception e, Stream outputStream) +1224
   System.Web.Services.Protocols.WebServiceHandler.WriteException(Exception e) +106
   System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest() +782
   System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpContext context) +134
   System.Web.Script.Services.HandlerWrapper.ProcessRequest(HttpContext context) +13
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +75
</pre></code>

                  </td>
               </tr>
            </table>

            <br>

            <hr width=100% size=1 color=silver>

            <b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:2.0.50727.8793; ASP.NET Version:2.0.50727.8762

            </font>

    </body>
</html>
<!-- 
[ArgumentException]: '', hexadecimal value 0x0B, is an invalid character.
   at System.Xml.XmlConvert.VerifyCharData(String data, ExceptionType exceptionType)
   at System.Xml.DocumentXmlWriter.WriteString(String text)
   at System.Xml.XmlWellFormedWriter.WriteString(String text)
   at Microsoft.Web.Services3.Xml.XmlWrappingWriter.WriteString(String text)
   at Microsoft.Web.Services3.Xml.XmlWrappingWriter.WriteString(String text)
   at System.Web.Services.Protocols.Soap11ServerProtocolHelper.WriteFault(XmlWriter writer, SoapException soapException, HttpStatusCode statusCode)
   at System.Web.Services.Protocols.SoapServerProtocol.WriteException(Exception e, Stream outputStream)
   at System.Web.Services.Protocols.WebServiceHandler.WriteException(Exception e)
   at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
   at System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpContext context)
   at System.Web.Script.Services.ScriptHandlerFactory.HandlerWrapper.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
--><!-- 
This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using &lt;customErrors mode="Off"/&gt;. Consider using &lt;customErrors mode="On"/&gt; or &lt;customErrors mode="RemoteOnly"/&gt; in production environments.-->
    at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:79)
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
    at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:798)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1678)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1516)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1424)
    at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
    at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:650)
    at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
    at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:531)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:461)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:364)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:317)
    at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:88)
    at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)
    ... 13 more body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
Cause:
A bad value was entered into manually into the system that CAPC does not interpret. 
Resolution:
We need to find the bad value:
  1. Open a CMD prompt on the NFA Console
    1. mysql reporter​
    2. select * from report_definitions where name like CONCAT('%',0x0B,'%');
    3. select * from agents_all_view where name like CONCAT('%',0x0B,'%');
    4. select * from agents_all_view where RouterName like CONCAT('%',0x0B,'%');
    5. select * from agents_all_view where Description like CONCAT('%',0x0B,'%');
  2. If any of those queries return any results, that is where the issue bad character is. Please find the report, router, or interface and fix it. 
  3. Do a full resync with CAPC afterwards.