RE: xmljson deprecated in camel 3.x

2021-08-17 Thread Daniel Langevin
Thank's i will check that component !  



-Message d'origine-
De : Andrea Cosentino  
Envoyé : 17 août 2021 14:29
À : users@camel.apache.org
Objet : Re: xmljson deprecated in camel 3.x

In the end we were basing the component on a lib with no future and we decided 
to remove this approach. You could have a look at camel-xj too, as alternative

Il mar 17 ago 2021, 20:26 Daniel Langevin  ha 
scritto:

> Thank's
>
> -Message d'origine-
> De : Andrea Cosentino  Envoyé : 17 août 2021 14:23 
> À : users@camel.apache.org Objet : Re: xmljson deprecated in camel 3.x
>
> It's always json-lib
>
> Il mar 17 ago 2021, 20:12 Daniel Langevin 
>  ha scritto:
>
> > HI Andrea,
> >
> > I thought the vulnerability had been fixed with version 2.24 and UP
> >
> > Can I know the library, so as not to use it for future project?
> >
> >
> > Thank's
> >
> >
> > Daniel
> >
> >
> >
> >
> > -Message d'origine-
> > De : Andrea Cosentino  Envoyé : 17 août 2021 
> > 14:00 À : users@camel.apache.org Objet : Re: xmljson deprecated in 
> > camel 3.x
> >
> > Hello,
> >
> > It has been removed for a cve related to a library used in the component.
> >
> > This is the reason.
> >
> >
> > Il mar 17 ago 2021, 19:58 Daniel Langevin 
> >  ha scritto:
> >
> > > Hi,
> > >
> > > I'm trying to convert an application from camel 2.17 to camel 
> > > 3.11, and I have a concerned with xmljson.
> > >
> > > I don't found any component or data format who directly convert 
> > > from json to XML. In Camel 3.11
> > >
> > >
> > > The much closer I get is when I  take my input  in JSON , convert 
> > > to java.util.hashmap with Jackson an then convert in XML with 
> > > xstream But the XML result is very complicated to exploit
> > >
> > > 
> > >  > > unmarshalTypeName="java.util.HashMap"/>
> > > 
> > > ... body is a JSON string
> > >   
> > > 
> > >
> > >
> > > Did I missed something! ???
> > >
> > >
> > > I'm using CAMEL-3.11 in Karaf-4.2.11 with blueprint.
> > >
> > > Regards!
> > >
> > >
> > > Daniel Langevin
> > > Direction de l'assistance et des technologie Direction des 
> > > ressources informationnelles et matérielles
> > >
> > >
> >
>


Camel-ldap xtream issue

2021-08-17 Thread Daniel Langevin
Hi,

I try to modify an application who retrieve LDAP search,
Convert result in XML and generate HTML with camel-saxon.

CAMEL 3.11.1 Karaf 4.2.10


But facing a problem.

I Add a variable in my Search, (networkAddress) this new variable contains 
String encoded in a special format and also contains null value 

When I use xsteam to format the body who contains 
ArrayList 
I received an error.

...

   ERROR RECEIVE HERE

...

 Debugging information 
message : Failed calling method
cause-exception : com.thoughtworks.xstream.io.StreamException
cause-message   :
method  : com.sun.jndi.ldap.LdapAttribute.writeObject()
---
at 
com.thoughtworks.xstream.core.util.SerializationMembers.callWriteObject(SerializationMembers.java:158)
 ~[!/:?]
at 
com.thoughtworks.xstream.converters.reflection.SerializableConverter.doMarshal(SerializableConverter.java:257)
 ~[!/:?]
at 
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:90)
 ~[!/:?]
at 
com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
 ~[!/:?]
at 
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
 ~[!/:?]
at 
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
 ~[!/:?]
at 
com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:87)
 ~[!/:?]
at 
com.thoughtworks.xstream.converters.reflection.SerializableConverter$1.writeToStream(SerializableConverter.java:139)
 ~[!/:?]
at 
com.thoughtworks.xstream.core.util.CustomObjectOutputStream.writeObjectOverride(CustomObjectOutputStream.java:87)
 ~[!/:?]
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:344) 
~[?:1.8.0_121]
at 
javax.naming.directory.BasicAttributes.writeObject(BasicAttributes.java:293) 
~[?:1.8.0_121]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:1.8.0_121]
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:1.8.0_121]
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.8.0_121]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_121]
at 
com.thoughtworks.xstream.core.util.SerializationMembers.callWriteObject(SerializationMembers.java:154)
 ~[!/:?]
... 73 more
Caused by: com.thoughtworks.xstream.io.StreamException:
at 
com.thoughtworks.xstream.io.xml.StaxWriter.setValue(StaxWriter.java:160) ~[!/:?]
at 
com.thoughtworks.xstream.io.WriterWrapper.setValue(WriterWrapper.java:45) 
~[!/:?]
at 
com.thoughtworks.xstream.converters.SingleValueConverterWrapper.marshal(SingleValueConverterWrapper.java:45)
 ~[!/:?]
at 
com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:50)
 ~[!/:?]
at 
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
 ~[!/:?]
at 
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
 ~[!/:?]
at 
com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:87)
 ~[!/:?]
at 
com.thoughtworks.xstream.converters.reflection.SerializableConverter$1.writeToStream(SerializableConverter.java:139)
 ~[!/:?]
at 
com.thoughtworks.xstream.core.util.CustomObjectOutputStream.writeObjectOverride(CustomObjectOutputStream.java:87)
 ~[!/:?]
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:344) 
~[?:1.8.0_121]
at 
javax.naming.directory.BasicAttribute.writeObject(BasicAttribute.java:507) 
~[?:1.8.0_121]
at sun.reflect.GeneratedMethodAccessor124.invoke(Unknown Source) ~[?:?]
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.8.0_121]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_121]
at 
com.thoughtworks.xstream.core.util.SerializationMembers.callWriteObject(SerializationMembers.java:154)
 ~[!/:?]
at 
com.thoughtworks.xstream.converters.reflection.SerializableConverter.doMarshal(SerializableConverter.java:257)
 ~[!/:?]
at 
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:90)
 ~[!/:?]
at 
com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
 ~[!/:?]
at 
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
 ~[!/:?]
at 
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
 ~[!/:?]
at 
com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:87)
 

Re: xmljson deprecated in camel 3.x

2021-08-17 Thread Andrea Cosentino
In the end we were basing the component on a lib with no future and we
decided to remove this approach. You could have a look at camel-xj too, as
alternative

Il mar 17 ago 2021, 20:26 Daniel Langevin 
ha scritto:

> Thank's
>
> -Message d'origine-
> De : Andrea Cosentino 
> Envoyé : 17 août 2021 14:23
> À : users@camel.apache.org
> Objet : Re: xmljson deprecated in camel 3.x
>
> It's always json-lib
>
> Il mar 17 ago 2021, 20:12 Daniel Langevin 
> ha scritto:
>
> > HI Andrea,
> >
> > I thought the vulnerability had been fixed with version 2.24 and UP
> >
> > Can I know the library, so as not to use it for future project?
> >
> >
> > Thank's
> >
> >
> > Daniel
> >
> >
> >
> >
> > -Message d'origine-
> > De : Andrea Cosentino  Envoyé : 17 août 2021 14:00
> > À : users@camel.apache.org Objet : Re: xmljson deprecated in camel 3.x
> >
> > Hello,
> >
> > It has been removed for a cve related to a library used in the component.
> >
> > This is the reason.
> >
> >
> > Il mar 17 ago 2021, 19:58 Daniel Langevin
> >  ha scritto:
> >
> > > Hi,
> > >
> > > I'm trying to convert an application from camel 2.17 to camel 3.11,
> > > and I have a concerned with xmljson.
> > >
> > > I don't found any component or data format who directly convert from
> > > json to XML. In Camel 3.11
> > >
> > >
> > > The much closer I get is when I  take my input  in JSON , convert to
> > > java.util.hashmap with Jackson an then convert in XML with xstream
> > > But the XML result is very complicated to exploit
> > >
> > > 
> > >  > > unmarshalTypeName="java.util.HashMap"/>
> > > 
> > > ... body is a JSON string
> > >  
> > > 
> > >
> > >
> > > Did I missed something! ???
> > >
> > >
> > > I'm using CAMEL-3.11 in Karaf-4.2.11 with blueprint.
> > >
> > > Regards!
> > >
> > >
> > > Daniel Langevin
> > > Direction de l'assistance et des technologie Direction des
> > > ressources informationnelles et matérielles
> > >
> > >
> >
>


RE: xmljson deprecated in camel 3.x

2021-08-17 Thread Daniel Langevin
Thank's

-Message d'origine-
De : Andrea Cosentino  
Envoyé : 17 août 2021 14:23
À : users@camel.apache.org
Objet : Re: xmljson deprecated in camel 3.x

