Project

Profile

Help

Bug #6323

closed

Nullpointer Exception evaluating Java extension function call; suspected multithreading problem

Added by Urvish Amin 10 months ago. Updated 5 months ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Multithreading
Sprint/Milestone:
-
Start date:
2024-01-18
Due date:
2024-01-19
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Platforms:
Java

Description

We are getting NullPointerException , see below. It doesnt give much information about which attribute or specific item it fails. Let us know what could be an issue or how to debug this issue. Can we get source code so we can debug code and see for which element it fails? I have attached our xslt files.

-- Caused by: java.lang.NullPointerException: Cannot invoke "net.sf.saxon.om.Sequence.makeRepeatable()" because "value" is null       at net.sf.saxon.expr.XPathContextMinor.setLocalVariable(XPathContextMinor.java:374) ~[Saxon-EE-11.6.jar:?]

2024-01-17T05:44:13,566 ERROR [ESLA] [TEMLC-W-CSP_tst821_ESLA_REQUEST_IO_CSS-FROM-ULDD_COMPLETED_IN-5] ?#: Handling Message: bpid=IOUTILITY 1000 bpMsgId=5f964850-5841-4fee-beef-cc2ef745f25e entityNameType=request.io.css-from-uldd entityState=COMPLETED entityIdentifiers=RequestIdentifier=WebService-FRE_1.13.1_FRM_3138W9X88_201309_10L_1of1_P1W_SWCWI_ONE__V11.3_14.2_14.1_02272017_ShelfOnly_DATA.xml Transformation failure for RqstPrcsID::10184 com.css.csp.interfaces.transform.InterfacesWrapperTransformerException: Error transforming with compiled templates       at com.css.csp.interfaces.transform.XSLTTransformer.transformCompiled(XSLTTransformer.java:682) ~[interfaces-transformer-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.transform.XSLTTransformer.transformCompiled(XSLTTransformer.java:649) ~[interfaces-transformer-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.transform.service.TransformationService.transform(TransformationService.java:63) ~[interfaces-transformer-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.processor.TransformerAndValidatorUtil.transformAndValidate(TransformerAndValidatorUtil.java:146) ~[interfaces-base-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.processor.SplitterAndTransformer.processMessage(SplitterAndTransformer.java:93) ~[interfaces-base-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.processor.GenericSplitterAndTransformer.processMessage(GenericSplitterAndTransformer.java:92) ~[interfaces-base-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.eventmgmt.impl.EventHandler.processMessage(EventHandler.java:100) ~[interfaces-base-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.eventmgmt.EventRouter.processMessage(EventRouter.java:77) ~[interfaces-base-24.3.0-RC4.jar:24.3.0-RC4]       at jdk.internal.reflect.GeneratedMethodAccessor189.invoke(Unknown Source) ~[?:?]       at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]       at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]       at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:64) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:241) ~[spring-aop-5.3.29.jar:5.3.29]       at jdk.proxy3.$Proxy97.processMessage(Unknown Source) ~[?:?]       at com.css.csp.interfaces.spring.EventObjectListener.onMessage(EventObjectListener.java:42) ~[interfaces-base-24.3.0-RC4.jar:24.3.0-RC4]       at jdk.internal.reflect.GeneratedMethodAccessor192.invoke(Unknown Source) ~[?:?]       at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]       at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]       at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:169) ~[spring-messaging-5.3.29.jar:5.3.29]       at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:119) ~[spring-messaging-5.3.29.jar:5.3.29]       at org.springframework.integration.handler.support.MessagingMethodInvokerHelper$HandlerMethod.invoke(MessagingMethodInvokerHelper.java:1103) ~[spring-integration-core-5.5.18.jar:5.5.18]       at org.springframework.integration.handler.support.MessagingMethodInvokerHelper.invokeHandlerMethod(MessagingMethodInvokerHelper.java:585) ~[spring-integration-core-5.5.18.jar:5.5.18]       at org.springframework.integration.handler.support.MessagingMethodInvokerHelper.processInternal(MessagingMethodInvokerHelper.java:480) ~[spring-integration-core-5.5.18.jar:5.5.18]       at org.springframework.integration.handler.support.MessagingMethodInvokerHelper.process(MessagingMethodInvokerHelper.java:358) ~[spring-integration-core-5.5.18.jar:5.5.18]       at org.springframework.integration.handler.MethodInvokingMessageProcessor.processMessage(MethodInvokingMessageProcessor.java:110) ~[spring-integration-core-5.5.18.jar:5.5.18]       at org.springframework.integration.handler.ServiceActivatingHandler.handleRequestMessage(ServiceActivatingHandler.java:105) ~[spring-integration-core-5.5.18.jar:5.5.18]       at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:136) ~[spring-integration-core-5.5.18.jar:5.5.18]       at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:55) ~[spring-integration-core-5.5.18.jar:5.5.18]       at org.springframework.integration.dispatcher.AbstractDispatcher.tryOptimizedDispatch(AbstractDispatcher.java:115) ~[spring-integration-core-5.5.18.jar:5.5.18]       at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:133) ~[spring-integration-core-5.5.18.jar:5.5.18]       at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:106) ~[spring-integration-core-5.5.18.jar:5.5.18]       at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:72) ~[spring-integration-core-5.5.18.jar:5.5.18]       at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:317) ~[spring-integration-core-5.5.18.jar:5.5.18]       at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:272) ~[spring-integration-core-5.5.18.jar:5.5.18]       at com.css.csp.interfaces.spring.ChannelMessageSender.sendOutMessage(ChannelMessageSender.java:40) ~[interfaces-base-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.eventmgmt.EventRouter.sendMessage(EventRouter.java:112) ~[interfaces-base-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.eventmgmt.impl.EventHandler.extractAndSendImmediateEvents(EventHandler.java:222) ~[interfaces-base-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.eventmgmt.impl.EventHandler.processMessage(EventHandler.java:114) ~[interfaces-base-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.eventmgmt.EventRouter.processMessage(EventRouter.java:77) ~[interfaces-base-24.3.0-RC4.jar:24.3.0-RC4]       at jdk.internal.reflect.GeneratedMethodAccessor189.invoke(Unknown Source) ~[?:?]       at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]       at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]       at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:64) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:241) ~[spring-aop-5.3.29.jar:5.3.29]       at jdk.proxy3.$Proxy97.processMessage(Unknown Source) ~[?:?]       at com.css.csp.interfaces.eventmgmt.EventRouterInvoker.processMessage(EventRouterInvoker.java:47) ~[interfaces-base-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.processor.IOEventExtractorProcessor.createULDDEvent(IOEventExtractorProcessor.java:118) ~[interfaces-base-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.processor.IOEventExtractorProcessor.processMessage(IOEventExtractorProcessor.java:66) ~[interfaces-base-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.eventmgmt.impl.EventHandler.processMessage(EventHandler.java:100) ~[interfaces-base-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.eventmgmt.EventRouter.processMessage(EventRouter.java:77) ~[interfaces-base-24.3.0-RC4.jar:24.3.0-RC4]       at jdk.internal.reflect.GeneratedMethodAccessor189.invoke(Unknown Source) ~[?:?]       at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]       at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]       at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:64) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.29.jar:5.3.29]       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:241) ~[spring-aop-5.3.29.jar:5.3.29]       at jdk.proxy3.$Proxy97.processMessage(Unknown Source) ~[?:?]       at com.css.csp.interfaces.appframework.handlers.AbstractEventHandler.dispatchTask(AbstractEventHandler.java:137) ~[interfaces-base-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.appframework.handlers.RequestIoCssFromUlddReceivedToCompletedEventHandler.handleEvent(RequestIoCssFromUlddReceivedToCompletedEventHandler.java:56) ~[interfaces-base-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.appframework.handlers.RequestIoCssFromUlddReceivedToCompletedEventHandler.handleEvent(RequestIoCssFromUlddReceivedToCompletedEventHandler.java:31) ~[interfaces-base-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.appframework.internal.jms.handling.DefaultEventLifecycleHandler.handle(DefaultEventLifecycleHandler.java:131) ~[appframework-core-24.3.0.jar:24.3.0]       at com.css.csp.appframework.internal.jms.EventLifecycleManager.processEvent(EventLifecycleManager.java:211) ~[appframework-core-24.3.0.jar:24.3.0]       at com.css.csp.appframework.internal.messaging.aws.AwsMessagingListener.onMessage(AwsMessagingListener.java:94) ~[appframework-core-24.3.0.jar:24.3.0]       at jdk.internal.reflect.GeneratedMethodAccessor196.invoke(Unknown Source) ~[?:?]       at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]       at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]       at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:169) ~[spring-messaging-5.3.29.jar:5.3.29]       at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:119) ~[spring-messaging-5.3.29.jar:5.3.29]       at org.springframework.messaging.handler.invocation.AbstractMethodMessageHandler.handleMatch(AbstractMethodMessageHandler.java:569) ~[spring-messaging-5.3.29.jar:5.3.29]       at org.springframework.messaging.handler.invocation.AbstractMethodMessageHandler.handleMessageInternal(AbstractMethodMessageHandler.java:524) ~[spring-messaging-5.3.29.jar:5.3.29]       at org.springframework.messaging.handler.invocation.AbstractMethodMessageHandler.handleMessage(AbstractMethodMessageHandler.java:458) ~[spring-messaging-5.3.29.jar:5.3.29]       at com.css.csp.appframework.internal.messaging.aws.TransactionEmulatedMessageListenerContainer.executeMessage(TransactionEmulatedMessageListenerContainer.java:338) ~[appframework-core-24.3.0.jar:24.3.0]       at com.css.csp.appframework.internal.messaging.aws.TransactionEmulatedMessageListenerContainer$MessageExecutor.run(TransactionEmulatedMessageListenerContainer.java:711) ~[appframework-core-24.3.0.jar:24.3.0]       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]       at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]       at java.lang.Thread.run(Thread.java:833) ~[?:?] Caused by: java.lang.IllegalStateException: java.lang.RuntimeException: Internal error evaluating template rule at line 7 in module jar:file:/opt/catalina/webapps/interfaces-web/WEB-INF/lib/interfaces-transformer-24.3.0-RC4.jar!/stylesheets/facade/Int-1.13.1-SecurityReadyPayloadBuilderFacade.xsl       at net.sf.saxon.resource.ActiveSAXSource.deliver(ActiveSAXSource.java:233) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.event.Sender.send(Sender.java:105) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.jaxp.IdentityTransformer.transform(IdentityTransformer.java:364) ~[Saxon-EE-11.6.jar:?]       at com.css.csp.interfaces.transform.XSLTTransformer._transform(XSLTTransformer.java:836) ~[interfaces-transformer-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.transform.XSLTTransformer._transform(XSLTTransformer.java:867) ~[interfaces-transformer-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.transform.XSLTTransformer.transformCompiled(XSLTTransformer.java:680) ~[interfaces-transformer-24.3.0-RC4.jar:24.3.0-RC4]       ... 94 more Caused by: java.lang.RuntimeException: Internal error evaluating template rule at line 7 in module jar:file:/opt/catalina/webapps/interfaces-web/WEB-INF/lib/interfaces-transformer-24.3.0-RC4.jar!/stylesheets/facade/Int-1.13.1-SecurityReadyPayloadBuilderFacade.xsl       at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:411) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:551) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.trans.XsltController.applyTemplates(XsltController.java:685) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.s9api.AbstractXsltTransformer.applyTemplatesToSource(AbstractXsltTransformer.java:422) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:359) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.jaxp.TransformerImpl.transform(TransformerImpl.java:75) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.jaxp.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:185) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.event.ContentHandlerProxy.close(ContentHandlerProxy.java:298) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.event.ProxyReceiver.close(ProxyReceiver.java:104) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.event.SequenceNormalizer.close(SequenceNormalizer.java:160) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.event.ReceivingContentHandler.endDocument(ReceivingContentHandler.java:269) ~[Saxon-EE-11.6.jar:?]       at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) ~[xercesImpl-2.12.0.jar:?]       at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0]       at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0]       at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0]       at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0]       at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0]       at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0]       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?]       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?]       at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?]       at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?]       at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?]       at net.sf.saxon.resource.ActiveSAXSource.deliver(ActiveSAXSource.java:190) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.event.Sender.send(Sender.java:105) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.jaxp.IdentityTransformer.transform(IdentityTransformer.java:364) ~[Saxon-EE-11.6.jar:?]       at com.css.csp.interfaces.transform.XSLTTransformer._transform(XSLTTransformer.java:836) ~[interfaces-transformer-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.transform.XSLTTransformer._transform(XSLTTransformer.java:867) ~[interfaces-transformer-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.transform.XSLTTransformer.transformCompiled(XSLTTransformer.java:680) ~[interfaces-transformer-24.3.0-RC4.jar:24.3.0-RC4]       ... 94 more Caused by: java.lang.NullPointerException: Cannot invoke "net.sf.saxon.om.Sequence.makeRepeatable()" because "value" is null       at net.sf.saxon.expr.XPathContextMinor.setLocalVariable(XPathContextMinor.java:374) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:747) ~[Saxon-EE-11.6.jar:?]       at com.saxonica.ee.bytecode.ByteCodeCandidate.processLeavingTail(ByteCodeCandidate.java:192) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:266) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:384) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:357) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:298) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:755) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:142) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:357) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:298) ~[Saxon-EE-11.6.jar:?]       at com.saxonica.ee.bytecode.ByteCodeCandidate.processLeavingTail(ByteCodeCandidate.java:192) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:266) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:384) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:357) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:298) ~[Saxon-EE-11.6.jar:?]       at com.saxonica.ee.bytecode.ByteCodeCandidate.processLeavingTail(ByteCodeCandidate.java:192) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:266) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:384) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.CallTemplate.processLeavingTail(CallTemplate.java:446) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:755) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:142) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:357) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:298) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:392) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:551) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.trans.XsltController.applyTemplates(XsltController.java:685) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.s9api.AbstractXsltTransformer.applyTemplatesToSource(AbstractXsltTransformer.java:422) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:359) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.jaxp.TransformerImpl.transform(TransformerImpl.java:75) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.jaxp.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:185) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.event.ContentHandlerProxy.close(ContentHandlerProxy.java:298) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.event.ProxyReceiver.close(ProxyReceiver.java:104) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.event.SequenceNormalizer.close(SequenceNormalizer.java:160) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.event.ReceivingContentHandler.endDocument(ReceivingContentHandler.java:269) ~[Saxon-EE-11.6.jar:?]       at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) ~[xercesImpl-2.12.0.jar:?]       at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0]       at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0]       at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0]       at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0]       at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0]       at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0]       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?]       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?]       at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?]       at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?]       at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?]       at net.sf.saxon.resource.ActiveSAXSource.deliver(ActiveSAXSource.java:190) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.event.Sender.send(Sender.java:105) ~[Saxon-EE-11.6.jar:?]       at net.sf.saxon.jaxp.IdentityTransformer.transform(IdentityTransformer.java:364) ~[Saxon-EE-11.6.jar:?]       at com.css.csp.interfaces.transform.XSLTTransformer._transform(XSLTTransformer.java:836) ~[interfaces-transformer-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.transform.XSLTTransformer._transform(XSLTTransformer.java:867) ~[interfaces-transformer-24.3.0-RC4.jar:24.3.0-RC4]       at com.css.csp.interfaces.transform.XSLTTransformer.transformCompiled(XSLTTransformer.java:680) ~[interfaces-transformer-24.3.0-RC4.jar:24.3.0-RC4]       ... 94 more


