3 Replies Latest reply on Apr 21, 2011 10:33 AM by Anil Saldanha

    Getting ParsingException: couldn't create http://www.w3.org/2001/XMLSchema#time attribute based on DOM node

    Asankha Perera Newbie

      I'm trying to use the time attribute, and make use of the "RequestAttributeFactory.createTimeAttributeType(attName, issuer)" API. When I debug in my IDE, I can see that the current time had been added to the object - as I expected.

       

      However, then when I invoke "requestCtx.setRequest(requestType)", I get the following. I guess this is caused by some date/time value parsing routine, but in this case the time was not specified by me - hence I do not understand why this fails

       

      Any ideas on what I'm doing wrong here?

       

      thanks

      asankha

       

      java.lang.RuntimeException: org.jboss.security.xacml.sunxacml.ParsingException: couldn't create http://www.w3.org/2001/XMLSchema#time attribute based on DOM node

          at org.jboss.security.xacml.core.JBossRequestContext.readRequest(JBossRequestContext.java:116)

          at org.jboss.security.xacml.core.JBossRequestContext.setRequest(JBossRequestContext.java:94)

          at org.adroitlogic.ultraesb.core.helper.XACMLProcessor.createXACMLRequest(XACMLProcessor.java:183)

          at org.adroitlogic.ultraesb.core.helper.XACMLProcessor.isPermitted(XACMLProcessor.java:98)

          at org.adroitlogic.ultraesb.core.MediationImpl.isPermitted(MediationImpl.java:1125)

          at soap_proxy_inSequence.execute(soap_proxy_inSequence.java from JavaSource:12)

          at org.adroitlogic.ultraesb.core.Sequence.execute(Sequence.java:282)

          at org.adroitlogic.ultraesb.core.ProxyService.processFlow(ProxyService.java:285)

          at org.adroitlogic.ultraesb.core.ProxyService.doRealWork(ProxyService.java:266)

          at org.adroitlogic.ultraesb.core.work.SimpleQueueWorkManager.doRealWork(SimpleQueueWorkManager.java:298)

          at org.adroitlogic.ultraesb.core.work.SimpleQueueWorkManager.access$000(SimpleQueueWorkManager.java:55)

          at org.adroitlogic.ultraesb.core.work.SimpleQueueWorkManager$1.run(SimpleQueueWorkManager.java:244)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

          at java.lang.Thread.run(Thread.java:619)

      Caused by: org.jboss.security.xacml.sunxacml.ParsingException: couldn't create http://www.w3.org/2001/XMLSchema#time attribute based on DOM node

          at org.jboss.security.xacml.sunxacml.attr.BaseAttributeFactory.createValue(BaseAttributeFactory.java:202)

          at org.jboss.security.xacml.sunxacml.attr.BaseAttributeFactory.createValue(BaseAttributeFactory.java:177)

          at org.jboss.security.xacml.sunxacml.ctx.Attribute.getInstance(Attribute.java:227)

          at org.jboss.security.xacml.sunxacml.ctx.RequestCtx.parseAttributes(RequestCtx.java:371)

          at org.jboss.security.xacml.sunxacml.ctx.RequestCtx.getInstance(RequestCtx.java:344)

          at org.jboss.security.xacml.core.JBossRequestContext.readRequest(JBossRequestContext.java:111)

          ... 14 more

      Caused by: java.text.ParseException:

          at org.jboss.security.xacml.sunxacml.attr.DateTimeAttribute.strictParse(DateTimeAttribute.java:377)

          at org.jboss.security.xacml.sunxacml.attr.DateTimeAttribute.getInstance(DateTimeAttribute.java:332)

          at org.jboss.security.xacml.sunxacml.attr.TimeAttribute.getInstance(TimeAttribute.java:261)

          at org.jboss.security.xacml.sunxacml.attr.TimeAttribute.getInstance(TimeAttribute.java:241)

          at org.jboss.security.xacml.sunxacml.attr.proxy.TimeAttributeProxy.getInstance(TimeAttributeProxy.java:57)

          at org.jboss.security.xacml.sunxacml.attr.BaseAttributeFactory.createValue(BaseAttributeFactory.java:200)

          ... 19 more