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

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


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 

Hello,

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.setRequestHeader("Content-Type","application/json");
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,
org.apache.camel.impl,org.apache.camel.builder,org.apache.camel.builder.xml,
org.apache.camel.model,org.apache.camel.component,org.apache.camel.component.http,org.apache.camel.core.osgi,org.apache.camel.spi,org.apache.xerces.jaxp,org.apache.xerces.parsers,org.xml.sax,org.xml.sax.helpers,org.apache.xerces.impl.dv.dtd,org.apache.xerces.impl.dv.xs,org.apache.commons.httpclient,org.apache.commons.httpclient.auth.w3c.dom,javax.xml.parsers



--
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.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message