[xstream-user] XStreram moved to GitHub

2015-05-08 Thread Jörg Schaible
Hello folks, Codehaus will shut down soon and XStream has therefore a new home at Github (http://x-stream.github.io/). This will also affect our mailing lists. We already opened a new one at Google Groups, this time one single list for users and developers

[xstream-user] Re: Question on serialization

2015-05-05 Thread Jörg Schaible
Hi Abhi, Abhiram Panyam wrote: Jörg Schaible joerg.schaible@... writes: Hi Abhi, You can register a JavaBeanConverter to handle OfferVO: JavaBeanProvider beanProvider = new JavaBeanProvider(); xstream.registerConverter(new JavaBeanConverter(xstream.getMapper(), beanProvider

[xstream-user] Re: Question on serialization

2015-05-04 Thread Jörg Schaible
Hi Abhi, Abhiram Panyam wrote: I would like to know if I can serialize methods in addition to fields. For instance, I have the following class public class offerVO { private Long offerId; private String offer; public OfferVO() { } public Long

[xstream-user] Re: Re: XStream keeps XPath refs to ints, doubles, other Immutables

2015-04-27 Thread Jörg Schaible
Hi Geoff, Geoff Groos wrote: Hey J?rg, Thanks for the note about enums, I had it in my head that enum's have been in java like that since 1.0. This explains why so many APIs inside java are using int constants. Anyways, my todos: * revert the method signatures to maintain binary

[xstream-user] Re: java.time does not appear to serialize/deserialize properly

2015-04-13 Thread Jörg Schaible
Hi Geoff, Geoff Groos wrote: Hey guys, I’m wondering what you guys think of XStream + the new (java 1.8) java.time library. Someone has to start :-) I’ve started replacing joda.time uses with java.time ones (as encouraged by the Joda time guys themselves) and I only noticed when I ran

[xstream-user] Re: XStream: is it possible to re-set alias on the fly?

2015-04-13 Thread Jörg Schaible
Hi Alex, Alex Y. Matiash wrote: Hello world! I've tried to google as hard as I can, but I didn't find an answer for my problems. 1. The problem is that due to some reason our protocol has identical XML structure for all packets, so I can't create permanent aliases, neither using

[xstream-user] Re: XStream fails to de-serialize java.util.HashSet

2015-04-13 Thread Jörg Schaible
Hi Tobias, Tobias Gierke wrote: Hi, We recently started getting weird XStream errors on code that was previously working fine. IMHO some (seemingly unreleated) change causes the serialization to output bad XML and this in turn makes the deserialization fall over later on. The error

[xstream-user] Re: Help unmarshalling Collection/TreeSet

2015-04-01 Thread Jörg Schaible
Hi Luiz, Felipe wrote: Good morning everyone, I need help on something: I'm trying to unmarshall from a huge XML into ValueObjects, but I keep getting erros, and I'm trying like crazy to make this work, but it has been a little hard. I've been using XStream for years and it always

[xstream-user] Re: Using XStream 1.4.8 in android 4.4 fails.

2015-02-22 Thread Jörg Schaible
Hi Bruce, Bruce Link wrote: I believe that xStream being compiled against Java 8 removes the ability for XStream to be used as a drop in module in android 4.4. When I use 1.4.8 in eclipse as a module for my Android 4.4 project, I receive a compile error along the lines of: UNEXPECTED

[xstream-user] Re: handle xml empty tag

2015-02-22 Thread Jörg Schaible
Hi, manoj wrote: I have xml with empty tag. while calling below code i am getting conversion exception. public static T T xmlToVoConversion(String data , ClassT genericType) { XStream stream = new XStream( ); stream.processAnnotations(genericType); T convertedObject = (T)

[xstream-user] Re: Make UUID an Immutable type by default

2015-02-18 Thread Jörg Schaible
Hi Geoff, Geoff Groos wrote: Hey guys, We’re just about to go to version 1.0, so I’m running over every piece of tech-debt I can think of to make sure all my ducks are in a row, and I found this in our project file (an XML serialized model): ProjectState.ImmutableMomento

[xstream-user] [ANN] XStream 1.4.8 released

2015-02-18 Thread Jörg Schaible
Hello followers, a new maintenace release of XStreeam has been released as version 1.4.8. It is supposed to be a simple drop-in replacement. Some minor bugs have been fixed, improves the support for serializable lambda expressions in Java 8 and detects Java 9. Support is still available for

[xstream-user] Re: ISO8601GregorianCalendarConverter invalid conversion between time zones

2015-02-15 Thread Jörg Schaible
Hi Jason, Jason Steenstrapickens wrote: Hi, We have recently been experiencing issues deserialising XML with specific time zones. This only seems to be occurring on Windows where the time zone does not have an Id that is in the available list of Ids. It seems this is caused by Windows

[xstream-user] Re: Question about Using XStream

2015-01-14 Thread Jörg Schaible
Hi Miccio, 郝强_BYR wrote: Hi, I use xstream to read and write xml file in my project, and I encounter a problem. In the project, there's an xml configuration file, but it is used by two programs. The other program may add some unknown tags which are the tags of xml file

[xstream-user] Re: Re: Lambda deserialization failing with XStream 1.4.7 and JDK 1.8ea40 (64-bit)

2015-01-07 Thread Jörg Schaible
Hi Tobias, Tobias Gierke wrote: Hi Jörg, I created a JIRA issue: http://jira.codehaus.org/browse/XSTR-767 thanks. Can you also provide the generated XML for the relevant structure? Thanks for looking into this! Cheers, Jörg Cheers, Tobias Hi Tobias, it seems you're the first

[xstream-user] Re: Re: XStream Json / OSGi application with jdk 1.4

2014-12-10 Thread Jörg Schaible
Hello Brice, Brice Vandeputte wrote: 2014-12-10 11:27 GMT+01:00 Brice I check java.util.regex.Pattern which is available since 1.4... but this class seems not available on J9 JVM. My J9 has no problems with it: [INFO]

[xstream-user] Re: Re: Problem with unmarshall data (com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException)

2014-09-25 Thread Jörg Schaible
Hi Petr, Petr Adamec wrote: Hi Jörg, I found error in my code. Now I can skip fields which are new. It is ok. Can I write skipped fields into log file, if I use override wrapMapper? sure, you can log in any play you want. :-) - Jörg

[xstream-user] Re: Problem using the NamedMapconverter

2014-09-17 Thread Jörg Schaible
Hi Johann, sorry for the late response, but I was on holidays and try to clear the backlog slowly again. Johann Kerdal wrote: Hi guys, I need to unmarshall an XML document to a linkedHashMapString,ColumnAttributes The XML document I get from the server system is containing the list of

[xstream-user] Re: Xstream difference in behaviour between android 4.1 and 4.3

2014-09-17 Thread Jörg Schaible
Hi Charles, sorry for the delay, working on the backlog ... Charles Colbourn wrote: Hi I've stumbled over a bit of an oddity with Xstream across these two versions of Android. actually I have no Android, so I can only assume ... If you have an annotated field: @XStreamImplicit

[xstream-user] Re: xstream multi thread issue.

2014-08-13 Thread Jörg Schaible
Hi Ming, Huang, Ming wrote: Hi We recently updated xstream from from version 1.3.1 to 1.4.7 in our application. We found that the application would sometimes hang. Doing jstack and found that the threads were in the lines of at

[xstream-user] Re: Re: Implicit Collection where collection is a generic type

2014-08-11 Thread Jörg Schaible
no further administrative rights. Cheers, Jörg Thanks, Gabriel On Mon, Jun 30, 2014 at 6:57 PM, Jörg Schaible joerg.schai...@gmx.de wrote: Hi Gabriel, Gabriel Rossetti wrote: Hi all, I have an issue un-serializing a class with a generic type. Here is an example: public

[xstream-user] Re: Android XSTREAM W/dalvikvm no implementation found for native Ldalvik/system/VMRuntime;.pauseGc:(Ljava/lang/String; )I on Samsung device]

2014-08-09 Thread Jörg Schaible
Hi Jean-Marc, gempe...@xs4all.nl wrote: Hi All, I'm using XSTREAM for Android and since Samsung updated the NOTE 2 to 4.4.2 I have this error Android XSTREAM W/dalvikvm no implementation found for native Ldalvik/system/VMRuntime;.pauseGc:(Ljava/lang/String;)I on Samsung device This

[xstream-user] Re: Calling context.convertAnother vs directly calling marshal/unmarshal

2014-07-29 Thread Jörg Schaible
Hi Gabriel, Gabriel Rossetti wrote: Hi all, I have custom converters which call other converters, currently I call context.convertAnother() but this takes time since it cycles through the converters and calls canConvert() Only once, the selection is cached. (even though I gave it the

[xstream-user] Re: Mapping JSON to XML without Java Objects

2014-07-03 Thread Jörg Schaible
Hi Lewis, Lewis John Mcgibbney wrote: Hi Folks, I work on an object-to-datastore mapping framework called Apache Gora [0] and recently came across XStream for simplying data modeling in Gora. I really like the project you guys are working on but i wonder if you can answer me one question.

[xstream-user] Re: ActionScript3 port of XStream

2014-06-02 Thread Jörg Schaible
Hi, kokori...@gmail.com wrote: Hello, XStream users! I ported XStream to AS3 and called that library AStream. You can see it here: https://github.com/kokorin/AStream AStream currently supports: - Primitive types (int, uint, Number, String, Boolean and null) - Complex types - Enums

[xstream-user] Re: basic unmarshall question

2014-05-20 Thread Jörg Schaible
Hi John, js wrote: hi, I'll eventually figure this out, but i have been struggling for at least 2 days trying to unmarshall the simplest xml.. i must really be getting frustrated if i resorted to emailing the open source developers.. anyway: all i want to do is unmarshall a simple xml

[xstream-user] Re: MapString,SetString | Convert To XML

2014-05-13 Thread Jörg Schaible
Jörg Schaible wrote: Hi Raj, Raj wrote: Hi Thanks for quick repsonses. I have map below. MapString,SetString desksDetails = new HashMapString, SetString(); Map key is ABC and value is Set holding usernames. I want to covert this into xml like desk name=ABC user

[xstream-user] Re: MapString,SetString | Convert To XML

2014-05-12 Thread Jörg Schaible
Hi Raj, Raj wrote: Hi Thanks for quick repsonses. I have map below. MapString,SetString desksDetails = new HashMapString, SetString(); Map key is ABC and value is Set holding usernames. I want to covert this into xml like desk name=ABC user name=rpaynter/ user

[xstream-user] Re: Class member variables as attribute to itself

2014-05-11 Thread Jörg Schaible
Hi Raj, Raj wrote: Hi I have spend lot of time but could not create xml like How to achieve xml like person user fn=Joe/ lastnameWalnes/lastname /person If i have person object like public class Person { private String firstname; private String lastname; } The above

[xstream-user] Re: @XStreamImplicit() for a field which is not a collection

2014-04-07 Thread Jörg Schaible
Hi Geoffrey, Geoffrey De Smet wrote: How do I model a singleton field of a supertype of several types with different element names? I have these classes: @XStreamAlias(house) public class House { @XStreamImplicit() private ListAnimal animalList; }

[xstream-user] Re: Externalizable readResolve

2014-03-27 Thread Jörg Schaible
Hi Derek, Trumbo, Derek wrote: Hello, I had some trouble researching whether or not this was still an issue, so I apologize in advance if this too commonly asked. I saw a post from a long time ago indicating that readResolve is not called on an object that implements Externalizable. I

[xstream-user] Re: Re: Re: Custom Serializer Issue

2014-03-13 Thread Jörg Schaible
Hi Robert, Robert Feustel wrote: All right, This pretty much works. Only deserialization doesn't work quite allright, but I have found the problem and multiple solutions to that. So, here's what I've done: class ProperSerializableConverter extends SerializableConverter {

[xstream-user] Re: Custom Serializer Issue

2014-03-12 Thread Jörg Schaible
Hi Robert, Robert Feustel wrote: Hello there, I'm trying to serialize a complex object that I wrote a custom serializer (write/readObject() method) for. Now, when I try running this through xstream it appears that this custom serializer is completely ignored... It's a hierarchical dataset

[xstream-user] Re: Need help with a custom converter

2014-03-06 Thread Jörg Schaible
Hi, X wrote: I'm getting this exception: [exec]Causedby:com.thoughtworks.xstream.converters.ConversionException:Cannotdeserialize [objectwithnewreadObject()/writeObject()methods [[exec]Debugginginformation

[xstream-user] Re: Re: Need help with a custom converter

2014-03-06 Thread Jörg Schaible
this? On Thursday, March 6, 2014 8:39 AM, X xh...@yahoo.com wrote: Thank you sooo much for your help! On Thursday, March 6, 2014 4:04 AM, Jörg Schaible joerg.schai...@swisspost.com wrote: Hi, X wrote: I'm getting this exception: [exec

[xstream-user] Re: RE: 1.4 JVM version

2014-02-26 Thread Jörg Schaible
mrs.nospam wrote: unsubscribe Your own task http://xircles.codehaus.org - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

[xstream-user] Re: Re: Re: Set both collection name and item name

2014-02-25 Thread Jörg Schaible
Hi Paul, Paul B. Anderson wrote: I managed to create three almost identical converters for the three ArrayListString elements of my Java structure and I can both read and write XML in the desired format. I was unable to see how to get the CollectionConverter or NamedCollectionConverter to

[xstream-user] RE: RE: RE: Re: Using CollectionConverter with @XStreamConverter

2014-02-24 Thread Jörg Schaible
Hi Dmtry, depst...@alliedtesting.com wrote: ?!? What is XStream 1.4.6.1? We release 1.4.6 and 1.4.7, but nothing inbetween. Yeah, sorry, that was an OSGi bundle version. The XStream version is 1.4.6. Is there something wrong with the OSGi info in 1.4.6? I don't know. Has XStream

[xstream-user] Re: Set both collection name and item name

2014-02-24 Thread Jörg Schaible
Hi Paul, Paul B. Anderson wrote: I'm trying to handle an ArrayListString to achieve XML like the following: entries entryAlpha/entry entryBravo/entry entryCharlie/entry /entries The examples Ive seen let me name the outer entries element or eliminate the

[xstream-user] RE: RE: Re: Using CollectionConverter with @XStreamConverter

2014-02-21 Thread Jörg Schaible
Hi Dmitry, depst...@alliedtesting.com wrote: [snip] ?!? What is XStream 1.4.6.1? We release 1.4.6 and 1.4.7, but nothing inbetween. Yeah, sorry, that was an OSGi bundle version. The XStream version is 1.4.6. Is there something wrong with the OSGi info in 1.4.6? Cheers, Jörg

[xstream-user] Re: Custom hashCode and damaged collections after load

2014-02-20 Thread Jörg Schaible
Hi, Jörg Schaible wrote: Hi Алексеев, Алексеев Сергей wrote: Hello team. I got some question/problem with XStream. I have a class with custom realization of methods equals/hashCode. Such objects contains in HashSet collection. Default XStream behavior: create object

[xstream-user] Re: preserving the spaces after deserialization

2014-02-11 Thread Jörg Schaible
Hi Nicolas, Nicolas HERNANDEZ wrote: Dear all, I would like to preserve the spaces after deserialization. I read that the substitution of newlines, tabs characters with spaces is part of the XML specification [1]. I would prefer not to use xml entities as it is suggested. I also read

[xstream-user] Re: Re: preserving the spaces after deserialization

2014-02-11 Thread Jörg Schaible
Hi Nicolas, Nicolas HERNANDEZ wrote: Hi Jörg, The spaces are preserved when I serialize using toXML method. When I check with an editor I see the original indentation. But when I use the following method xstream.fromXML(myXMLString) to deserialize, all the newlines and tabs characters

[xstream-user] Re: Deserialization of JSON into an array of Properties

2014-02-04 Thread Jörg Schaible
Hi Michael, Michael Minella wrote: I'm running into an issue performing a round trip serializing then deserializing an object that contains an empty array of Properties. I've created a small test case below that illustrates the issue. It seems to work fine when going to XML (using the

[xstream-user] Re: Alternative converter invocation when previous's call failed

2014-02-03 Thread Jörg Schaible
Hi Pawel, Kowalski, Pawel wrote: Hi, I have plenty of data (joda DateTime objects) serialized with default (ReflectionConverter) now I'd like to simplify serialization and created my own Converter for these objects. The issue is I'd like to have possibility to support both versions at

[xstream-user] Re: weird problems deserializing

2014-01-25 Thread Jörg Schaible
Hi Jason, Jason Novotny wrote: Hi, I'm having an extreely strange problem where I run a unit test on my Mac that works fine but the identical code on a linux server produces an xstream related error: testInrixAuthentication(.service.inrix.InrixServiceTest): Could not read [class

[xstream-user] Re: Xstream - order of attribute

2014-01-21 Thread Jörg Schaible
Hi Márk, Márk Pásztor wrote: Hello everybody, I use xstream for a year. It's work very well. But now I got a problem. I would like to write an xml file from an input xml file. And I would like to preserve the order of input attributes to the output file. Now looks like this:

[xstream-user] Re: Can custom converters insert newline?

2014-01-07 Thread Jörg Schaible
Hi Andrew, Andrew Norton wrote: Hello, I need my XML output to look like the following even if it isn't valid. mchoice question Some data

[xstream-user] Re: Unsetting fields during in-place unmarshal

2014-01-07 Thread Jörg Schaible
Hi Jesse, Jesse Glick wrote: http://stackoverflow.com/questions/20668266/xstream-null-out-fields-not-mentioned-in-xml-during-in-place-unmarshal Is this a bug in XStream? Or something that can be done easily and I just missed it in documentation? Or something that would take significant

[xstream-user] ConverterLookup

2013-12-27 Thread Jörg Schaible
-- Forwarded Mail -- Subject: ConverterLookup Date: 24th December 2013, 13:02:09 From: Alvaro alv...@pwntester.com To: joerg.schai...@gmx.de Hi Joerg, Im trying to write to the xstream dev list but get bounced by the mailing daemon even though Im subscribed. Maybe you can

[xstream-user] Re: ConverterLookup

2013-12-27 Thread Jörg Schaible
Hi Alvaro, there's unfortunately a bug in XStream, that requires the ConverterLookup and ConverterRegistry to be the same instance currently. You will therefore have to implement also ConverterRegistry and may simply ignore anything provided with the registerConverter method. Sorry for the

[xstream-user] Re: ConverterLookup

2013-12-27 Thread Jörg Schaible
Or as alternative, set the ConverterRegistry to null. Then you can stay with your current implementation of the ConverterLookup. Jörg Schaible wrote: Hi Alvaro, there's unfortunately a bug in XStream, that requires the ConverterLookup and ConverterRegistry to be the same instance

[xstream-user] [ANN] XStream 1.4.6 released

2013-12-13 Thread Jörg Schaible
Hello, XStream 1.4.6 has been released. The new version is a maintenance release and should be therefore a drop-in replacement. It solves a runtime problem with Java 8, has improved a lot in GAE (thanks to Zebulah for testing) and with an active SecurityManager. Check it out yourself:

[xstream-user] Re: Unmarshal Subtypes / Inheritance

2013-12-07 Thread Jörg Schaible
Hi Stephan, Stephan Arlt wrote: Hi, I got the following three Java classes: (1) class A {} (2) class B extends A {} (3) class C extends A {} Furthermore, I got the following XML content: A type=B/A A type=C/A Can you provide a quick note on how to unmarshal the XML content

[xstream-user] Re: Re: Re: java.lang.NoClassDefFoundError: java.awt.font.TextAttribute is a restricted class

2013-11-28 Thread Jörg Schaible
pleasure to use. ;-) OK, I'll plan to do another 1.4.x release within the next two weeks that contains these modifications. Cheers, Jörg Zebulah On Wednesday, November 27, 2013 4:38 PM, Jörg Schaible joerg.schai...@gmx.de wrote: Hi Zebula, Zfadade wrote: Thanks so much

[xstream-user] Re: include reflected serialVersionUID to XStream

2013-11-18 Thread Jörg Schaible
Hi Uwe, uwe schaefer wrote: Hi i'd like to add a reflected serialVersionUID field to the XML XStream creates/reads from in order to be able to do conversion based on this. i am puzzled of how to do that in a general manner rather than adding converters for any known class (i do not know

[xstream-user] RE: RE: RE: RE: Re: Converting an object back from XML

2013-11-15 Thread Jörg Schaible
Hi Dale, Dale Ellis wrote: I was having a look in the JConsole at the stack of the hanging thread, I think the issue is to do with my abstractEntity class (which all the JPA entity objects extend) overrides the hascode with this... public int hashCode(){ if(getId() !=

[xstream-user] RE: RE: RE: Re: Converting an object back from XML

2013-11-09 Thread Jörg Schaible
Hello Dale, sorry, I was busy yesterday. Dale Ellis wrote: Still can't get this working and have spent a day on it. It's definitely to do with the way the StageDefinition/StageTransition Sets, if I blank them the fromXml will work. It's a general problem with TreeSet/TreeMap (sets use

[xstream-user] Re: Converting an object back from XML

2013-11-07 Thread Jörg Schaible
Hello Dale, which version of XStream are you using? What JDK (vendor and version)? Can you paste the output of: % == $ java -cp xstream-VERSION.jar com.thoughtworks.xstream.core.JVM % == Basically I see no reason, why a field id should

[xstream-user] RE: Re: Converting an object back from XML

2013-11-07 Thread Jörg Schaible
Hello Dale, Dale Ellis wrote: Thanks for your replies guys, Apologies, should of thought to include version information. I'm using JDK 1.6 and xstream is version 1.4.5, pulled in via maven dependency... dependency groupIdcom.thoughtworks.xstream/groupId

[xstream-user] Re: Hibernate Mapping with Generics and MappedSuperclass

2013-10-29 Thread Jörg Schaible
Hi Alexander, Alexander Buchholtz wrote: Hi Jörg, Jörg Schaible joerg.schaible@... writes: Actually I have no experience with the Hibernate stuff at all, therefore I don't know, if it really can make a difference. However, I'd be wondering. Can you create a version of the classes

[xstream-user] Re: Re: Problems when deserializing my serialized data

2013-10-24 Thread Jörg Schaible
Hi Dirk, Dirk Schnelle-Walka wrote: Hey Jörg, thanks for the quick answer. I wrote a unit test and it worked for me as well. Now, I digged into it and found the reason for this strange behavior. I had another class that was used prior to the array container for primitives annotated with

[xstream-user] Re: Hibernate Mapping with Generics and MappedSuperclass

2013-10-24 Thread Jörg Schaible
Hi Alexander, Alexander Buchholtz wrote: Hi, I'm facing an issue with serializing our entities to XML. We have a generic that is used for localization of our entities. My data model looks as follows: @MappedSuperclass public class LocalizationNameLocalizationNameObject extends

[xstream-user] Re: Question re: setting a property after unmarshalling XML

2013-10-23 Thread Jörg Schaible
Hi Tom, Thomas Fuller wrote: Hi, I use XStream to unmarshall XML into an instance of a data model. Each class in the data model extends from DefaultObject and the DefaultObject has a setPropertyChangeSupport method. I'd like to configure XStream to set an instance of

[xstream-user] Re: Re: Deserialize Objects without original classloader

2013-10-22 Thread Jörg Schaible
Hi Cedric, Cedric Reichenbach wrote: Hi Jörg, Am 21.10.2013 15:02, schrieb Jörg Schaible: Hi Cedric, Cedric Reichenbach wrote: Hi everybody, I'm using XStream to serialize objects before sending them into a different JVM. Until now, I the JVMs were running on the same machine and I

[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

[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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: [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: 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: 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: 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: [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

  1   2   >