Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning 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
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

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
 
I can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic