You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by rdifrango <ro...@gmail.com> on 2012/05/08 22:27:43 UTC

Failed to get thread context

Anyone ever seen this before and know the cause and/or resolution:

[ERROR] Failed to get thread context.
[ERROR] Failed to get thread context in ptReadContextFromThread.

Here are my routes:

context.addRoutes(new RouteBuilder {
   
"sftp://myid@myserver//prod/msp/logs/prtlf_logs/msp_prtlf_qps_07/msp_prtlf_qps_m00?include=epf_perf.log.*&password=myPassword"
--> "file:perf"
    
    "file:perf?delete=true" ==> {
      process(myProcessor).to("file:perf_outbox")
    }
    
    "file:perf_outbox?delete=true" ==> {
      process(insertProcessor).to("file:perf_insert")
    }
    
    "file:perf_insert?delete=true" ==> {
     
split(_.getIn().getBody(classOf[String]).split("\n")).to("jdbc:dataSource")
    }
  })

--
View this message in context: http://camel.465427.n5.nabble.com/Failed-to-get-thread-context-tp5695817.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Failed to get thread context

Posted by rdifrango <ro...@gmail.com>.
It seems as if a combination of changing the parameters on the route and
switching the JVM to a Sun one solved the issue.  Here is the new route:

val context = new DefaultCamelContext(reg)
  context.addRoutes(new RouteBuilder {
   
"sftp://myId@yashin//prod/msp/logs/prtlf_logs/msp_prtlf_qps_07/msp_prtlf_qps_m00?include=epf_perf.log.*&password=myPassword&localWorkDirectory=tmp&idempotent=true"
--> "file:perf"
    
    "file:perf?delete=true&idempotent=true&initialDelay=1000&delay=500" ==>
{
      process(myProcessor).to("file:perf_outbox")
    }
    
   
"file:perf_outbox?delete=true&idempotent=true&initialDelay=1000&delay=500"
==> {
      process(insertProcessor).to("file:perf_insert")
    }
    
   
"file:perf_insert?delete=true&idempotent=true&initialDelay=1000&delay=500"
==> {
     
split(_.getIn().getBody(classOf[String]).split("\n")).to("jdbc:dataSource")
   }
  })

--
View this message in context: http://camel.465427.n5.nabble.com/Failed-to-get-thread-context-tp5695817p5697633.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Failed to get thread context

Posted by rdifrango <ro...@gmail.com>.
The interesting thing, is that I am running the logger at INFO level but
nothing more than this message comes.  I'm running it in DEBUG now to see if
I can get more information for you.  One other variable is that I'm using
the JRockit JVM so I switch to the Sun version to see if that is part of the
problem.

--
View this message in context: http://camel.465427.n5.nabble.com/Failed-to-get-thread-context-tp5695817p5697472.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Failed to get thread context

Posted by Claus Ibsen <cl...@gmail.com>.
On Tue, May 8, 2012 at 10:27 PM, rdifrango <ro...@gmail.com> wrote:
> Anyone ever seen this before and know the cause and/or resolution:
>
> [ERROR] Failed to get thread context.
> [ERROR] Failed to get thread context in ptReadContextFromThread.
>

No. Its hard to know what it is, when you dont report more details.
And have you googled and digged into what it can be?
You are using Scala so that's also a fact to consider causing this.


> Here are my routes:
>
> context.addRoutes(new RouteBuilder {
>
> "sftp://myid@myserver//prod/msp/logs/prtlf_logs/msp_prtlf_qps_07/msp_prtlf_qps_m00?include=epf_perf.log.*&password=myPassword"
> --> "file:perf"
>
>    "file:perf?delete=true" ==> {
>      process(myProcessor).to("file:perf_outbox")
>    }
>
>    "file:perf_outbox?delete=true" ==> {
>      process(insertProcessor).to("file:perf_insert")
>    }
>
>    "file:perf_insert?delete=true" ==> {
>
> split(_.getIn().getBody(classOf[String]).split("\n")).to("jdbc:dataSource")
>    }
>  })
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Failed-to-get-thread-context-tp5695817.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/