Files

Actions #1

Updated by Urvish Amin 10 months ago

Same xslt works fine version 9, It gives error with 11.6 version

Actions #2

Updated by Michael Kay 10 months ago

Thanks for reporting it. Sorry, I don't see your attachments. Can you try again? Or if you have trouble, send them by email.

If you want diagnostics about where this is happening in your XSLT code, running with the -T tracing option might help.

It might also be worth disabling bytecode generation.

Actions #3

Updated by Urvish Amin 10 months ago

it says forbidden when I attached the file. I doubt I can send out going email with attachment but let me know the email address. Is there any restriction on attaching files? I am trying to attach zip file

Actions #4

Updated by Urvish Amin 10 months ago

just tried with 12.3 version and it's working fine no issue. Strange .....

Actions #5

Updated by Michael Kay 10 months ago

Sorry you're having trouble with attachments, please send them to and I will pick them up from there.

It doesn't surprise me particularly that a problem like this should be present in 11.6 and not in 12.3.

Actions #6

Updated by Urvish Amin 10 months ago

Now, we are getting NullPointer somewhere else with 12.4 version:

Caused by: java.lang.RuntimeException: Internal error evaluating template rule at line 24 in module jar:file:/opt/catalina/webapps/interfaces-web/WEB-INF/lib/interfaces-transformer-24.3.0-RC6.jar!/stylesheets/core/Int-1.17.1-ExternalCollateralLoanPositionPayloadBuilder.xsl at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:386) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.trans.Mode.handleRuleNotNull(Mode.java:587) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:521) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.trans.XsltController.applyTemplates(XsltController.java:684) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.s9api.AbstractXsltTransformer.applyTemplatesToSource(AbstractXsltTransformer.java:430) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:358) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.jaxp.TransformerImpl.transform(TransformerImpl.java:75) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.jaxp.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:188) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.event.ContentHandlerProxy.close(ContentHandlerProxy.java:320) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.event.ProxyReceiver.close(ProxyReceiver.java:104) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.event.ProxyReceiver.close(ProxyReceiver.java:104) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.event.SequenceNormalizer.close(SequenceNormalizer.java:160) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.event.ReceivingContentHandler.endDocument(ReceivingContentHandler.java:269) ~[Saxon-EE-12.4.jar:?] at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) ~[xercesImpl-2.12.0.jar:?] at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0] at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0] at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0] at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0] at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?] at net.sf.saxon.resource.ActiveSAXSource.deliver(ActiveSAXSource.java:192) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.event.Sender.send(Sender.java:104) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.jaxp.IdentityTransformer.transform(IdentityTransformer.java:364) ~[Saxon-EE-12.4.jar:?] at com.css.csp.interfaces.transform.XSLTTransformer._transform(XSLTTransformer.java:836) ~[interfaces-transformer-24.3.0-RC6.jar:24.3.0-RC6] at com.css.csp.interfaces.transform.XSLTTransformer._transform(XSLTTransformer.java:867) ~[interfaces-transformer-24.3.0-RC6.jar:24.3.0-RC6] at com.css.csp.interfaces.transform.XSLTTransformer.transformCompiled(XSLTTransformer.java:680) ~[interfaces-transformer-24.3.0-RC6.jar:24.3.0-RC6] at com.css.csp.interfaces.transform.XSLTTransformer.transformCompiled(XSLTTransformer.java:649) ~[interfaces-transformer-24.3.0-RC6.jar:24.3.0-RC6] at com.css.csp.interfaces.transform.service.TransformationService.transform(TransformationService.java:63) ~[interfaces-transformer-24.3.0-RC6.jar:24.3.0-RC6] at com.css.csp.interfaces.processor.SubmissionOfExtColtTransformerProcessor.processMessage(SubmissionOfExtColtTransformerProcessor.java:157) ~[interfaces-base-24.3.0-RC6.jar:24.3.0-RC6] at com.css.csp.interfaces.eventmgmt.impl.EventHandler.processMessage(EventHandler.java:100) ~[interfaces-base-24.3.0-RC6.jar:24.3.0-RC6] at com.css.csp.interfaces.eventmgmt.EventRouter.processMessage(EventRouter.java:77) ~[interfaces-base-24.3.0-RC6.jar:24.3.0-RC6] at jdk.internal.reflect.GeneratedMethodAccessor189.invoke(Unknown Source) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) ~[spring-aop-5.3.29.jar:5.3.29] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) ~[spring-aop-5.3.29.jar:5.3.29] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.29.jar:5.3.29] at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:64) ~[spring-aop-5.3.29.jar:5.3.29] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.29.jar:5.3.29] at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) ~[spring-aop-5.3.29.jar:5.3.29] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.29.jar:5.3.29] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:241) ~[spring-aop-5.3.29.jar:5.3.29] at jdk.proxy3.$Proxy97.processMessage(Unknown Source) ~[?:?] at com.css.csp.interfaces.spring.EventObjectListener.onMessage(EventObjectListener.java:42) ~[interfaces-base-24.3.0-RC6.jar:24.3.0-RC6] at jdk.internal.reflect.GeneratedMethodAccessor221.invoke(Unknown Source) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:169) ~[spring-messaging-5.3.29.jar:5.3.29] at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:119) ~[spring-messaging-5.3.29.jar:5.3.29] at org.springframework.integration.handler.support.MessagingMethodInvokerHelper$HandlerMethod.invoke(MessagingMethodInvokerHelper.java:1103) ~[spring-integration-core-5.5.18.jar:5.5.18] at org.springframework.integration.handler.support.MessagingMethodInvokerHelper.invokeHandlerMethod(MessagingMethodInvokerHelper.java:585) ~[spring-integration-core-5.5.18.jar:5.5.18] at org.springframework.integration.handler.support.MessagingMethodInvokerHelper.processInternal(MessagingMethodInvokerHelper.java:480) ~[spring-integration-core-5.5.18.jar:5.5.18] at org.springframework.integration.handler.support.MessagingMethodInvokerHelper.process(MessagingMethodInvokerHelper.java:358) ~[spring-integration-core-5.5.18.jar:5.5.18] at org.springframework.integration.handler.MethodInvokingMessageProcessor.processMessage(MethodInvokingMessageProcessor.java:110) ~[spring-integration-core-5.5.18.jar:5.5.18] ... 47 more Caused by: java.lang.NullPointerException: Cannot invoke "net.sf.saxon.expr.elab.SequenceEvaluator.evaluate(net.sf.saxon.expr.XPathContext)" because "this.argumentEvaluators[i]" is null at com.saxonica.expr.JavaExtensionFunctionCall.evaluateArguments(JavaExtensionFunctionCall.java:1017) ~[Saxon-EE-12.4.jar:?] at com.saxonica.expr.JavaExtensionFunctionCall$JavaExtensionFunctionCallElaborator.lambda$elaborateForPull$0(JavaExtensionFunctionCall.java:1041) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.expr.elab.EagerPullEvaluator.evaluate(EagerPullEvaluator.java:37) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.expr.parser.ExpressionTool.eagerEvaluate(ExpressionTool.java:195) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.expr.instruct.GlobalVariable.getSelectValue(GlobalVariable.java:645) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.expr.instruct.GlobalVariable.actuallyEvaluate(GlobalVariable.java:743) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.expr.instruct.GlobalVariable.evaluateVariable(GlobalVariable.java:712) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.expr.GlobalVariableReference.evaluateVariable(GlobalVariableReference.java:128) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.expr.GlobalVariableReference$GlobalVariableReferenceElaborator.lambda$elaborateForPull$0(GlobalVariableReference.java:211) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.expr.Atomizer$AtomizerElaborator.lambda$elaborateForPull$0(Atomizer.java:678) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.expr.AtomicSequenceConverter$AtomicSequenceConverterElaborator.lambda$elaborateForPull$0(AtomicSequenceConverter.java:536) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.expr.CardinalityChecker$CardinalityCheckerElaborator.lambda$elaborateForPull$0(CardinalityChecker.java:506) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.expr.elab.EagerPullEvaluator.evaluate(EagerPullEvaluator.java:37) ~[Saxon-EE-12.4.jar:?] at com.saxonica.expr.JavaExtensionFunctionCall.evaluateArguments(JavaExtensionFunctionCall.java:1017) ~[Saxon-EE-12.4.jar:?] at com.saxonica.expr.JavaExtensionFunctionCall$JavaExtensionFunctionCallElaborator.lambda$elaborateForPull$0(JavaExtensionFunctionCall.java:1041) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.expr.elab.EagerPullEvaluator.evaluate(EagerPullEvaluator.java:37) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.expr.LetExpression$LetExprElaborator.lambda$setAllVariables$1(LetExpression.java:849) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.expr.LetExpression$LetExprElaborator.lambda$elaborateForPush$6(LetExpression.java:940) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:376) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.trans.Mode.handleRuleNotNull(Mode.java:587) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:521) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.trans.XsltController.applyTemplates(XsltController.java:684) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.s9api.AbstractXsltTransformer.applyTemplatesToSource(AbstractXsltTransformer.java:430) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:358) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.jaxp.TransformerImpl.transform(TransformerImpl.java:75) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.jaxp.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:188) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.event.ContentHandlerProxy.close(ContentHandlerProxy.java:320) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.event.ProxyReceiver.close(ProxyReceiver.java:104) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.event.ProxyReceiver.close(ProxyReceiver.java:104) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.event.SequenceNormalizer.close(SequenceNormalizer.java:160) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.event.ReceivingContentHandler.endDocument(ReceivingContentHandler.java:269) ~[Saxon-EE-12.4.jar:?] at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) ~[xercesImpl-2.12.0.jar:?] at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0] at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0] at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0] at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0] at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[xercesImpl-2.12.0.jar:2.12.0] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) ~[xercesImpl-2.12.0.jar:?] at net.sf.saxon.resource.ActiveSAXSource.deliver(ActiveSAXSource.java:192) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.event.Sender.send(Sender.java:104) ~[Saxon-EE-12.4.jar:?] at net.sf.saxon.jaxp.IdentityTransformer.transform(IdentityTransformer.java:364) ~[Saxon-EE-12.4.jar:?] at com.css.csp.interfaces.transform.XSLTTransformer._transform(XSLTTransformer.java:836) ~[interfaces-transformer-24.3.0-RC6.jar:24.3.0-RC6] at com.css.csp.interfaces.transform.XSLTTransformer._transform(XSLTTransformer.java:867) ~[interfaces-transformer-24.3.0-RC6.jar:24.3.0-RC6] at com.css.csp.interfaces.transform.XSLTTransformer.transformCompiled(XSLTTransformer.java:680) ~[interfaces-transformer-24.3.0-RC6.jar:24.3.0-RC6] at com.css.csp.interfaces.transform.XSLTTransformer.transformCompiled(XSLTTransformer.java:649) ~[interfaces-transformer-24.3.0-RC6.jar:24.3.0-RC6] at com.css.csp.interfaces.transform.service.TransformationService.transform(TransformationService.java:63) ~[interfaces-transformer-24.3.0-RC6.jar:24.3.0-RC6] at com.css.csp.interfaces.processor.SubmissionOfExtColtTransformerProcessor.processMessage(SubmissionOfExtColtTransformerProcessor.java:157) ~[interfaces-base-24.3.0-RC6.jar:24.3.0-RC6] at com.css.csp.interfaces.eventmgmt.impl.EventHandler.processMessage(EventHandler.java:100) ~[interfaces-base-24.3.0-RC6.jar:24.3.0-RC6] at com.css.csp.interfaces.eventmgmt.EventRouter.processMessage(EventRouter.java:77) ~[interfaces-base-24.3.0-RC6.jar:24.3.0-RC6] at jdk.internal.reflect.GeneratedMethodAccessor189.invoke(Unknown Source) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) ~[spring-aop-5.3.29.jar:5.3.29] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) ~[spring-aop-5.3.29.jar:5.3.29] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.29.jar:5.3.29] at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:64) ~[spring-aop-5.3.29.jar:5.3.29] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.29.jar:5.3.29] at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) ~[spring-aop-5.3.29.jar:5.3.29] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.29.jar:5.3.29] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:241) ~[spring-aop-5.3.29.jar:5.3.29] at jdk.proxy3.$Proxy97.processMessage(Unknown Source) ~[?:?] at com.css.csp.interfaces.spring.EventObjectListener.onMessage(EventObjectListener.java:42) ~[interfaces-base-24.3.0-RC6.jar:24.3.0-RC6] at jdk.internal.reflect.GeneratedMethodAccessor221.invoke(Unknown Source) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:169) ~[spring-messaging-5.3.29.jar:5.3.29] at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:119) ~[spring-messaging-5.3.29.jar:5.3.29] at org.springframework.integration.handler.support.MessagingMethodInvokerHelper$HandlerMethod.invoke(MessagingMethodInvokerHelper.java:1103) ~[spring-integration-core-5.5.18.jar:5.5.18] at org.springframework.integration.handler.support.MessagingMethodInvokerHelper.invokeHandlerMethod(MessagingMethodInvokerHelper.java:585) ~[spring-integration-core-5.5.18.jar:5.5.18] at org.springframework.integration.handler.support.MessagingMethodInvokerHelper.processInternal(MessagingMethodInvokerHelper.java:480) ~[spring-integration-core-5.5.18.jar:5.5.18] at org.springframework.integration.handler.support.MessagingMethodInvokerHelper.process(MessagingMethodInvokerHelper.java:358) ~[spring-integration-core-5.5.18.jar:5.5.18] at org.springframework.integration.handler.MethodInvokingMessageProcessor.processMessage(MethodInvokingMessageProcessor.java:110) ~[spring-integration-core-5.5.18.jar:5.5.18] ... 47 more

Actions #9

Updated by Urvish Amin 10 months ago

New 2017-06-12T05:12:28 2017-06-12T05:12:28 8504669357 564654 Issuer SubmissionOfExternalLoanCollateralData 0.0 100 NotApplicable 1731926553 0 244090001 NotApplicable 0 0 3100.88 0 0 DidNotLiquidate 5782 31307BJB7 NotApplicable 1731926559 0 244090001 NotApplicable 0 0 3101.41 0 0 DidNotLiquidate 4432 31307BJB7 NotApplicable 1731926570 0 244090001 NotApplicable 0 0 3100.07 0 0 DidNotLiquidate 5364 31307BJB7 NotApplicable 1731926577 0 244090001 NotApplicable 0 0 3101.41 0 0 DidNotLiquidate 4267 31307BJB7 NotApplicable 1731926586 0 244090001 NotApplicable 0 0 3101.67 0 0 DidNotLiquidate 5984 31307BJB7 NotApplicable 1731926593 0 244090001 NotApplicable 0 0 3101.93 0 0 DidNotLiquidate 5686 31307BJB7 NotApplicable 1731926599 0 244090001 NotApplicable 0 0 3101.41 0 0 DidNotLiquidate 4410 31307BJB7 NotApplicable 1731926624 0 244090001 NotApplicable 0 0 3101.67 0 0 DidNotLiquidate 4161 31307BJB7 NotApplicable 1731926625 0 244090001 NotApplicable 0 0 3101.93 0 0 DidNotLiquidate 5862 31307BJB7 NotApplicable 1731926652 0 244090001 NotApplicable 0 0 3101.93 0 0 DidNotLiquidate 3992 31307BJB7 NotApplicable 1731926664 0 244090001 NotApplicable 0 0 3102.18 0 0 DidNotLiquidate 5971 31307BJB7 NotApplicable 1731926665 0 244090001 NotApplicable 0 0 3101.67 0 0 DidNotLiquidate 5929 31307BJB7 NotApplicable 1731926681 0 244090001 NotApplicable 0 0 3101.67 0 0 DidNotLiquidate 5701 31307BJB7 NotApplicable 1731926688 0 244090001 NotApplicable 0 0 3102.18 0 0 DidNotLiquidate 5090 31307BJB7 NotApplicable 1731926692 0 244090001 NotApplicable 0 0 3101.93 0 0 DidNotLiquidate 5565 31307BJB7 NotApplicable 1731926720 0 244090001 NotApplicable 0 0 3101.93 0 0 DidNotLiquidate 5075 31307BJB7 NotApplicable 1731926727 0 244090001 NotApplicable 0 0 3102.18 0 0 DidNotLiquidate 5680 31307BJB7 NotApplicable 1731926756 0 244090001 NotApplicable 0 0 3101.14 0 0 DidNotLiquidate 4340 31307BJB7 NotApplicable 1731926760 0 244090001 NotApplicable 0 0 3101.67 0 0 DidNotLiquidate 4690 31307BJB7 NotApplicable 1731926767 0 244090001 NotApplicable 0 0 3101.67 0 0 DidNotLiquidate 5588 31307BJB7 NotApplicable 1731926783 0 244090001 NotApplicable 0 0 3100.88 0 0 DidNotLiquidate 4128 31307BJB7 NotApplicable 1731926789 0 244090001 NotApplicable 0 0 3101.93 0 0 DidNotLiquidate 5034 31307BJB7 NotApplicable 1731926796 0 244090001 NotApplicable 0 0 3101.67 0 0 DidNotLiquidate 5336 31307BJB7 NotApplicable 1731926804 0 244090001 NotApplicable 0 0 3101.93 0 0 DidNotLiquidate 6041 31307BJB7 NotApplicable 1731926805 0 244090001 NotApplicable 0 0 3100.88 0 0 DidNotLiquidate 5428 31307BJB7 NotApplicable 1731926810 0 244090001 NotApplicable 0 0 3102.18 0 0 DidNotLiquidate 6093 31307BJB7 NotApplicable 1731926817 0 244090001 NotApplicable 0 0 3101.14 0 0 DidNotLiquidate 5710 31307BJB7 NotApplicable 1731926830 0 244090001 NotApplicable 0 0 3101.67 0 0 DidNotLiquidate 5175 31307BJB7 NotApplicable 1731926837 0 244090001 NotApplicable 0 0 3100.88 0 0 DidNotLiquidate 4792 31307BJB7 NotApplicable 1731926844 0 244090001 NotApplicable 0 0 3101.14 0 0 DidNotLiquidate 4754 31307BJB7 NotApplicable 1731926845 0 244090001 NotApplicable 0 0 3102.18 0 0 DidNotLiquidate 5770 31307BJB7 NotApplicable 1731926851 0 244090001 NotApplicable 0 0 3101.41 0 0 DidNotLiquidate 5711 31307BJB7 NotApplicable 1731926858 0 244090001 NotApplicable 0 0 3101.93 0 0 DidNotLiquidate 4801 31307BJB7 NotApplicable 1731926874 0 244090001 NotApplicable 0 0 3102.18 0 0 DidNotLiquidate 5981 31307BJB7 NotApplicable 1731926875 0 244090001 NotApplicable 0 0 3100.61 0 0 DidNotLiquidate 4162 31307BJB7 NotApplicable 1731926882 0 244090001 NotApplicable 0 0 3101.67 0 0 DidNotLiquidate 5323 31307BJB7 NotApplicable 1731926891 0 244090001 NotApplicable 0 0 3101.93 0 0 DidNotLiquidate 5914 31307BJB7 NotApplicable 1731926898 0 244090001 NotApplicable 0 0 3102.18 0 0 DidNotLiquidate 5510 31307BJB7 NotApplicable 1731926901 0 244090001 NotApplicable 0 0 3102.18 0 0 DidNotLiquidate 4820 31307BJB7 NotApplicable 1731926908 0 244090001 NotApplicable 0 0 3101.67 0 0 DidNotLiquidate 4862 31307BJB7 NotApplicable 1731926913 0 244090001 NotApplicable 0 0 3101.93 0 0 DidNotLiquidate 4224 31307BJB7 NotApplicable 1731926919 0 244090001 NotApplicable 0 0 3102.18 0 0 DidNotLiquidate 4671 31307BJB7 NotApplicable 1731926922 0 244090001 NotApplicable 0 0 3100.34 0 0 DidNotLiquidate 5663 31307BJB7 NotApplicable 1731926933 0 244090001 NotApplicable 0 0 3100.34 0 0 DidNotLiquidate 4008 31307BJB7 NotApplicable 1731926939 0 244090001 NotApplicable 0 0 3102.18 0 0 DidNotLiquidate 4972 31307BJB7 NotApplicable 1731926941 0 244090001 NotApplicable 0

