If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Error when trying to use EMail java example: impossible to cast ...

Started by Sunchaser, 23 Feb 2011 09:13:24 AM

Previous topic - Next topic

Sunchaser

Dear all,

I have a problem when I try to work based on the example of "EMail report" (java).
When I try to run the project, I have the error:
Quote
Exception in thread "main" java.lang.ClassCastException: com.cognos.developer.schemas.bibus._3.ContentManagerServiceStub cannot be cast to org.apache.axis.client.Stub
It is located in the CRNConnect.java file, part of code related:

// Retrieve the biBusHeader SOAP:Header that contains
// the logon information.
bibus =
(BiBusHeader) ((Stub)cmService).getHeaderObject("", "biBusHeader");

Cast problem so for the "cmService" and Stub type...

It is something I have absolutely not modified, so I don't understand really what is happening.

Note: I don't have a good experience in Java, unfortunaltelly.

Thanks in advance for your support.
Best regards,
Vinc.

Sunchaser

Hi,

Ok, it seems that it was only a problem of "ressource" and the way it was organized.
I just had the redo the "Build Path" and so on, and now everything is ok.

@+
vinc.