axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sobia (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AXIS2-5588) Unsupported type anyType
Date Thu, 04 Jul 2013 07:30:20 GMT
Sobia created AXIS2-5588:
----------------------------

             Summary: Unsupported type  anyType
                 Key: AXIS2-5588
                 URL: https://issues.apache.org/jira/browse/AXIS2-5588
             Project: Axis2
          Issue Type: Bug
         Environment: Windows7, Jboss, Eclipse Helios.
            Reporter: Sobia


I have created a Axis2 Service whenever I try to run this service using Junit test or using
manually created test class I get this exception.

Am using Jboss.

what I am doing wrong?

  org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unsupported type
 anyType
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at test.service.ExceptionHandlingStub.fromOM(ExceptionHandlingStub.java:1766)
at test.service.ExceptionHandlingStub.chooseRelevantException(ExceptionHandlingStub.java:190)
at test.service.ExceptionHandlingTest.testchooseRelevantException(ExceptionHandlingTest.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: Unsupported type
 anyType
at test.service.ExceptionHandlingStub$Exception$Factory.parse(ExceptionHandlingStub.java:791)
at test.service.ExceptionHandlingStub$ChooseRelevantExceptionResponse$Factory.parse(ExceptionHandlingStub.java:1651)
at test.service.ExceptionHandlingStub.fromOM(ExceptionHandlingStub.java:1760)
... 21 more
Caused by: org.apache.axis2.databinding.ADBException: Unsupported type  anyType
at test.service.ExceptionHandlingStub$ExtensionMapper.getTypeObject(ExceptionHandlingStub.java:447)
at test.service.ExceptionHandlingStub$Exception$Factory.parse(ExceptionHandlingStub.java:758)
... 23 more
my Service class is

public class ExceptionHandling {

 public Exception chooseRelevantException(int choice){
 Exception except= null;

 switch(choice){
 case 1:
 except=new NullPointerException();
 break;
 case 2:
 except= new IndexOutOfBoundsException();
 break;
 }

 System.out.println(except.toString());
 return except;

  }

 }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message