karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject RE: HttpPUT is not working in karaf
Date Mon, 25 Apr 2016 11:14:58 GMT

I don't see why Karaf would block anything there. Can you share a test case with the way you
create bundle ?

Sent from my Samsung device

-------- Original message --------
From: Chandan <chandan.mysorebalakrishna@in.bosch.com> 
Date: 25/04/2016  11:39  (GMT+00:00) 
To: dev@karaf.apache.org 
Subject: HttpPUT is not working in karaf 


I have tried updating a record in eAsee SDOM using http put method.
It is not executing and continuing executing further.

i added org.apache.httpcomponents/httpclient/4.5.0 bundle as well.
Please provide me some solution.

Please see the below code : 

After the control comes to executeMethod = httpClient.executeMethod(m1); it
doesnt go further and instead it goes to the calling method.

HttpMethod m1 = new PutMethod(fetchURL.toString());

m1.addRequestHeader("Accept", "application/json");
m1.addRequestHeader("OSLC-Core-Version", "2.0");
System.out.println("m1:::::::::::::: " + m1);
executeMethod = httpClient.executeMethod(m1);
System.out.println("After exec method..." );

My manifest file import statement :

Import-Package: org.osgi.framework,org.apache.camel,

View this message in context: http://karaf.922171.n3.nabble.com/HttpPUT-is-not-working-in-karaf-tp4046346.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message