It's always json-lib

Il mar 17 ago 2021, 20:12 Daniel Langevin  ha 
scritto:

> HI Andrea,
>
> I thought the vulnerability had been fixed with version 2.24 and UP
>
> Can I know the library, so as not to use it for future project?
>
>
> Thank's
>
>
> Daniel
>
>
>
>
> -Message d'origine-
> De : Andrea Cosentino  Envoyé : 17 août 2021 14:00 
> À : users@camel.apache.org Objet : Re: xmljson deprecated in camel 3.x
>
> Hello,
>
> It has been removed for a cve related to a library used in the component.
>
> This is the reason.
>
>
> Il mar 17 ago 2021, 19:58 Daniel Langevin 
>  ha scritto:
>
> > Hi,
> >
> > I'm trying to convert an application from camel 2.17 to camel 3.11, 
> > and I have a concerned with xmljson.
> >
> > I don't found any component or data format who directly convert from 
> > json to XML. In Camel 3.11
> >
> >
> > The much closer I get is when I  take my input  in JSON , convert to 
> > java.util.hashmap with Jackson an then convert in XML with xstream 
> > But the XML result is very complicated to exploit
> >
> > 
> >  > unmarshalTypeName="java.util.HashMap"/>
> > 
> > ... body is a JSON string
> >   
> > 
> >
> >
> > Did I missed something! ???
> >
> >
> > I'm using CAMEL-3.11 in Karaf-4.2.11 with blueprint.
> >
> > Regards!
> >
> >
> > Daniel Langevin
> > Direction de l'assistance et des technologie Direction des 
> > ressources informationnelles et matérielles
> >
> >
>


Re: xmljson deprecated in camel 3.x

2021-08-17 Thread Andrea Cosentino
It's always json-lib

Il mar 17 ago 2021, 20:12 Daniel Langevin 
ha scritto:

> HI Andrea,
>
> I thought the vulnerability had been fixed with version 2.24 and UP
>
> Can I know the library, so as not to use it for future project?
>
>
> Thank's
>
>
> Daniel
>
>
>
>
> -Message d'origine-
> De : Andrea Cosentino 
> Envoyé : 17 août 2021 14:00
> À : users@camel.apache.org
> Objet : Re: xmljson deprecated in camel 3.x
>
> Hello,
>
> It has been removed for a cve related to a library used in the component.
>
> This is the reason.
>
>
> Il mar 17 ago 2021, 19:58 Daniel Langevin 
> ha scritto:
>
> > Hi,
> >
> > I'm trying to convert an application from camel 2.17 to camel 3.11,
> > and I have a concerned with xmljson.
> >
> > I don't found any component or data format who directly convert from
> > json to XML. In Camel 3.11
> >
> >
> > The much closer I get is when I  take my input  in JSON , convert to
> > java.util.hashmap with Jackson an then convert in XML with xstream But
> > the XML result is very complicated to exploit
> >
> > 
> >  > unmarshalTypeName="java.util.HashMap"/>
> > 
> > ... body is a JSON string
> >  
> > 
> >
> >
> > Did I missed something! ???
> >
> >
> > I'm using CAMEL-3.11 in Karaf-4.2.11 with blueprint.
> >
> > Regards!
> >
> >
> > Daniel Langevin
> > Direction de l'assistance et des technologie Direction des ressources
> > informationnelles et matérielles
> >
> >
>


RE: xmljson deprecated in camel 3.x

2021-08-17 Thread Daniel Langevin
HI Andrea,

I thought the vulnerability had been fixed with version 2.24 and UP

Can I know the library, so as not to use it for future project?


Thank's


Daniel




-Message d'origine-
De : Andrea Cosentino  
Envoyé : 17 août 2021 14:00
À : users@camel.apache.org
Objet : Re: xmljson deprecated in camel 3.x

Hello,

It has been removed for a cve related to a library used in the component.

This is the reason.


Il mar 17 ago 2021, 19:58 Daniel Langevin  ha 
scritto:

> Hi,
>
> I'm trying to convert an application from camel 2.17 to camel 3.11, 
> and I have a concerned with xmljson.
>
> I don't found any component or data format who directly convert from 
> json to XML. In Camel 3.11
>
>
> The much closer I get is when I  take my input  in JSON , convert to 
> java.util.hashmap with Jackson an then convert in XML with xstream But 
> the XML result is very complicated to exploit
>
> 
>  unmarshalTypeName="java.util.HashMap"/>
> 
> ... body is a JSON string
>   
> 
>
>
> Did I missed something! ???
>
>
> I'm using CAMEL-3.11 in Karaf-4.2.11 with blueprint.
>
> Regards!
>
>
> Daniel Langevin
> Direction de l'assistance et des technologie Direction des ressources 
> informationnelles et matérielles
>
>


Re: xmljson deprecated in camel 3.x

2021-08-17 Thread Andrea Cosentino
Hello,

It has been removed for a cve related to a library used in the component.

This is the reason.


Il mar 17 ago 2021, 19:58 Daniel Langevin 
ha scritto:

> Hi,
>
> I'm trying to convert an application from camel 2.17 to camel 3.11, and I
> have a concerned with xmljson.
>
> I don't found any component or data format who directly convert from json
> to XML. In Camel 3.11
>
>
> The much closer I get is when I  take my input  in JSON , convert to
> java.util.hashmap with Jackson an then convert in XML with xstream
> But the XML result is very complicated to exploit
>
> 
>  unmarshalTypeName="java.util.HashMap"/>
> 
> ... body is a JSON string
>  
> 
>
>
> Did I missed something! ???
>
>
> I'm using CAMEL-3.11 in Karaf-4.2.11 with blueprint.
>
> Regards!
>
>
> Daniel Langevin
> Direction de l'assistance et des technologie
> Direction des ressources informationnelles et matérielles
>
>


xmljson deprecated in camel 3.x

2021-08-17 Thread Daniel Langevin
Hi,

I'm trying to convert an application from camel 2.17 to camel 3.11, and I have 
a concerned with xmljson.

I don't found any component or data format who directly convert from json to 
XML. In Camel 3.11


The much closer I get is when I  take my input  in JSON , convert to  
java.util.hashmap with Jackson an then convert in XML with xstream
But the XML result is very complicated to exploit




... body is a JSON string
 



Did I missed something! ???


I'm using CAMEL-3.11 in Karaf-4.2.11 with blueprint.

Regards!


Daniel Langevin
Direction de l'assistance et des technologie
Direction des ressources informationnelles et matérielles



Re: Issue with camel-rest producer

2021-08-17 Thread Bob Jolliffe
Thanks Claus.  I will have to recreate.  I swapped out undertow to just use 
camel-http and my problem was solved.

On 2021/08/13 04:36:00, Claus Ibsen  wrote: 
> Hi
> 
> Can you create a JIRA ticket and if possible put together a sample
> project that reproduces this with spring boot, and put somewhere like
> on github or attach the jira as a .zip file.
> That helps us to work on this quicker.
> 
> 
> On Thu, Aug 12, 2021 at 9:48 PM Bob Jolliffe  wrote:
> >
> > I am having the same problem that Tim has had.  I see there is no reply to 
> > his message so let me try and nudge it here.
> >
> > In my case the version is 3.11.1 and Spring Boot 2.5.3.  I am trying 
> > everything but ,like Tim, I cant get past "Cannot find RestProducerFactory 
> > in Registry or as a Component to use".  I have
> >
> > 
> >   org.springframework.boot
> >   spring-boot-starter-undertow
> > 
> >
> > Is there something explicit I need to do to register the "undertow" 
> > RestProducerFactory bean?
> >
> > Regards
> > Bob
> >
> > On 2020/12/16 21:00:45, Tim Adams  
> > wrote:
> > > I have a camel-rest consumer working properly, but I am not able to make 
> > > a rest request from a route as per the examples in 
> > > https://camel.apache.org/components/latest/rest-component.html.
> > >
> > > I am using Spring Boot 2.3.5.RELEASE and Camel version 3.5.0.
> > >
> > > The exception message is "Cannot find RestProducerFactory in Registry or 
> > > as a Component to use". Everything I can find indicates that any one of 
> > > camel-http, camel-netty-http or camel-undertow should provide everything 
> > > needed for making rest requests from Camel routes, but I have tried all 
> > > three and none of them resolves the error.
> > >
> > > The route I am using is:
> > >
> > > from("direct:Load")
> > > .routeId("Load")
> > > .log(LoggingLevel.DEBUG, "${routeId}: ${id}")
> > > .to("rest:get:/load?host=http://localhost:8080/backend;)
> > >
> > > Entering "localhost:8080/backend/load" in a web browser returns the data 
> > > properly.
> > >
> > > I am attaching the stack trace.
> > >
> > > Thanks,
> > > Tim
> > >
> 
> 
> 
> -- 
> Claus Ibsen
> -
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>