NoSuchMethodError in MapUtils.getBooleanValue

View: New views
6 Messages — Rating Filter:   Alert me  

NoSuchMethodError in MapUtils.getBooleanValue

by Erickson, Loren :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all.  I am working on a mule server that exposes a JAX-WS web service
object via CXF.  The server boots up okay, but when I try to access the
WSDL for the service in a browser, I get the following error on the
server.   Config file is below.  Any ideas why this might be happening?
I wonder if it might have to do with the nature of the return object
from the service.  It's a complex type with multiple complex
nested-types, but there are no types that would not be readily
serializable in a WS-I compliant way.  Are there any inherent
limitations in CXF that would become a problem in this scenario?

ERROR MESSAGE
java.lang.NoSuchMethodError:
org/mule/util/MapUtils.getBooleanValue(Ljava/util/Map;Ljava/lang/Object;
Z)Z

ERROR DETAIL
[6/17/08 16:32:55:309 MDT] 00000024 HttpConnector E
org.mule.transport.AbstractConnector handleWorkException Work caused
exception on 'workCompleted'. Work being executed was:
HttpMessageReceiver{this=269e269e,
receiverKey=http://localhost:65081/services/Login,
endpoint=http://localhost:65081/services/Login}
[6/17/08 16:33:02:778 MDT] 00000024 SystemErr     R Exception in thread
"connector.http.0.receiver.1" org.mule.api.MuleRuntimeException:
Connector that caused exception is: connector.http.0
[6/17/08 16:33:02:778 MDT] 00000024 SystemErr     R at
org.mule.transport.AbstractConnector.handleWorkException(AbstractConnect
or.java:1754)
[6/17/08 16:33:02:778 MDT] 00000024 SystemErr     R at
org.mule.transport.AbstractConnector.workCompleted(AbstractConnector.jav
a:1723)
[6/17/08 16:33:02:778 MDT] 00000024 SystemErr     R at
org.mule.work.WorkerContext.run(WorkerContext.java:367)
[6/17/08 16:33:02:778 MDT] 00000024 SystemErr     R at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWor
ker(ThreadPoolExecutor.java:1061)
[6/17/08 16:33:02:778 MDT] 00000024 SystemErr     R at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
.run(ThreadPoolExecutor.java:575)
[6/17/08 16:33:02:793 MDT] 00000024 SystemErr     R at
java.lang.Thread.run(Thread.java:797)
[6/17/08 16:33:02:793 MDT] 00000024 SystemErr     R Caused by:
java.lang.NoSuchMethodError:
org/mule/util/MapUtils.getBooleanValue(Ljava/util/Map;Ljava/lang/Object;
Z)Z
        at
org.mule.transport.http.HttpMessageReceiver$HttpWorker.<init>(HttpMessag
eReceiver.java:140)
        at
org.mule.transport.http.HttpMessageReceiver.createWork(HttpMessageReceiv
er.java:73)
        at
org.mule.transport.tcp.TcpMessageReceiver.run(TcpMessageReceiver.java:16
4)
        at org.mule.work.WorkerContext.run(WorkerContext.java:310)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWor
ker(ThreadPoolExecutor.java:1061)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
.run(ThreadPoolExecutor.java:575)
        at java.lang.Thread.run(Thread.java:797)

CONFIG FILE

<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesource.org/schema/mule/core/2.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:spring="http://www.springframework.org/schema/beans"
        xmlns:soap="http://www.mulesource.org/schema/mule/soap/2.0"
        xmlns:cxf="http://www.mulesource.org/schema/mule/cxf/2.0"
        xsi:schemaLocation="
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       http://www.mulesource.org/schema/mule/core/2.0
http://www.mulesource.org/schema/mule/core/2.0/mule.xsd
       http://www.mulesource.org/schema/mule/soap/2.0
http://www.mulesource.org/schema/mule/soap/2.0/mule-soap.xsd
       http://www.mulesource.org/schema/mule/cxf/2.0
http://www.mulesource.org/schema/mule/cxf/2.0/mule-cxf.xsd">

        <description>
                To invoke the Login service hit the following URL -
                http://localhost:65081/services/Login

                To view the WSDL for the Login service go to -
                http://localhost:65081/services/Login?wsdl
        </description>

        <model name="MyModel">
                <service name="Login">
                        <inbound>
                                <cxf:inbound-endpoint
       
address="http://localhost:65081/services/Login"
       
serviceClass="com.mycompany.service.LoginService" />
                        </inbound>
                        <echo-component />
                </service>
        </model>

</mule>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: NoSuchMethodError in MapUtils.getBooleanValue

by Andrew Perepelytsya :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There's probably a wrong commons-lang jar in your classpath. How do you launch Mule?

Andrew

RE: NoSuchMethodError in MapUtils.getBooleanValue

by Erickson, Loren :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I am using a context listener and context param in the web.xml as follows.

 

      <context-param>

            <description>Mule Configuration</description>

            <param-name>org.mule.config</param-name>

            <param-value>

                  /WEB-INF/conf/mule/mule-config.xml

            </param-value>

      </context-param>

      <listener>

            <description></description>

            <display-name>Mule Config Context Listener</display-name>

            <listener-class>

                  org.mule.config.builders.MuleXmlBuilderContextListener

            </listener-class>

      </listener>

 

The server is WAS 6.1.  I have to say I’ve had a devil of a time trying to resolve classpath issues between Mule and the WAS runtime.  Had to create a special classloader for wsdl4j-1.6.1.jar, etc.  Is there a comprehensive guide for configuring mule for WAS 6.1 somewhere?    

 

 

From: Andrew Perepelytsya [mailto:aperepel@...]
Sent: Tuesday, June 17, 2008 4:58 PM
To: user@...
Subject: Re: [mule-user] NoSuchMethodError in MapUtils.getBooleanValue

 

There's probably a wrong commons-lang jar in your classpath. How do you launch Mule?

Andrew


Re: NoSuchMethodError in MapUtils.getBooleanValue

by Andrew Perepelytsya :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In general switching webapp's classloader to CHILD_FIRST should solve these issues. I'm not really sure there's any guide. But given that IBM produced a 20 page document for resolving commons-logging classloader issues in WAS, the effort seems daunting ;)

Andrew

RE: NoSuchMethodError in MapUtils.getBooleanValue

by Erickson, Loren :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Nice.  Thanks for the info.  I don’t recall seeing a CHILD_FIRST option for the web apps classloader, but I’ll look again.  I think that’s what the custom classloader is for.  You have to specify a loading policy when you create one.  Maybe it’s there.  Any other JARs I should consider including my custom classloader?  All of them?  J

 

From: Andrew Perepelytsya [mailto:aperepel@...]
Sent: Tuesday, June 17, 2008 5:12 PM
To: user@...
Subject: Re: [mule-user] NoSuchMethodError in MapUtils.getBooleanValue

 

In general switching webapp's classloader to CHILD_FIRST should solve these issues. I'm not really sure there's any guide. But given that IBM produced a 20 page document for resolving commons-logging classloader issues in WAS, the effort seems daunting ;)

Andrew


Re: NoSuchMethodError in MapUtils.getBooleanValue

by Andrew Perepelytsya :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The name can be different in WAS, I don't remember, but the naming should be similar. It just tells to load jars from WEB-INF/lib before others, thus giving preference to them. It's a standard deployment option in any app server.

Andrew

On Tue, Jun 17, 2008 at 7:17 PM, Erickson, Loren <Loren.Erickson@...> wrote:

Nice.  Thanks for the info.  I don't recall seeing a CHILD_FIRST option for the web apps classloader, but I'll look again.  I think that's what the custom classloader is for.  You have to specify a loading policy when you create one.  Maybe it's there.  Any other JARs I should consider including my custom classloader?  All of them?  J