[
https://issues.apache.org/jira/browse/AXIS2-3227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554011
]
Tapan Sharma commented on AXIS2-3227:
-------------------------------------
Hi Amila,
Thanks for the quick response.
I just tried with,
distribution-SNAPSHOT-bin.zip 21-Dec-2007 16:55 18M
Still I see the problem, but for element
{oasis-200401-wss-wssecurity-secext-1.0.xsd}Security
---------
2007-12-21 11:28:41,654 ERROR
org.apache.axiom.om.impl.llom.OMSourcedElementImpl - Could not get parser from
data source for element {oasis-200401-wss-wssecurity-secext-1.0.xsd}Security
org.apache.axis2.databinding.ADBException: Property cannot be null!
at xsd.hpoa.HpoaStub$Security.serialize(HpoaStub.java:51000)
at xsd.hpoa.HpoaStub$Security$1.serialize(HpoaStub.java:50981)
at org.apache.axis2.databinding.ADBDataSource.getReader(ADBDataSource.java:110)
at
org.apache.axiom.om.impl.llom.OMSourcedElementImpl.getDirectReader(OMSourcedElementImpl.java:167)
at
org.apache.axiom.om.impl.llom.OMSourcedElementImpl.forceExpand(OMSourcedElementImpl.java:190)
at
org.apache.axiom.om.impl.llom.OMSourcedElementImpl.getChildren(OMSourcedElementImpl.java:829)
at org.apache.axis2.client.Stub.addHeader(Stub.java:202)
at org.apache.axis2.client.Stub.addHeader(Stub.java:218)
at xsd.hpoa.HpoaStub.getHpSimInfo(HpoaStub.java:30711)
at client.main(client.java:91)
---------
Is it that the code generated was not right? I had to tweak the wsdl file to
get it work with Axis2, basically the namespaces were not resolved for imports,
so I downloaded the import files in local directory,
{oasis-200401-wss-wssecurity-secext-1.0.xsd} is one of them.
However, with the generated code, I can logon to server, I can make calls that
do NOT involve security element as per wsdl.
Does it gives any clue for this error?
Many Thanks to you,
Tapan
Amila Chinthaka Suriarachchi commented on AXIS2-3227:
-----------------------------------------------------
Normally this means you have not set a property which is either minOccurs=0 or
nillble=true. But in this case you may getting this error due to an error which
is fixed in the nightly builds.
> Prefix error serializing ADB bean
> ---------------------------------
>
> Key: AXIS2-3227
> URL: https://issues.apache.org/jira/browse/AXIS2-3227
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: adb
> Environment: JDK 1.6u2, Ubuntu 7.04
> Reporter: Jose Antonio
> Attachments: Retailer.zip, test.zip
>
>
> I've created a test service with ADB and I'm developing a demo of it. I need
> to show the inputs and outputs in my program, so I'm converting the input and
> output beans to OMElements in order to obtain a string representation of some
> parts. The problem is that when I try to get the string I get the following
> error message:
> Exception in thread "main" java.lang.RuntimeException: Error obtaining parser
> from data source:the prefix ==> Already exists for namespace ==>
> http://atos.upm.org/semeasy/warehouseinvoker/schema
> at
> org.apache.axiom.om.impl.llom.OMSourcedElementImpl.getDirectReader(OMSourcedElementImpl.java:134)
> at
> org.apache.axiom.om.impl.llom.OMSourcedElementImpl.forceExpand(OMSourcedElementImpl.java:152)
> at
> org.apache.axiom.om.impl.llom.OMSourcedElementImpl.toString(OMSourcedElementImpl.java:818)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]