Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different instance of TextImpl causes XmlAnyTypeImpl to be returned instead of response object #12

Open
ghost opened this issue Mar 16, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 16, 2017

In StandardXRoadConsumerMessageExtractor extractData method kehaNode is checked for instanceof com.sun.xml.messaging.saaj.soap.impl.TextImpl

if (kehaNode instanceof TextImpl) {
    kehaNode = kehaNodes.item(1);
}

I am getting an instance of com.sun.xml.internal.messaging.saaj.soap.impl.TextImpl.
So instead of response object XRoadMessage<XmlAnyTypeImpl> is returned.
That causes an error in databaseImpl:
java.lang.ClassCastException: org.apache.xmlbeans.impl.values.XmlAnyTypeImpl cannot be cast to com.nortal.jroad.client....

Maybe kehaNode should be checked for an instance of com.sun.xml.internal.messaging.saaj.soap.impl.TextImpl:

if (kehaNode instanceof TextImpl || kehaNode instanceof com.sun.xml.internal.messaging.saaj.soap.impl.TextImpl) {
    kehaNode = kehaNodes.item(1);
}
priitliivak pushed a commit that referenced this issue May 7, 2017
* migrate ljvis to version 6

* Use correct Instance for check, fix issue #12

* Use correct Instance for check, fix issue #12

* Use correct Instance for check, fix issue #12

* Add jvis xroad client

* emta-v6 new wsdl
aanikinhotee pushed a commit to aanikinhotee/j-road that referenced this issue Oct 11, 2017
aanikinhotee pushed a commit to aanikinhotee/j-road that referenced this issue Oct 11, 2017
aanikinhotee pushed a commit to aanikinhotee/j-road that referenced this issue Oct 12, 2017
aanikinhotee pushed a commit to aanikinhotee/j-road that referenced this issue Oct 12, 2017
aanikinhotee pushed a commit to aanikinhotee/j-road that referenced this issue Oct 12, 2017
priitliivak pushed a commit that referenced this issue Oct 12, 2017
* jroad issue #12 fix and version

* junit test for StandardXRoadConsumerMessageExtractor, which fixes jroad issue #12

* added more unit tests for StandardXRoadConsumerMessageExtractor, which fixes jroad issue #12

* refactoring StandardXRoadConsumerMessageExtractorTest

* changed version back to 4.2.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants