org.oasis_open.docs.ns.cmis.ws._200908.CmisException: CmisException
-------------------------------------------------------------------

                 Key: AXIS2-4808
                 URL: https://issues.apache.org/jira/browse/AXIS2-4808
             Project: Axis2
          Issue Type: Bug
          Components: client-api
    Affects Versions: 1.5.1
         Environment: Windows XP version 5.1 , Eclipse Version: 3.4.0 with JDK 
1.5
            Reporter: Avijit Samal


I was testing the webservices when the following error was thrown. Actually, 
this error hides the actual error thrown by the webservice, as it fails to 
instantiate the CmisException class. The line responsible for this error is 
"java.lang.Exception ex= (java.lang.Exception)(exceptionClass.newInstance());". 
It is quite surprising as to how this line could fail, as when executed outside 
of this block, it works. This looks to be some bug in Apache, but quite 
perplexing given it challenges the core of Java. I even tried                   
      java.lang.Exception ex= new CmisException(); and it does not work. 

Error in main : org.oasis_open.docs.ns.cmis.ws._200908.CmisException: 
CmisException
org.oasis_open.docs.ns.cmis.ws._200908.CmisException: CmisException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:501)
        at java.lang.Class.newInstance0(Class.java:350)
        at java.lang.Class.newInstance(Class.java:303)
        at 
org.oasis_open.docs.ns.cmis.ws._200908.RepositoryServiceStub.getRepositories(RepositoryServiceStub.java:282)
        at GenericTestClass.testCMIS_RepositoryService(GenericTestClass.java:59)
        at GenericTestClass.main(GenericTestClass.java:33)


-- 
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]

Reply via email to