*****DSCRuntimeException: The reference to entity "G" must end with the ';' delimiter. ******

632 views
Skip to first unread message

priyankanagar

unread,
Apr 13, 2009, 2:17:30 PM4/13/09
to Adobe LiveCycle Developers
I am getting a parse exception while trying to work with an XML. The
culprit data looks like this:

<description>MOT KIT V3I RAZR W/FAVES D&amp;G VSW</description>

But &amp; is valid in XML data right?

ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal
error.
at
com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.transientInvoke
(WorkflowDSCInvoker.java:367)
at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.invoke
(WorkflowDSCInvoker.java:157)
at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept
(InvocationInterceptor.java:140)
at
com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed
(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor
$1.doInTransaction(TransactionInterceptor.java:74)
at
com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute
(EjbTransactionCMTAdapterBean.java:342)
at
com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports
(EjbTransactionCMTAdapterBean.java:212)
at
com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapter_z73hg_ELOImpl.doSupports
(EjbTransactionCMTAdapter_z73hg_ELOImpl.java:223)
at
com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute
(EjbTransactionProvider.java:104)
at
com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept
(TransactionInterceptor.java:72)
at
com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed
(RequestInterceptorChainImpl.java:60)
at
com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept
(InvocationStrategyInterceptor.java:55)
at
com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed
(RequestInterceptorChainImpl.java:60)
at
com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept
(InvalidStateInterceptor.java:37)
at
com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed
(RequestInterceptorChainImpl.java:60)
at
com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept
(AuthorizationInterceptor.java:132)
at
com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed
(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept
(JMXInterceptor.java:48)
at
com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed
(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke
(ServiceEngineImpl.java:115)
at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke
(AbstractMessageReceiver.java:315)
at
com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invokeCall
(SoapSdkEndpoint.java:138)
at
com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invoke
(SoapSdkEndpoint.java:81)
at sun.reflect.GeneratedMethodAccessor277.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.axis.providers.java.RPCProvider.invokeMethod
(RPCProvider.java:397)
at org.apache.axis.providers.java.RPCProvider.processMessage
(RPCProvider.java:186)
at org.apache.axis.providers.java.JavaProvider.invoke
(JavaProvider.java:323)
at org.apache.axis.strategies.InvocationStrategy.visit
(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:
454)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:
699)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.axis.transport.http.AxisServletBase.service
(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper
$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet
(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute
(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter
(FilterChainImpl.java:42)
at com.adobe.idp.dsc.provider.impl.soap.axis.InvocationFilter.doFilter
(InvocationFilter.java:43)
at weblogic.servlet.internal.FilterChainImpl.doFilter
(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext
$ServletInvocationAction.run(WebAppServletContext.java:3393)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs
(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute
(WebAppServletContext.java:2140)
at weblogic.servlet.internal.WebAppServletContext.execute
(WebAppServletContext.java:2046)
at weblogic.servlet.internal.ServletRequestImpl.run
(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
Caused by: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException:
Internal error.
at com.adobe.workflow.engine.PEUtil.invokeAction(PEUtil.java:837)
at
com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.transientInvoke
(WorkflowDSCInvoker.java:346)
... 53 more
Caused by: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException:
Internal error.
at
com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataValue
(PATExecutionContextImpl.java:831)
at
com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataWithExpression
(PATExecutionContextImpl.java:374)
at com.adobe.idp.workflow.dsc.service.SetValueService.execute
(SetValueService.java:54)
at sun.reflect.GeneratedMethodAccessor878.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke
(DefaultPOJOInvokerImpl.java:118)
at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.invoke
(WorkflowDSCInvoker.java:153)
at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept
(InvocationInterceptor.java:140)
at
com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed
(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor
$1.doInTransaction(TransactionInterceptor.java:74)
at
com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute
(EjbTransactionCMTAdapterBean.java:342)
at
com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports
(EjbTransactionCMTAdapterBean.java:212)
at
com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapter_z73hg_ELOImpl.doSupports
(EjbTransactionCMTAdapter_z73hg_ELOImpl.java:223)
at
com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute
(EjbTransactionProvider.java:104)
at
com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept
(TransactionInterceptor.java:72)
at
com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed
(RequestInterceptorChainImpl.java:60)
at
com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept
(InvocationStrategyInterceptor.java:55)
at
com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed
(RequestInterceptorChainImpl.java:60)
at
com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept
(InvalidStateInterceptor.java:37)
at
com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed
(RequestInterceptorChainImpl.java:60)
at
com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept
(AuthorizationInterceptor.java:132)
at
com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed
(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept
(JMXInterceptor.java:48)
at
com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed
(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke
(ServiceEngineImpl.java:115)
at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)
at
com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage
(AbstractMessageReceiver.java:91)
at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend
(VMMessageDispatcher.java:215)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send
(AbstractMessageDispatcher.java:57)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke
(ServiceClient.java:208)
at com.adobe.workflow.engine.PEUtil.invokeAction(PEUtil.java:724)
... 54 more
Caused by: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException:
Internal error.
at com.adobe.idp.dsc.util.CoercionUtil.toDOMDocument
(CoercionUtil.java:683)
at com.adobe.idp.dsc.util.CoercionUtil.toDOMDocument
(CoercionUtil.java:688)
at com.adobe.idp.dsc.util.CoercionUtil.toType(CoercionUtil.java:970)
at com.adobe.idp.dsc.util.CoercionUtil.toType(CoercionUtil.java:836)
at
com.adobe.workflow.datatype.runtime.support.AbstractDataTypeRuntimeHandler.coerceFrom
(AbstractDataTypeRuntimeHandler.java:64)
at
com.adobe.workflow.datatype.runtime.support.AbstractComplexDataTypeRuntimeHandler.getNode
(AbstractComplexDataTypeRuntimeHandler.java:47)
at com.adobe.workflow.dom.VariableElement.setBoundValue
(VariableElement.java:97)
at
com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataValue
(PATExecutionContextImpl.java:812)
... 85 more
Caused by: org.xml.sax.SAXParseException: The reference to entity "G"
must end with the ';' delimiter.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at com.adobe.idp.dsc.util.DOMUtil.parseDocumentFromString
(DOMUtil.java:167)
at com.adobe.idp.dsc.util.CoercionUtil.toDOMDocument
(CoercionUtil.java:607)
... 92 more

fred.pantalone

unread,
Apr 14, 2009, 10:23:34 AM4/14/09
to Adobe LiveCycle Developers
Look elsewhere in your XML data. It looks like there is an instance of
"D&G" where the '&' isn't encoded.

Fred

Duane Nickull

unread,
Apr 14, 2009, 11:48:30 AM4/14/09
to live...@googlegroups.com
That appears to be dead one correct.  What the parser is (correctly doing) is assuming that where you use & followed by G, you are trying to make an entity reference and it is complaining because it thinks you carelessly forgot to add in your “;” after the G.

D

priyankanagar

unread,
Apr 15, 2009, 9:39:14 AM4/15/09
to Adobe LiveCycle Developers
Checked the XML. '&' is encoded everywhere in the XML. So looks like
it is expecting a ';' after G but what if I dont intend to define
entity G at all? I just want this to be interpreted as D & G .

On Apr 14, 8:48 am, Duane Nickull <dnick...@adobe.com> wrote:
> That appears to be dead one correct.  What the parser is (correctly doing) is assuming that where you use & followed by G, you are trying to make an entity reference and it is complaining because it thinks you carelessly forgot to add in your ";" after the G.
>
> D
>
> ...
>
> read more »

Duane Nickull

unread,
Apr 15, 2009, 11:37:54 AM4/15/09
to live...@googlegroups.com
then you have to write it out as 'D &amp; G'. Anytime the XML stream
parser see a & character, it expects that you are making an entity
reference. & defines the beginning of the entity reference and ;
defines the end. IN your case, it looks like the error was thrown
because the XML had &, then a G but no closing ";" Apaches parsers
have a maximum number of characters they examine before an error is
thrown (if memory serves me correct it is 32). Since most entity
references are less than 5 characters, this should theoretically never
be an issue and the entity handler can safely assume a fatal parsing
error and flag it.

Do you want to send your XML or post it up so we can take a look?

Duane
>> ...
>>
>> read more »
> >

Reply all
Reply to author
Forward
0 new messages