Actions #10

Updated by Michael Kay 10 months ago

Thanks for uploading one module of your stylesheet. To investigate your problem we will need all the modules of your stylesheet, plus a sample source document, and any other details such as stylesheet parameters that need to be set. You may find it most convenient to zip these together into a single file.

I'm not sure what your latest comment starting "New 2017-06-12T05:12:28 2017-06-12T05:12:28" is supposed to tell us. Ah, I see, it was XML, I have edited it to add "code" markup. Now we just need the other stylesheet modules.

Actions #11

Updated by Michael Kay 9 months ago

  • Status changed from New to AwaitingInfo
Actions #12

Updated by Michael Kay 7 months ago

  • Status changed from AwaitingInfo to Closed

I'm sorry, I'm (very reluctantly) closing this as unresolved, because you haven't been able to supply a repro that enables us to investigate the problem. We don't like having unresolved bugs in the product, so if you are able to put together a repro, please feel free to reopen the issue. It doesn't have to be a simple repro so long as you provide all the resources we need to execute the code and trigger the failure. Obviously the fewer the external dependencies the better.

Actions #13

Updated by Michael Kay 7 months ago

Further log files received by email today. No repro unfortunately, but something to be going on. My email response:

OK, thanks for sending it.

Excuse the fact that this note is a "thread of consciousness" - I'm exploring the problem and examining hypotheses as I write it, and much of this is a "memo to self".

