Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4808

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.5.1
    • None
    • client-api
    • None
    • Windows XP version 5.1 , Eclipse Version: 3.4.0 with JDK 1.5

    Description

      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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            asamal Avijit Samal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: