File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Some problem Spring-Jpa-maven, causing java.lang.outofmemory error.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Some problem Spring-Jpa-maven, causing java.lang.outofmemory error.. " Watch "Some problem Spring-Jpa-maven, causing java.lang.outofmemory error.. " New topic
Author

Some problem Spring-Jpa-maven, causing java.lang.outofmemory error..

Aayushya Devmurari
Greenhorn

Joined: Jun 24, 2012
Posts: 8

Hii all,
I am new to spring, I am developing a project which uses Spring, Spring-MVC, JPA. And I am developing my project in layers, Jpa-layer, Dao-layer, service-layer above these layers I am using spring-mvc.
I am using spring tool suite 2.8.1 which has vfabric server 2.6.1, The trouble started after I started development in MVC part of my application. It shows weird error saying Its unable to build my appserverPU (persistence unit) now I managed to solve this trouble by providing import of application-context.xml inside servlet-context.xml. All my xmls are under the META-INF folder ( I am using MAVEN project structure with Maven in sts.) I don't know weather its ok to do so or not.
Here is the link for above question which I posted with more details :
http://stackoverflow.com/questions/16219695/spring-mvc-jpa-with-maven-error-creating-bean

After solving this in this way (don't know right or wrong, but its working) I started my vfabric server it runs fine but when I make changes to any of my controller class it reloads the application and I get java.lang.outofmemory error, I searched over the internet and found a solution and implemented it. But still this error keeps on coming but not after 3-4 reloads but after 8-9 reloads.. I don't know whats wrong I want to know and I want to solve it. before posting here I posted these questions to stackoverflow and spring forum but didn't get any reply. Hope to get some reply here.
I am posting the link of both the questions here :
Spring forum : http://forum.springsource.org/showthread.php?136861-vfabric-server-2-6-1-crashes-periodically-shows-java-lang-outofmemory-error
Above link contains some details of changes I made in setenv.sh to remove the java.lang.outofmemory error.

and following link contains some stacktrace of my error : its way to big and hence I couldn't upload it at once.

http://stackoverflow.com/questions/16250238/error-in-vfabric-in-side-sts-leads-to-hang-server-throws-java-lang-outofmemorye


Aayush
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Some problem Spring-Jpa-maven, causing java.lang.outofmemory error..
 
Similar Threads
java.lang.OutOfMemory
java.lang.outofmemory
java.lang.OutOfMemory
java.lang.outOfMemory in oc4j
java.lang.outOfMemory