cancel
Showing results for 
Search instead for 
Did you mean: 

Preview web app errors

damonsmith
Champ in-the-making
Champ in-the-making
Hi, I'm running a fairly simple web app to serve content.  It can run in edit mode, and when this is on, it reads an XML config file using XStream.

Strangely, the app preview works fine in the Staging Sandbox, but when I try it from the Admin sandbox, XStream appears to return after reading the xml config.  I'm using context.getResourceAsStream to get my xml file, and I can print it to logs and see that the file text content is actually there.  I'm wondering if this could be a thread safety issue, but they shouldn't really even be loading at the same time, and I only have the two sandboxes.

Has anyone else come across this sort of problem?

cheers,

Damon
1 REPLY 1

damonsmith
Champ in-the-making
Champ in-the-making
Ok this appears to be caused by a very strange error:
Caused by: java.lang.ClassCastException: com.sportex.betex.support.spring.velotoolbox.EditorConfig cannot be cast
to com.sportex.betex.support.spring.velotoolbox.EditorConfig

The two classes are identical, and it works in the staging sandbox but not in the user sandbox.  Strange stuff, and any help would be appreciated.