Would I be correct in thinking this is a reopening of https://saxonica.plan.io/issues/6323 ?

The voluminous -T trace isn't useful to us without seeing the stylesheet code you are executing (and even then, it's unlikely to be especially useful).

The only real diagnostic we have here is

Caused by: java.lang.NullPointerException: Cannot invoke "net.sf.saxon.expr.elab.SequenceEvaluator.evaluate(net.sf.saxon.expr.XPathContext)" because "this.argumentEvaluators[i]" is null
at com.saxonica.expr.JavaExtensionFunctionCall.evaluateArguments(JavaExtensionFunctionCall.java:1017)
at com.saxonica.expr.JavaExtensionFunctionCall$JavaExtensionFunctionCallElaborator.lambda$elaborateForPull$0(JavaExtensionFunctionCall.java:1041)
at net.sf.saxon.expr.instruct.ComponentTracer$ComponentTracerElaborator.lambda$elaborateForPull$1(ComponentTracer.java:313)
at net.sf.saxon.expr.elab.EagerPullEvaluator.evaluate(EagerPullEvaluator.java:37)

which tells us that we were calling a reflexive extension function and failed to evaluate one of the arguments. The other thing we know is that it only fails under load, which means it is probably a multithreading problem.

I can also see from the stack trace that you're running using the JAXP TransformerHandler API.

One thing we need to check is that you aren't attempting to run the same TransformerHandler in more than one thread simultaneously. The TransformerHandler isn't thread-safe and you should create a new instance for each transformation (the Templates object, of course, is reusable). It would be good if you could share the Java code you use for firing off the transformation.

However, I note that it has failed in exactly the same place as your previous report at https://saxonica.plan.io/issues/6323#note-6, and this rather suggests a more specific cause. The failure occurs when you are invoking a Java extension function so we need to check that the extension function itself is thread-safe.

Looking at the exact point of failure is often a little unproductive with multithreading problems, because they are often caused by a data corruption where the code that corrupted the data is nowhere near the code that fell over because of the corruption. But I'm going to try anyway.

A point that worries me a little is that the line numbers are about 6 lines out with the actual code I'm looking at. This might be trivial (the IDE adds and removes imports when it feels like it). I've been exploring the commit history but it doesn't give any obvious clues. Two bugs have affected this module, 6166 and 6286, neither is obviously relevant.

Now looking closely at the code, it has some synchronisation, but does it have enough? The code is allocating data in the shared expression tree on first execution, and is failing because the relevant data has not been allocated, so this is an obvious danger area. It looks safe enough, but Java can play nasty tricks:

synchronized(this) { if (argumentEvaluators == null) { allocateArgumentEvaluators(); } } for (int i = 0; i < numArgs; i++) { actualArgs[i] = argumentEvaluators[i].evaluate(c); }

