axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Michael.Da...@servicecanada.gc.ca>
Subject Can't run axiom client - error in ServiceClient constructor
Date Wed, 30 May 2007 20:08:41 GMT
Hi,

I'm trying to call a web service using the axiom apis. When I try to execute this line:

ServiceClient sender = new ServiceClient();

I get this error:
java.lang.IllegalStateException: No valid ObjectCreator found.
        at org.apache.axiom.om.util.StAXUtils$Pool.<init>(StAXUtils.java:41)
        at org.apache.axiom.om.util.StAXUtils.<clinit>(StAXUtils.java:62)

I've listed the whole stack trace below. Could it be that I'm missing a library?

Here's the list of libraries I'm using:
axiom-api-1.2.4.jar
axiom-dom-1.2.4.jar
axiom-impl-1.2.4.jar
axis2-jibx-1.2.jar
axis2-kernel-1.2.jar
axis2-soapmonitor-1.2.jar
axis2-spring-1.2.jar
axis2-tools-1.2.jar
commons-httpclient-3.0.1.ja
commons-logging-1.1.jar
jibx-bind-1.1.4.jar
jibx-run-1.1.4.jar
log4j-1.2.12.jar
neethi-2.0.1.jar
servletapi-2.3.jar
stax-api-1.0.1.jar
stax-utils-20060915.jar
xml-apis-1.3.03.jar
XmlSchema-1.3.1.jar

and here's the stack trace:

Exception in thread "main" java.lang.ExceptionInInitializerError
        at org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:86)
        at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:58)
        at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:690)
        at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:109)
        at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:61)
        at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180)
        at org.apache.axis2.client.ServiceClient.initializeTransports(ServiceClient.java:189)
        at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:118)
        at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:114)
        at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:207)
        at ca.gc.publiservice.sso.client.SSOImpl.authenticate(SSOImpl.java:57)
        at ca.gc.publiservice.sso.client.SSOImpl.main(SSOImpl.java:75)
Caused by: java.lang.IllegalStateException: No valid ObjectCreator found.
        at org.apache.axiom.om.util.StAXUtils$Pool.<init>(StAXUtils.java:41)
        at org.apache.axiom.om.util.StAXUtils.<clinit>(StAXUtils.java:62)
        ... 12 more

The code throwing the exception is here:

       Pool(ObjectCreator[] creators) {
            ObjectCreator oc = null;
            for (int i = 0; i < creators.length; i++) {
                try {
                    creators[i].newObject();
                    oc = creators[i];
                    break;
                } catch (Throwable t) {
                    // Ignore me
                }
            }
            if (oc == null) {
                throw new IllegalStateException("No valid ObjectCreator found.");
            }
            objectCreator = oc;
        }

Thanks very much,

Michael Davis

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


Mime
View raw message