my dog learned polymorphism*
The moose likes Spring and the fly likes Spring Roo 1.2.2 and Glassfish 3.1.2 deplyment problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Roo 1.2.2 and Glassfish 3.1.2 deplyment problem" Watch "Spring Roo 1.2.2 and Glassfish 3.1.2 deplyment problem" New topic
Author

Spring Roo 1.2.2 and Glassfish 3.1.2 deplyment problem

Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 950
Hi all,


I am trying to setup small Spring Roo application. The setup is STS 2.9.2 , Spring Roo 1.2.2 and the glassfish 3.1.2. After creating new Spring Roo project. I issued only follwing command

web mvc setup

The initial application was successfully built and running on the VFbric default server. When I try to depoly the application on Glassfish The deployment error occurs. The Glassfish is configured through the eclipes server adopter in STS. I am not getting any clue what the exact error is. I guess , the error is due to the nio package , which is throwing the NullPointerException. The full error message is as in attatchment

Pl. help

Thanks


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1666
    
    7

That is really strange.

Spring is getting the the charsets for which support is available in the current Java virtual machine by calling a static method in the from the java.nio.Charset class. This is used for configuring the StringHttpMessageConverter.

Your null pointer is coming out of the charset class..

What versions of spring and java are you running? Try to just call this method yourself once and see if you get a null pointer



This may be a bug in Charset or it may be some sort of permission or other IO error causing this. I did find a similar bug but it is quite old. See here:
http://lists.freebsd.org/pipermail/freebsd-java/2005-August/004243.html


[How To Ask Questions][Read before you PM me]
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 950
Hi Bill,

The problem is due to the wrong placement of JDBC jar file. The problem is resolved after correcting the error.

Thanks
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1666
    
    7

That caused a null pointer in char set? That is a cryptic error for that. Thanks for sharing the solution though.
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 950
Yes, The database using ISO charset and the application is using UTF-8. May be there is a problem while conversion. Previously I put the jdbc jar files in glassfish/endorsed directory. Now I have shifted them to domain_dir/lib directory. I think the problem is not related exactly to the application, but related to glassfish gizzy framework.
Thanks
Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384
Hi!

I know this post is a somewhat old but I am running into the same problem...

I haven't put my jdbc jar in any endorsed directory and yet I get the same issue. Can one of you please elaborate on the solution?

My environment is:
  • Tomcat 7
  • Spring 3.2.3


  • The problem occurs when I run the following tests:


    Here is my mvc-dispatcher-servlet.xml file:



    and finally the stacktrace:



    Can anyone please help?

    Regards,

    J.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Spring Roo 1.2.2 and Glassfish 3.1.2 deplyment problem