Application not working after upgrade

View: New views
10 Messages — Rating Filter:   Alert me  

Application not working after upgrade

by ghachey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I recently formatted my computer to install a different OS (from Ubuntu to Debian so not that big of a change).  I had two almost finished applications which were working fine before.  I checked out the source of those two application from our repo and they still build fine like before.  However, when I deploy them and try to add a New record I get a trails runtime exception.  I attached it Screenshot.png.  Also I get a different but consistent error when I try to search (exception also attached Screenshot-1.png).  This happens regardless of which Object I test.

The only thing that could have changed are library updates.  I did not bother carrying back my $HOME/.m2/ directory cause I thought I'd simply let maven download them all over again during first build.

I really need to get those application running again as they are for clients so any help will be greatly appreciated.

Regards,

--
GH

Re: Application not working after upgrade

by Alejandro Scandroli-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi GH

Are you using snapshots versions?
Are Those errors from running "jetty:run" or from a deployed war?
Which jdk version are you using?
Which maven version?

Alejandro.

On Mon, Mar 2, 2009 at 1:19 AM, ghachey <ghachey@...> wrote:

>
> Hi,
>
> I recently formatted my computer to install a different OS (from Ubuntu to
> Debian so not that big of a change).  I had two almost finished applications
> which were working fine before.  I checked out the source of those two
> application from our repo and they still build fine like before.  However,
> when I deploy them and try to add a New record I get a trails runtime
> exception.  I attached it
> http://www.nabble.com/file/p22280067/Screenshot.png Screenshot.png .  Also I
> get a different but consistent error when I try to search (exception also
> attached  http://www.nabble.com/file/p22280067/Screenshot-1.png
> Screenshot-1.png ).  This happens regardless of which Object I test.
>
> The only thing that could have changed are library updates.  I did not
> bother carrying back my $HOME/.m2/ directory cause I thought I'd simply let
> maven download them all over again during first build.
>
> I really need to get those application running again as they are for clients
> so any help will be greatly appreciated.
>
> Regards,
>
> --
> GH
> --
> View this message in context: http://www.nabble.com/Application-not-working-after-upgrade-tp22280067p22280067.html
> Sent from the Trails - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Application not working after upgrade

by ghachey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Are you using snapshots versions?"

Yes and I thought that could have been one possible source of the problem.  I have saved my old snapshot and will try it later on today.

"Are Those errors from running "jetty:run" or from a deployed war?"

I don't run jetty or tomcat from maven I deploy direct to my tomcat install (5.5.26-5)

"Which jdk version are you using?"

ghachey@solomon:~$ java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_16-b02, mixed mode)

"Which maven version?"

2.0.9-2

--
GH

Re: Application not working after upgrade

by Alejandro Scandroli-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi GH

On Mon, Mar 2, 2009 at 9:17 PM, ghachey <ghachey@...> wrote:
>
> "Are you using snapshots versions?"
>
> Yes and I thought that could have been one possible source of the problem.
> I have saved my old snapshot and will try it later on today.
>

That could be it!
Check the changes in the latest snapshots.
http://svn.trails.codehaus.org/changelog/trails/branches/trails-1.2.x?cs=1071

You may need to update your hivemind.xml
http://svn.trails.codehaus.org/browse/trails/branches/trails-1.2.x/archetypes/trails-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/hivemodule.xml?r1=963&r2=1071

and your applicationContext.xml
http://svn.trails.codehaus.org/browse/trails/branches/trails-1.2.x/archetypes/trails-archetype/src/main/resources/archetype-resources/src/main/resources/applicationContext.xml?r1=963&r2=1071

This is a very tiny change that allows contributions to the
BuilderDirector (TRAILS-174)

Update those two files and I think you should be alright.

Saludos.
Alejandro.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Application not working after upgrade

by ghachey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>Check the changes in the latest snapshots.
>http://svn.trails.codehaus.org/changelog/trails/branches/trails-1.2.x?cs=1071

>You may need to update your hivemind.xml
>http://svn.trails.codehaus.org/browse/trails/branches/trails-1.2.x/archetypes/trails-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/hivemodule.xml?r1=963&r2=1071

>and your applicationContext.xml
>http://svn.trails.codehaus.org/browse/trails/branches/trails-1.2.x/archetypes/trails-archetype/src/main/resources/archetype-resources/src/main/resources/applicationContext.xml?r1=963&r2=1071

>This is a very tiny change that allows contributions to the
>BuilderDirector (TRAILS-174)

These two changes fixed the first error (runtime error on adding a New record).  However, I am still getting a java.lang.IncompatibleClassChangeError runtime error when trying to search.  I don't see any relevant latest changes in the subversion repo.  Any idea?

Thx

--
GH

Re: Application not working after upgrade

by Alejandro Scandroli-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi GH

No idea, I couldn't reproduce the error in any way.
It may be related to the same change, the 88th line of SearchForm is
                        setModel(getBuilderDirector().createNewInstance(getClassDescriptor().getType()));

Can you give me some more details?
Do you see this error in the examples too?

Alejandro.

On Tue, Mar 3, 2009 at 1:52 AM, ghachey <ghachey@...> wrote:

>
>>Check the changes in the latest snapshots.
>>http://svn.trails.codehaus.org/changelog/trails/branches/trails-1.2.x?cs=1071
>
>>You may need to update your hivemind.xml
>>http://svn.trails.codehaus.org/browse/trails/branches/trails-1.2.x/archetypes/trails-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/hivemodule.xml?r1=963&r2=1071
>
>>and your applicationContext.xml
>>http://svn.trails.codehaus.org/browse/trails/branches/trails-1.2.x/archetypes/trails-archetype/src/main/resources/archetype-resources/src/main/resources/applicationContext.xml?r1=963&r2=1071
>
>>This is a very tiny change that allows contributions to the
>>BuilderDirector (TRAILS-174)
>
> These two changes fixed the first error (runtime error on adding a New
> record).  However, I am still getting a
> java.lang.IncompatibleClassChangeError runtime error when trying to search.
> I don't see any relevant latest changes in the subversion repo.  Any idea?
>
> Thx
>
> --
> GH
> --
> View this message in context: http://www.nabble.com/Application-not-working-after-upgrade-tp22280067p22300463.html
> Sent from the Trails - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Application not working after upgrade

by ghachey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


>Can you give me some more details?
>Do you see this error in the examples too?

I have only tested the recipe example but it works fine.

I see the same error for ALL my object models for both my applications so I am wondering if its not something common to all of my objects I did wrong.  I include an example of one of my objects attached here Complaint.java.

Many thanks,

--
GH

Re: Application not working after upgrade

by Kalle Korhonen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Quickly glancing at your class it looks ok. I'd be more inclined to think it's some kind of classpath problem (multiple versions of Tapestry, Trails servlet-api in you classpath perhaps?), but sorry I don't have any definite answer. Given that you can run the recip app ok, maybe try running your applications the same way (via mvn jetty:run for example).

Kalle


On Wed, Mar 4, 2009 at 11:03 PM, ghachey <ghachey@...> wrote:


>Can you give me some more details?
>Do you see this error in the examples too?

I have only tested the recipe example but it works fine.

I see the same error for ALL my object models for both my applications so I
am wondering if its not something common to all of my objects I did wrong.
I include an example of one of my objects attached here
http://www.nabble.com/file/p22346263/Complaint.java Complaint.java .

Many thanks,

--
GH
--
View this message in context: http://www.nabble.com/Application-not-working-after-upgrade-tp22280067p22346263.html
Sent from the Trails - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Re: Application not working after upgrade

by ghachey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>Quickly glancing at your class it looks ok. I'd be more inclined to think
>it's some kind of classpath problem (multiple versions of Tapestry, Trails
>servlet-api in you classpath perhaps?), but sorry I don't have any definite
>answer. Given that you can run the recip app ok, maybe try running your
>applications the same way (via mvn jetty:run for example).

ok...I should have pin pointed that one sooner.  As soon as you said multiple version of ... I realized my problem.  I had recently changed my pom.xml file to use trails-core.1.2.2-SNAPSHOT to get rid of a particular bug that was affecting me but continued using trails-hibernate.1.2.1 and trails-test.1.2.1.  Obviously this was going to break sooner or later.

Many thanks,

--
GH

Re: Application not working after upgrade

by Kalle Korhonen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Glad to hear you got it solved. Yeah unfortunately you need to hit the same problem a few times before you start recognizing that issue as the likely culprit.

Kalle


On Thu, Mar 5, 2009 at 12:48 PM, ghachey <ghachey@...> wrote:

>Quickly glancing at your class it looks ok. I'd be more inclined to think
>it's some kind of classpath problem (multiple versions of Tapestry, Trails
>servlet-api in you classpath perhaps?), but sorry I don't have any definite
>answer. Given that you can run the recip app ok, maybe try running your
>applications the same way (via mvn jetty:run for example).

ok...I should have pin pointed that one sooner.  As soon as you said
multiple version of ... I realized my problem.  I had recently changed my
pom.xml file to use trails-core.1.2.2-SNAPSHOT to get rid of a particular
bug that was affecting me but continued using trails-hibernate.1.2.1 and
trails-test.1.2.1.  Obviously this was going to break sooner or later.

Many thanks,

--
GH
--
View this message in context: http://www.nabble.com/Application-not-working-after-upgrade-tp22280067p22360305.html
Sent from the Trails - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email