But that call on allocateArgumentEvaluators() shouldn't even be necessary. It should already have been called by then, on a thread-safe path. And the exception method indicates that argumentEvaluators[i[ is null, not that argumentEvaluators itself is null.

I'm now standing back. I can't see what's wrong with the code, but it shouldn't be trying to write to the expression tree on first evaluation of an expression. The elaboration design introduced in 11 was designed to avoid that; the code here isn't fully implementing that design. The expression evaluators should be part of the elaborator, not part of the expression on the expression tree. The elaborator itself is written to the expression tree, but that's in a single place that is very simple and very safe. So in the absence of a repro where I can show that a particular fix actually works, I'm going to try and change the code to behave in a cleaner way and hope that addresses the issue.

Michael Kay Saxonica

Actions #14

Updated by Michael Kay 7 months ago

  • Category set to Multithreading
  • Status changed from Closed to Resolved
  • Assignee set to Michael Kay
  • Applies to branch 12, trunk added
  • Applies to branch deleted (11)
  • Fix Committed on Branch 12, trunk added
  • Platforms Java added

I've applied a patch which I think makes the design more robust, so although we haven't got a test case to show that the problem is fixed, I'm going to mark it resolved (which means the patch will be in the next maintenance release).

Actions #15

Updated by Michael Kay 7 months ago

  • Subject changed from Nullpointer Exception to Nullpointer Exception evaluating Java extension function call; suspected multithreading problem
Actions #16

Updated by O'Neil Delpratt 5 months ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 12.5 added

Bug fix applied in the Saxon 12.5 Maintenance release.

Please register to edit this issue

Also available in: Atom PDF