Using xstream to generate objects from table definitions.

71 views
Skip to first unread message

Graham Berks

unread,
Mar 1, 2012, 9:41:20 AM3/1/12
to Cukes
Hi, do you have an example to follow ?

Going from RC13 to RC16 has broken our tests with the current xstream
conversions we are doing.

Thanks

Graham Berks

unread,
Mar 1, 2012, 9:44:40 AM3/1/12
to Cukes
Specifically the @XStreamAlias we use to convert names fails.

Has something been removed to introduce these types to xstream ?

aslak hellesoy

unread,
Mar 1, 2012, 9:52:38 AM3/1/12
to cu...@googlegroups.com
On Thu, Mar 1, 2012 at 2:41 PM, Graham Berks <gra...@fatlazycat.com> wrote:
> Hi, do you have an example to follow ?
>

Not sure what you mean.

> Going from RC13 to RC16 has broken our tests with the current xstream
> conversions we are doing.
>

Did you try RC14 and RC15? Might be easier to spot where the
regression was introduced.

Also - need some code to reproduce the regression. Can you file a
ticket please? Or better - a pull request with a failing feature, for
example in the java-calculator examples module.

See changes here:

https://github.com/cucumber/cucumber-jvm/compare/v1.0.0.RC13...v1.0.0.RC14
https://github.com/cucumber/cucumber-jvm/compare/v1.0.0.RC14...v1.0.0.RC15
https://github.com/cucumber/cucumber-jvm/compare/v1.0.0.RC15...v1.0.0.RC16
https://github.com/cucumber/cucumber-jvm/compare/v1.0.0.RC13...v1.0.0.RC16

Aslak

> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups "Cukes" group.
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
>

Graham Berks

unread,
Mar 1, 2012, 10:09:46 AM3/1/12
to Cukes
RC15 gave

java.lang.NullPointerException
at cucumber.runtime.Utils.isInstantiable(Utils.java:
18)
at
cucumber.runtime.java.ClasspathMethodScanner.scan(ClasspathMethodScanner.java:
27)
at
cucumber.runtime.java.JavaBackend.loadGlue(JavaBackend.java:58)
at cucumber.runtime.Runtime.<init>(Runtime.java:67)
at cucumber.runtime.Runtime.<init>(Runtime.java:54)
at cucumber.runtime.Runtime.<init>(Runtime.java:50)
at cucumber.junit.Cucumber.<init>(Cucumber.java:56)

but that went away in RC16.

The specific error was came in RC16 ( could of been hidden by the
above issue ), will knock up an example and raise an issue.

Thanks

Graham Berks

unread,
Mar 1, 2012, 3:27:15 PM3/1/12
to Cukes
Must be some weird transitive dependency in our build that kicked in
during a change in RC versions.

So far can't repo in a fork with java-calc with code at RC21-Snapshot.

Odd, it's not obvious in our build.

Graham Berks

unread,
Mar 2, 2012, 2:06:00 PM3/2/12
to cu...@googlegroups.com
The issue is with the embedding of xstream within cuke.

If I use the annotation @XStreamAlias via com.thoughtworks.xstream.annotations import it fails.

Using the embedded cucumber.runtime.xstream.annotations.XStreamAlias it's fine.

Thanks

Aslak Hellesøy

unread,
Mar 2, 2012, 2:19:21 PM3/2/12
to cu...@googlegroups.com
Yep. There is a note about this in History.md

Aslak

Thanks

--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cukes/-/0EhSCKJZZ0UJ.
Reply all
Reply to author
Forward
0 new messages