This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Learn Java with Math: Using Fun Projects and Games and have Ron Dai on-line!
See this thread for details.
Win a copy of Learn Java with Math: Using Fun Projects and Games this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

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

 
Greenhorn
Posts: 8
Fedora
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
A lot of people cry when they cut onions. The trick is not to form an emotional bond. This tiny ad told me:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!