[xstream-user] Re: Parsing HTML special characters

2011-12-10 Thread Jörg Schaible
Korrignu wrote: In fact my problem is this one : http://jira.codehaus.org/browse/XSTR-334 No. That issue is about providing directly an URL as XML source to the underlaying XML parser to allow such a parser to resolve external DTDs. This is available since XStream 1.4. ... my symbols

[xstream-user] Re: Re: Parsing HTML special characters

2011-12-10 Thread Jörg Schaible
Korrignu wrote: On 12/10/2011 02:20 PM, Jörg Schaible wrote: Korrignu wrote: In fact my problem is this one : http://jira.codehaus.org/browse/XSTR-334 No. That issue is about providing directly an URL as XML source to the underlaying XML parser to allow such a parser to resolve external

[xstream-user] Re: Question for use XStream

2011-12-19 Thread Jörg Schaible
Hi, matsuoka.masa...@toshiba-sol.co.jp wrote: Hello, Our company develops information systems for our customers and some systems use open source softwares. We will use XStream follow the XStream license. If there are some problems, please reply me within two weeks from XStream developers.

[xstream-user] Re: 1.4.2, broken compatibility with 1.2.1

2012-01-07 Thread Jörg Schaible
Hi Boris, Boris Partensky wrote: Hello, I just looked into upgrading from 1.2.1 to the latest. The change below seems to have broken compatibility with the old client as empty collections are now aliased. What is the best way to proceed here? Upgrade to 1.4.1 and call it done or is there a

[xstream-user] Re: Xstream - customizing performance to processAnnotations

2012-02-06 Thread Jörg Schaible
Hi Jairo, Jairo de Almeida wrote: Hi using this source to test a converter http://pastebin.com/HU8JessQ Im have the log information about this test 02-05 20:47:14.375: I/TEST(421): Convertendo de list para xml levou : 59.97 segundos 02-05 20:51:37.297: I/TEST(421): Convertendo de xml para

[xstream-user] Re: newbie question on adding xmlns to root

2012-02-08 Thread Jörg Schaible
Hi Andy, m...@andyjarrett.co.uk wrote: Hi I'm a noob to xstream and stuck on adding some XMLNS details. I am using Writer + ObjectOutputStream to create a rather large XML file. I've got the hang of most of it but want to add some xmlns details to the root node/element. My code is

[xstream-user] Re: invalid reference

2012-02-14 Thread Jörg Schaible
Hi Michael, Michael Mogley wrote: The following xml generates an invalid reference error when deserializing using XStream 1.4.2: list typeA/ typeA/ typeA/ typeB items typeA reference=”../../../typeA[2]”/ /items /typeB /list

[xstream-user] Re: Re: Lists of xs:choice elements

2012-02-14 Thread Jörg Schaible
Hi Xandrios, Xandrios wrote: Hi Jörg, thanks so much for your response. I was hoping to avoid writing custom converters but I'm starting to think I will need to indeed. Your example gave me another idea though: If I can read all elements (volvo, chevy, policeCar and Officers) into one

[xstream-user] Re: Plans to allow XStreamImplicit on java.lang.Iterable

2012-02-14 Thread Jörg Schaible
Hi Graham, Graham Allan wrote: Hi all, Hopefully this hasn't been covered before, the closest reference I can find to this area is an unrelated JIRA bug[1]. We are currently using @XStreamImplicit for fields which are Collection types, which seems to only work with arrays,

[xstream-user] Re: Re: invalid reference

2012-02-15 Thread Jörg Schaible
Hi Michael, Michael Mogley wrote: Hi Jörg, Ok, I wrote a small self-contained class to illustrate the issue: import java.io.EOFException; import java.io.ObjectInputStream; import java.util.LinkedList; import java.util.List; import org.apache.commons.io.IOUtils; import

[xstream-user] Re: Problem deserializing calendar object

2012-02-15 Thread Jörg Schaible
Hi Suganya, Suganya wrote: Debugging information message : Could not call org.apache.xmlbeans.XmlCalendar.readObject () cause-exception : com.thoughtworks.xstream.converters.reflection.MissingFieldException cause-message : No field 'areFieldsSet' found in

[xstream-user] Re: aliasField breaks object encapsulation rule?

2012-02-20 Thread Jörg Schaible
Hi Linghua, Linghua Wang wrote: Hi, I know there are two approaches to alias fields - one is hardcode call XStream.aliasField() method, and another is using annotation. The object I attemp to convert to XML is go without annotation against fields since they are maintained by others. So i

[xstream-user] Re: Tags with same name but different class cause problems when used with implicit collection

2012-02-29 Thread Jörg Schaible
Hi Claus, Claus Priisholm wrote: I been using XStream with great results for a number of tasks, but now I run into a problem that seems to boil down to the order in which the XStream object is configured. I've made a simplified example: doc intro link url/foo/bar/url

