Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9225943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:42:18+00:00 2026-06-18T04:42:18+00:00

I am getting a NullPointerException while invoking a REST webservice hosted on Tomcat. The

  • 0

I am getting a NullPointerException while invoking a REST webservice hosted on Tomcat. The route looks something like:

    <route>
        <from uri="rabbitmq:exchange:queue"/>
    <to uri="http://localhost:8080/rest-webservice/service/execute?message=${body}" /></route>

I have written a custom type convertor which converts the object I read from the rabbitMQ into a String XML. I need to send this as a parameter to the web service.

I used the &lt;log message="message: ${body}" /&gt; after reading from the rabbitMQ and the type convertor successfully converts the object into String.

Caused by: org.apache.camel.TypeConversionException: Error during type conversion from type: java.lang.String to the required type: org.apache.commons.httpclient.methods.RequestEntity with value

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T04:42:20+00:00Added an answer on June 18, 2026 at 4:42 am

    You can’t use dynamic expressions like ${body} in the to operation in an endpoint URI. Use recipientList instead if you need to compute a URI dynamically: http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting an exception while trying to inject a webservice that's completely separate from
I keep getting 21002 'java.lang.NullPointerException' errors from Apple when I try to test my
I'm now trying to learn Oracle ADF and I'm getting a NullPointerException while running
My code looks good enough to me, but I keep getting a nullpointerexception. I'm
I keep getting Activity Monitor Job. java.lang.NullPointerException while working with Eclipse 3.6 Has anybody
I'm getting NullPointerException because I try to check some value from an object that
I'm getting the following NullPointerException while trying to use the Play FBConnect module: Caused
I am getting following error while integrating primefaces-extensions dynaform java.lang.NullPointerException at org.primefaces.extensions.component.dynaform.DynaFormRenderer.preRenderLabel(DynaFormRenderer.java:280) at org.primefaces.extensions.component.dynaform.DynaFormRenderer.encodeMarkup(DynaFormRenderer.java:99)
I am getting a NullPointerException while testing Spring Junit test configurations. The issue is
I am getting a NullPointerException while creating a TreeMap. Here is my code: public

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.