[xstream-user] Re: Read XML file into vector of objects using XStream

2012-03-01 Thread Jörg Schaible
miamicane99 wrote: I'd like to use an XML file as a dictionary for an NLP project I'm working on. I currently have a Words class which is a vector of Word objects. public class Words { private VectorWord vect; public Words(){ vect = new VectorWord(); } public void add(Word

[xstream-user] Re: Re: Confusion getting ISO8601 dates

2012-03-20 Thread Jörg Schaible
Bjorn Roche wrote: On Mar 20, 2012, at 3:37 PM, Jörg Schaible wrote: Hi Bjorn Bjorn Roche wrote: Hey all, First off, I heart XStream. I just wanted to share a problem I had recently and how I solved it. It seems to me the solution is unintuitive and hard to find. This maybe isn't

[xstream-user] Re: Changing synchronized content ...

2012-03-26 Thread Jörg Schaible
Hi Thomas, first: Please don't use an existing mail of the list to start a new thread. Any sane mail client that supports threads will hide this conversation deep down in an unrelated thread now. Search your mail here yourself to see the result: http://xstream.codehaus.org/list-user.html

[xstream-user] Re: Re: XStreamConverter annotation and caching

2012-03-30 Thread Jörg Schaible
Hi Benny, ben...@email.com wrote: Thanks for information, Jörg. So if I understood you correctly, local converters which are declared via annotation are not cached ? You can only have one per field. If you register two, the second wins. The converter instance is part of the XStream

[xstream-user] Re: How do I get the coorect value for XML special characters

2012-05-04 Thread Jörg Schaible
Hi Ajaya, Ajaya Sahoo wrote: Hi, I have an element with the following value ( condition a b /condition ). When I put the value in the object and use Xstream.toXML the value comes condition a gt; b/condition. How to get back the exact string with character? You cannot, because what you

[xstream-user] Re: configuring HibernateProxyConverter

2012-05-08 Thread Jörg Schaible
Hi Michael, Michael Teixeira wrote: As part of going from xstream 1.3.1 to xstream 1.4.2, I'm trying to make use of HibernateProxyConverter. So I've changed the xstream configuration from, in 1.3.1: this.xstream = new XStream(); xstream.registerConverter(new

[xstream-user] Re: Getting CannotResolveClassException

2012-05-23 Thread Jörg Schaible
Hi, Anshuma Ashok Goyal wrote: Hi Guys, I am using com.thoughtworks.xstream v1.3.1. And trying to load XML file to java object. While doing so getting CannotResolveClassException error for the class CategoryRuleMap which is present at the required location. This functionality was

[xstream-user] Re: simple problem converting JSON data to object

2012-05-29 Thread Jörg Schaible
Hi Jason, Jason Novotny wrote: Hi, I have a class OrderRequest, I show my fields below (there are set/get for each field, not displayed) public class OrderRequest implements Serializable { private Long id; private String accountName; private Date timeStamp;

[xstream-user] Re: encoding and schema

2012-05-29 Thread Jörg Schaible
Hi Daniel, Daniel Schnit wrote: Hi all...i have a question I need to use a combination of encoding (UTF-8) without schema if i user new XStream() i can work without schema but have a problem with encoding and if i use DomDriver(UTF-8) throws a exception cause need a dtd file. and where's

[xstream-user] Re: Why are volatile fields serialized?

2012-05-30 Thread Jörg Schaible
Hi Thomas, Thomas Mauch wrote: Can you tell me what is the reason behind the decision that volatile fields are serialized by XStream? I know that there is @XStreamOmitField or I could write a custom converter, but in fact the information that I do not want a field serialized, is already

[xstream-user] Re: Converter question

2012-06-19 Thread Jörg Schaible
Hi Thomas, thomas fuller wrote: Hi, I am trying to unmarshall XML that looks as follows: release_dates realtime_start=2012-01-01 realtime_end=-12-31 order_by=release_date sort_order=desc count=778 offset=0 limit=1000 release_date release_id=183

[xstream-user] Re: android xppdriver stub

2012-07-18 Thread Jörg Schaible
Hi Christine, Christine wrote: I have been using XStream on Android for a couple of years, it always worked well. However, in my latest project I get this error: java.lang.RuntimeException: Stub! at org.xmlpull.v1.XmlPullParserFactory.newInstance(XmlPullParserFactory.java:14)

[xstream-user] Re: ConversionException when using XStream 1.4.2 caused by CannotResolveClassException

2012-07-23 Thread Jörg Schaible
Hi Adi, adimaron wrote: Hello, I have recently upgraded from XStream1.1.2 to 1.4.2 to overcome a problem that appeared when running my java application with java7. I hope you realize that you're upgrading from a 7 year old code base? And you did read at least

[xstream-user] Re: ConversionException when using XStream 1.4.2 caused by CannotResolveClassException

2012-07-26 Thread Jörg Schaible
Hi Adi, adimaron wrote: Hi Jörg You seem to have written the XML in the new format and then try again to read it with the 1.1.x compatibility layer. This will not work. This is very strange for I am reading and writing with the exact same xstream object that is only generated once when

[xstream-user] Re: Getting duplicate tags

2012-08-09 Thread Jörg Schaible
sriharshanb wrote: Hi all, I created a hierachy of classes like catalogues which contains list of catalogue ,under catalogue list of category like that. public class catalogues( Ex:protected ListCatalogue catalogues ; ) public class Catalogue { private String name;

[xstream-user] Re: How to use XStrem in AppEngine applications

2012-08-09 Thread Jörg Schaible
Hi, Jairo de Almeida wrote: Hi, i need to use XStrem api in my appengine project, my question is, Why show access danied in SerilizeExeptiom mens and how can i use this permission to marshalling my pojos using Xstrem api? 1/ I have no experience with AppEngine myself 2/ You cannot use

[xstream-user] Re: help me to unsubscribe mailinglist

2012-09-13 Thread Jörg Schaible
Hi Dustin, Dustin Vogel wrote: I can't unsubscribe.. please help me. I always get this message: user-digest-unsubscribe- wQG/9g7owhzijwop8rzeemd2fqjk+...@public.gmane.org: ezmlm-manage: fatal: Sorry, I've been told to reject all requests (#5.7.2) All Codehaus lists are managed at

[xstream-user] Re: XStreamConverter question

2012-09-13 Thread Jörg Schaible
Hi Elena, Elena Montojo Vanrell wrote: Good morning, I have an object with many variables, three of them are an Integer and 2 dates. I am using xstream to create an output xml, but instead of display the integer I want an String depending also on the dates, so in a normal case i would

[xstream-user] Re: Re[xstream-user] ad/Write comments with Xstream

2012-09-18 Thread Jörg Schaible
Hi, Aitor Ugarte wrote: Hi, I'm finding a way to read/write the comments that are previously inserted in a xml file while parsing it. For example, imagine I have the following xml file. ?xml version=1.0 encoding=UTF-8? queries !-- Query to check the operators -- query

[xstream-user] Re: unable to un/marshall using convertor.

2012-09-19 Thread Jörg Schaible
Hi, Sunil N wrote: Hi, I have a problem un/marshaling the following: books book.name sample.element attr1=value1 attr2=value2some value/sample.elementxyz, sample.element attr1=value1 attr2=value2some value/sample.elementabc /book.name /books So you mean, this is the XML, you want to

[xstream-user] Re: lookupConverterForType throws exception?!

2012-09-26 Thread Jörg Schaible
Hi Roland, Roland Roberts wrote: DefaultConverterLookup method lookupConverterForType(Class type) throws a runtime exception. This was totally unexpected since I don't see it in the docs. How exactly is one supposed to /safely/ look up converters? Why do I need to do this you ask I

[xstream-user] Re: Implicit fields

2012-10-16 Thread Jörg Schaible
Hi Adrian, Adrian Jackson wrote: There are methods in XStream for setting up implicit collections, arrays and maps that I'm now using. But I want to be able to handle *fields* implicitly as well. That's not possible, since implicit means that the surrounding container is dropped from the

[xstream-user] Re: Implicit fields

2012-10-16 Thread Jörg Schaible
Adrian Jackson wrote: Jörg Schaible-3 wrote: Hi Adrian, Adrian Jackson wrote: I feel sure this should be possible, No, because the ReflectionConverter would no longer know, what to do with these elements at deserialization time. I don't see how this would theoretically be any

[xstream-user] Re: Hibernate associations

2012-10-16 Thread Jörg Schaible
Hi Sebastian, Sebastian Götz wrote: Hello Users, I am trying to use XSTREAM as serialization engine to backup my database. We use hibernate as OR mapper. My intention is to serialize table by table (entity class by entity class). And so I came across associations. If I

[xstream-user] Re: Issues with Xstream 1.4.3 on OSX

2012-10-16 Thread Jörg Schaible
Hi Timotej, Timotej Ecimovic wrote: I have a question regarding xstream 1.4.3 on OSX. Background: - we develop eclipse RCP application running on Win, Linux and Mac. - we had xstream 1.2.2 for long years without problems. - we have been using XStream.setClassLoader() to

[xstream-user] Re: AW: Hibernate associations

2012-10-18 Thread Jörg Schaible
Hi, Sebastian Götz wrote: Hi Jaime, after trying ym own solution I finally understand what you intended with your approach. But let me post some code of how I am doing it: private XStream createXstreamInstance(final Class? p_clazz) { XStream xstream = new XStream()

[xstream-user] Re: Re: AW: Hibernate associations

2012-10-18 Thread Jörg Schaible
Hi Jaime, Jaime Metcher wrote: Jörg, I think you've lost me there. Can you elaborate a bit? I'm not sure why you want to call super.marshal every time you see a new entity. Because that's what is called normally without my version of the custom converter. Also, my recollection is that

[xstream-user] Re: Inheritance with interface and their implementations but without class attribute

2012-10-25 Thread Jörg Schaible
Hi Marcin, Stefaniuk Marcin wrote: I was searching for the answer through the list but haven't found anything. I have a class with an attribute of interface type. @XStreamAlias(given) public class Given { @XStreamAsAttribute public String name; public Mock mock; }

[xstream-user] Re: com.thoughtworks.xstream.mapper.CannotResolveClassException

2012-10-29 Thread Jörg Schaible
Hi, Daniel Gomes-THINK IT wrote: Hi, I have one xml that one field is an array, but sometimes is returned one message and I get the exception com.thoughtworks.xstream.mapper.CannotResolveClassException. Exemplo: First case: ... CONSIGNACOES

[xstream-user] Re: XStream vs. Java native Serialization (performance)

2012-10-30 Thread Jörg Schaible
Hi Nir, Nir Hauser wrote: On the About page, it says: *Clean XML.* No information is duplicated that can be obtained via reflection. This results in XML that is easier to read for humans and *more compact than native Java serialization*. Can you provide any data that compares XStream to

[xstream-user] Re: Overriding of default alias/converter mappings applied to an XStream instance

2012-11-01 Thread Jörg Schaible
Antony Warner wrote: Hi, I've a situation where I can't currently see how to quite achieve a requirement I have using XStream as a Java/XML mapper. The background is we have a UML model off of which we generate Java classes that are persisted to XML using XStream. The requirement is

[xstream-user] Re: Re: Overriding of default alias/converter mappings applied to an XStream instance

2012-11-02 Thread Jörg Schaible
Hi Anton, Antony Warner wrote: Hi, Thanks for the quick response. Yes I can see now that it would be problematic in some cases, although OK in others, so overall might be difficult to attempt to work it in as a clean feature. The basic requirement is to apply default mappings to an

[xstream-user] Re: Re: Overriding of default alias/converter mappings applied to an XStream instance

2012-11-04 Thread Jörg Schaible
Hi Anton, Jörg Schaible wrote: Hi Anton, Antony Warner wrote: Hi, Thanks for the quick response. Yes I can see now that it would be problematic in some cases, although OK in others, so overall might be difficult to attempt to work it in as a clean feature. The basic requirement

[xstream-user] Re: doubt in xml

2012-11-05 Thread Jörg Schaible
Daniel Gomes-THINK IT wrote: Olá, agora outra duvida: Como fazer para converter esse xml em objetos sendo que o arquivo tem vario s subitens como row segue o exemplo: Look, I got a Resultado after row with elements also have Automoveis_Completo and their contents in row and

[xstream-user] Re: RES: Re: doubt in xml

2012-11-08 Thread Jörg Schaible
Hi Daniel, Daniel Gomes-THINK IT wrote: Sorry ! How do I convert this xml into objects and that the file has several subitems as row In the example I got a Resultado after row with elements also have Automoveis_Completo and their contents in row and so on ?xml version=1.0

[xstream-user] Re: Using XStream for Blackberry

2012-11-11 Thread Jörg Schaible
Hi Ingvar, Ingvar E. wrote: Hello. I am new to the concept of serialize/deserialize. I need to deserialize several serialized menu items received in XML format on a Blackberry phone 1. Is it workable? 2. Any suggestion on how to set it up and use it would be very helpful. Actually I

[xstream-user] Re: entity reference names can not start with character '' in CDATA

2012-11-14 Thread Jörg Schaible
Hi Stefan, Stefan Bühlmann wrote: Hi, I am using xstream to generate a json out of an xml by using: HierarchicalStreamReader sourceReader = new XppReader(new BufferedReader(new FileReader(report.xml)), new MXParser()); JettisonMappedXmlDriver jettisonDriver = new

[xstream-user] Re: Re: entity reference names can not start with character '' in CDATA

2012-11-14 Thread Jörg Schaible
Hi Stefan, Stefan Bühlmann wrote: Hi Jörg, thank you for your post. Complete stack trace: [snip] I am still missing the stack trace of the causing exception(s). XStream only catches and wraps a native parser exception. Also I cannot reproduce this behavior. I've enhanced XStream's unit

[xstream-user] Re: Re: Re: entity reference names can not start with character '' in CDATA

2012-11-14 Thread Jörg Schaible
Hi Stefann, Stefan Bühlmann wrote: Here it is: Caused by: org.xmlpull.v1.XmlPullParserException: entity reference names can not start with character '' (position: START_TAG seen ...sVerifyTagsArray(a.getVerifyTagsDefault())}if(a.debug||(a.verify... @1:1722019) at

[xstream-user] Re: Re: Re: Re: entity reference names can not start with character '' in CDATA

2012-11-14 Thread Jörg Schaible
Hi Stefan, Stefan Bühlmann wrote: Sure thing, complete CDATA element: data![CDATA[],[null,null],[null,null]],getResult:function(){var c=this.results,a,b=[];for(a=0;ac.length;a++){b=c[a];if(b[0]) {break}}return[].concat(b)},HTML:[0,0,0],active:

[xstream-user] Re: Re: Re: Re: entity reference names can not start with character '' in CDATA

2012-11-14 Thread Jörg Schaible
Jörg Schaible wrote: Hi Stefan, Stefan Bühlmann wrote: Sure thing, complete CDATA element: data![CDATA[],[null,null],[null,null]],getResult:function(){var c=this.results,a,b=[];for(a=0;ac.length;a++){b=c[a];if(b[0]) {break}}return[].concat(b)},HTML:[0,0,0],active: [0,0,0

[xstream-user] Re: Re: Re: Re: Re: entity reference names can not start with character '' in CDATA

2012-11-14 Thread Jörg Schaible
(in); == % === ;-) -- Stefan On 14.11.2012 16:17, Jörg Schaible wrote: Hi Stefan, Stefan Bühlmann wrote: Sure thing, complete CDATA element: data![CDATA[],[null,null],[null,null]],getResult:function(){var c=this.results,a,b=[];for(a=0;ac.length;a++){b=c[a];if(b[0

[xstream-user] Re: Developing a custom list

2012-11-16 Thread Jörg Schaible
Ruben Fragoso wrote: Hello everyone i am trying to setup a custom marshal/unmarshal converter but i am getting into some problems here is my context class MyValues { private ListCommonType myType } class MyType1 extends myType { } class MyType2 extends myType{ }

[xstream-user] Re: Re: Developing a custom list

2012-11-17 Thread Jörg Schaible
Hi Ruben, Ruben Fragoso wrote: Thank you Jorg for coming back to me well i just wrote a bit of the code, to give an example you can see the full example in this link https://docs.google.com/open?id=0B8TCL6GRojyLbzVYckZ2cEpWOUE so you can navigate without downloading it it is very

[xstream-user] Re: XStream seems unable to process XSLT containing sort if the xsl:for-each select is a variable.

2012-11-17 Thread Jörg Schaible
cbb wrote: Sorry for this, my notes are in the office and I wanted to post this asap. I will revisit this post on Monday morning and add the exact XStream exception and verify my example. Whenever I try to: xsl:variable name=PETS select=root/pets/ xsl:for-each select=$PETS

[xstream-user] Re: Re: Re: Developing a custom list

2012-11-17 Thread Jörg Schaible
Hi Ruben, Ruben Fragoso wrote: Hi Jorg thank you for comming back to me. I believe i miss lead you. my problem in not in the test, the problem that am talking about is related to the fact that the i cannot get the members of the Custom object to be populated, the problem is inside the

[xstream-user] Re: Re: XStream seems unable to process XSLT containing sort if the xsl:for-each select is a variable.

2012-11-17 Thread Jörg Schaible
Hi Craig, Craig Burlock wrote: Hi Jörg, I may not be as clever as you, but I find you question ambiguous. Can you elaborate on your question? Can you help me with my issue? See Ruben's message. I simply don't understand, what your problem should have to do with XStream at all. -

[xstream-user] Re: Re: Re: Developing a custom list

2012-11-17 Thread Jörg Schaible
Ruben Fragoso wrote: here is an example of the message that i get only START_TAG can have attributes END_TAG seen ... MyCustomObject widht=23 type=TypeOne name=One heigh=23/... @3:68 : only START_TAG can have attributes END_TAG seen ... MyCustomObject widht=23 type=TypeOne name=One

[xstream-user] Re: Re: Re: Re: Developing a custom list

2012-11-19 Thread Jörg Schaible
Hi Ruben, Ruben Fragoso wrote: Hello Jorg Thank you for coming back to me. So i test the following piece of code (following you suggestion): = while (reader.hasMoreChildren()) { MyBaseClass.Type type =

[xstream-user] Re: EXIReader and Xstream

2012-11-21 Thread Jörg Schaible
Hi Adam, Adam wrote: Is there a way to read and write directly to EXI compressed format? XStream delivers a BinaryDriver that writes a more efficient (proprietary) format than XML, but it's certainly not as compact as EXI. Right now I'm using openEXI to compress XML files after I've

[xstream-user] Re: Initializing XStream using Java 7 Web Start takes ~ 1 minute!?

2013-02-11 Thread Jörg Schaible
Hi Jason, Jason H wrote: Hi Folks, Does anyone know any tricks to speed up XStream initialization when launching via javaws? Via javaws creating a new XStream instance takes over a minute, but via regular java it takes less than a second. This is the code:

[xstream-user] Re: Not properly initialized Inner class

2013-02-14 Thread Jörg Schaible
Hi, Zdenko wrote: Hi Jörg, To clarify problem. Inner class deserialized using XStream is not initialized correctly. When I try to access outer class by referencing it: Outer.this I got null reference exception. While debugging I realized that instance of Inner class has this$1 pointer

[xstream-user] Re: [BUG] The xml conversion of the character A with acute accent = Á is not working

2013-02-18 Thread Jörg Schaible
Hi, Lynton wrote: The xml conversion of the character A with acute accent = Á is not working, its generating �? instead, and the object conversion from xml is generating � instead. Our unit tests ensure that this works. You will have to provide more information. - Jörg

[xstream-user] Re: Re: Map only some parts of the xml

2013-02-26 Thread Jörg Schaible
Hi Amanda, Amanda Varella wrote: Thank you Jörg, * * I think the ReflectionConverter won´t work because I don´t have knowledge of all attributes I would like to ignore. I think this could be a quite common need: to ignore unknown attributes. Do you know if there is a converter that

[xstream-user] Re: StaxReader ignores CDATA

2013-02-26 Thread Jörg Schaible
Hi Keith, Wire, Keith C wrote: Hi All, I'm using the StaxDriver to gain support of namespaces in Xstream. Do you have an idea, which StaX implementation is selected? The StaXDriver itself will only use the default implementation of your environment and that might change with the Java

[xstream-user] Re: StaxReader ignores CDATA

2013-02-27 Thread Jörg Schaible
Hi Keith, Wire, Keith C wrote: Hi Jorg, Sorry about the XStream typo, my email likes to autocorrect. I ran the test using each of the StaxDriver Impls you suggested and here are the results: StaxDriver = Fail BEAStaxDriver = Success WstxDriver = Fail SjsxpDriver = Success To add

[xstream-user] Re: Can't deserialize old xml with SynchronizedRandomAccessList

2013-03-02 Thread Jörg Schaible
Hi Rad, EXT-Widmer, Rad M wrote: Hello List: I'm in the process of migrating a project from java 6 to java 7. The project had been using XStream 1.3. We had to update that to XStream 1.4.4 because of java 7. Most things now work. However, we have some old xml files written by an unknown

[xstream-user] Re: [xstream-dev] xstream with android (latest ADT eclipse plugin)

2013-03-06 Thread Jörg Schaible
Hi Dave, DJDaveMark wrote: Hi Sherban, Sorry I read your email too quickly. It seems that Android doesn't ship with the javax.xml.stream package: http://developer.android.com/reference/javax/xml/xpath/package- summary.html Here's something I found with help to include missing javax

[xstream-user] Re: ReflectionConverter basic use

2013-03-06 Thread Jörg Schaible
Hi Amanda, Amanda Varella wrote: Hi, as I´m having some trouble in testing the ReflectionConverter, I wil ask your help with this basic issue! I have a class: public class Person { String name; String age; public Person() { } } And the following XML

[xstream-user] Re: Re: ReflectionConverter basic use

2013-03-06 Thread Jörg Schaible
Hi Amanda, Amanda Varella wrote: Thank you Joerg. But I think I didnt explain very well. Actually, the field address is a xpto field. I know only some parts of the XML. So, If I dont know What field can come, I can't ommit it. I'm making a processor based in 10 xmls and making sure that all

[xstream-user] Re: Is there a way to set the order of Xstream serialization

2013-03-12 Thread Jörg Schaible
Hi Ihar, Ihar Tsimoshka wrote: Hi, Jörg. Due http://xstream.codehaus.org/manual-tweaking-output.html correct fields order is 'the sequence they are defined' - without any restrictions in different runtime environments. Since it doesn't happen in Android, Xstream does not support Android.

[xstream-user] Re: Is there a way to set the order of Xstream serialization

2013-03-13 Thread Jörg Schaible
Hi Ihar, Ihar Tsimoshka wrote: Hi, Jörg I will try your suggest and will inform you about results. Maybe I'm wrong, but Android returns fields in alphabetical order of field types. If you have time can you please check it? As said, I have no experience with Android myself. I never found

[xstream-user] Re: Re: Help migrating from Xstream 1.3 to 1.4

2013-03-13 Thread Jörg Schaible
Hi, Mohammad Meah wrote: I have opened an issue on jira http://jira.codehaus.org/browse/XSTR-728 Let me know, if you need me to do anything. Thanks I've published a snapshot at: https://nexus.codehaus.org/content/groups/public/com/thoughtworks/xstream/xstream/1.4.5- SNAPSHOT/ However,

[xstream-user] Re: Filtering class attributes when creating xml

2013-03-16 Thread Jörg Schaible
Hi, hessampour wrote: Hi everyone. I wan't xstream to filter some of class attributes when marshalling objects (creating xml from objects). e.g. something like omitField in unmarshalling. can you give an example? - Jörg

[xstream-user] Re: Trouble with Lists when ignoring unknown elements

2013-03-18 Thread Jörg Schaible
Hi Kay, Kay Masslow wrote: Hi all, The FAQ recommends implement a custom mapper to ignore unknown fields automatically (see acceptance test customMapperTest.testCanBeUsedToOmitUnexpectedElements()). However using this code seems to cause trouble with handling of collections. You get

[xstream-user] Re: Re: Re: Cannot create XmlPullParser

2013-03-22 Thread Jörg Schaible
Hi André, André Fróes wrote: wouldn't xpp3 be an implementation for it? 2013/3/22 André Fróes arfmor...@gmail.com I have to add an implementation jar for xmlPullParser? Your list contains neither Xpp3 nor kXML2 and Glassfish is no environment that does provide another one

[xstream-user] Re: XStream no in enhanced mode?

2013-04-03 Thread Jörg Schaible
Hi, Xybek wrote: On 04/03/2013 04:28 PM, Jörg Schaible wrote: Hi, Xybrek wrote: Hello, I'm getting this error when trying to deserialize: Cannot construct MyClass as it does not have a no-args constructor. Looking at the docs, it means that Xtream is not running in enhanced mode

[xstream-user] Re: XStream no in enhanced mode?

2013-04-03 Thread Jörg Schaible
Hi, Xybek wrote: [snip] Hi Jorg, Yes, I did process JSON string but this is for the Gson library I use. I was just asking why Google Gson library can serialize and deserialize object instances in the same JVM and JUnit test where XStream fails to do so, throwing exception that the class

[xstream-user] Re: Custom converter for implicit map

2013-04-08 Thread Jörg Schaible
Hi, Age Bosma wrote: Hi, I'm trying to convert an EnumMap object property to an implicit list, but I can't seem to figure out how to skip the parent node in the marshal method of the custom converter. Example: public class PIzza { @XStreamConverter(ContentConverter.class)

[xstream-user] Re: Quotes enclosed JSON strings with custom converter

2013-04-18 Thread Jörg Schaible
Hi Age, Forage wrote: Hi, I'm writing a custom converter to change the default JSON output of maps from: [[first, value1], [second, value2]] To: {first : value1, second : value2} Writing the keys is no problem (startNode), but its string values (setValue) never get enclosed by

[xstream-user] Re: Re: Re: Re: Consistency bug with StAX driver (plus JIRA access)?

2013-04-18 Thread Jörg Schaible
Hi Stuart, Stuart Rossiter wrote: On 16 April 2013 10:56, Jörg Schaible joerg.schai...@scalaris.com wrote: Hi Stuart, Stuart Rossiter wrote: On 8 April 2013 22:13, Jörg Schaible joerg.schai...@gmx.de wrote: Stuart Rossiter wrote: On 6 April 2013 21:21, Jörg Schaible

[xstream-user] Re: XStream BSON serialization

2013-04-20 Thread Jörg Schaible
Hi, Xybrek wrote: Hello, Anyone knows of a library or extension to XStream that allows (de)serialization of BSON documents? This is the only implementation I can find so far: http://www.axonframework.org/apidocs/2.0/org/axonframework/serializer/bson/DBObjectXStreamSerializer.html

[xstream-user] Re: XStream BSON serialization

2013-04-20 Thread Jörg Schaible
Hi, I see, I just wonder how the Axon Framework was able to achieve this. This is one of the unit test code I found for the DBObjectXStreamSerializer: @Test public void testSerializeAndDeserializeDomainEvent() { SerializedObjectbyte[] serializedEvent =

[xstream-user] Re: Equivalence of TraxSource but based on xml file

2013-04-27 Thread Jörg Schaible
Hi Benoit, Benoit Idieder wrote: Hi, I am using xstream to serialize KeyStroke objects among other things, which give that kind of xml file : javax.swing.KeyStroke keyChar#x;/keyChar keyCode116/keyCode modifiers0/modifiers onKeyReleasefalse/onKeyRelease

[xstream-user] Re: Text content and attributes output incorrect (1.4.4)

2013-07-01 Thread Jörg Schaible
Hi Tamas, Farago, Tamas wrote: Hi, I am evaluating using XStream for our project and have run into the issue of adding text-content to XM using latest version of XStream, 1.4.4. It doesn't matter if I use the built-in XPP or the StaxDriver, they both have the same result. I have the

[xstream-user] Re: Text content and attributes output incorrect (1.4.4)

2013-07-01 Thread Jörg Schaible
Hi Tamas, Farago, Tamas wrote: Hi, I am evaluating using XStream for our project and have run into the issue of adding text-content to XM using latest version of XStream, 1.4.4. It doesn't matter if I use the built-in XPP or the StaxDriver, they both have the same result. I have the

[xstream-user] Re: java.lang.NullPointerException

2013-07-10 Thread Jörg Schaible
Hi, which version of XStream you are using? Regards, Jörg Faisal Anwer wrote: Vandermi Silva vandermisilva@... writes: Hello, I am using XStream to store data in an XML file and when I check the code with the Java Pathfinder I get the following errorjava.lang.NullPointerException

[xstream-user] Re: XStream enhanced mode on IKVM

2013-07-16 Thread Jörg Schaible
Hi, dimka wrote: Jörg Schaible joerg.schaible@... writes: actually it has been requested before: http://jira.codehaus.org/browse/XSTR-274 I'd happily include support for IKVM, but somebody has to do the work, patches welcome. Personally I have no .NET environment to develop nor any

[xstream-user] Re: Is it possible to unregister the DynamicProxyConverter using the SpringOXM wrapper

2013-07-17 Thread Jörg Schaible
Hello Alvaro, Alvaro wrote: Hi, I found that using the DynamicProxyConverter can be a security issue that can lead to remote code execution. Can you elaborate a bit? I dont know if it is possible to unregister it No. as I can see no unregisterConverters method in the XStream class

[xstream-user] Re: Re: Accessing field names in custom converters

2013-07-19 Thread Jörg Schaible
Hi Ivan, Ivan Brusic wrote: I don't want to apply a converter to the top-level class. That would require too much work whenever a new field is added. That's why there are reflection-based converters. Adding a simple annotation to a single variable is already a compromise. I am trying to

[xstream-user] Re: ListTlist serialize-deserialize problem

2013-08-12 Thread Jörg Schaible
Hi, Швабауэр Павел wrote: Good day team, I'm having strange problem with marshaling/unmarshaling objects. My small structure: data aclog indexindex/index idid/id datedate/date descdesc/desc /aclog aclog indexindex/index idid/id

[xstream-user] Re: HibernateMapper reports incorrect class

2013-08-20 Thread Jörg Schaible
Hi Daniel, first of all, I never did something real with Hibernate, any code in XStream is contributed. Daniel Ferber wrote: Hi, The HibernateMapper.serializedClass reports the HibernateProxy's super class as the effective class that XStream should consider during serialization. This

[xstream-user] Re: XStreamImplicit annotations in subclass screen annotations in superclass

2013-08-20 Thread Jörg Schaible
Hi, depst...@alliedtesting.com wrote: Hello, I have a problem with XStreamImplicit annotations in derived classes. It seems that an @XStreamImplicit annotation in a subclass screens all @XStreamImplicit annotations in its superclass. Example 1: public class SuperClass {

[xstream-user] Re: Issues with the fromXML method and streams

2013-08-27 Thread Jörg Schaible
Hi Erik, Erik Wiklund wrote: Hi, I'm using xstream 1.4.3 and since searching both the documentation and bug tracker didn't yield anything useful I'll just leave this here. I have come across a problem with the fromXML (InputStream) method, when used in conjunction with the ZipInputStream,

[xstream-user] Re: Re: Parsing/serializing 'Optional' values

2013-09-11 Thread Jörg Schaible
Hi Remko, Remko Tronçon wrote: Hi Jörg Look at the converter tutorial. The last example at the end will do this also. Oh, I must have missed that one. That seems to indeed do exactly what I wanted. Since I assume, that your type containing the Optional is currently handled by one of

[xstream-user] Serializing ContentPartTransferImpl

2013-09-11 Thread Jörg Schaible
Hi Wolfgang, Du könntest in der ContentPartTransferImpl eine serialisierbare SerializerStrategy direkt in den readObject/writeObject verwenden: % === protected transient inStream; public setSerializer(SerializerStrategy serializerStrategy) {

[xstream-user] Re: Re: Re: Parsing/serializing 'Optional' values

2013-09-12 Thread Jörg Schaible
Hi Remko, Remko Tronçon wrote: Hi Jörg, On 11 September 2013 21:48, Jörg Schaible joerg.schai...@gmx.de wrote: UnmarshalingContext.getRequiredType contains normally the correct thing. Well, it is correct, in the sense that it says it requires an Optional. Well, since Optional

  1   2   >