Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!

Aayushya Devmurari

Greenhorn
+ Follow
since Jun 24, 2012
Aayushya likes ...
Fedora
Hi all this is Aayushya from India ,
I am a student of Master of Computer Application of Maharaja Sayajirao University of Vadodara. I am 27yrs and my qualification is B.Sc , M.Sc and now doing MCA.
Vadodara, Gujarat, India.
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Aayushya Devmurari

Update : Again I faced this error while editing(updating) the client location entity, but this time I tried to replicate it without restarting the server, I couldn't replicated it. Now this error wasn't earlier there, my id is a uuid generated by hibernate using the system-uuid generator and strategy is uuid, I am using hibernate version 3.2.6 GA.
Hello all,
In my application I get the following exception when I keep on restarting and stopping the server. If I restart the server and before that I remove all the temporary files, then this works nice. I want to know the reason why this thing is happening, I am using appfuse 2.5, I am using struts2,hibernate 3.2, Spring 2.5 along with java 6 and run the application on tomcat 6.0.38. I know that the id of an instance is being changed, I debug the program and found that the value gets changed while the struts is calling the getter method of id in ClientLocation. The thing is its happening sometimes and sometimes it doesn't happen.


[myApp] 2014-05-14 15:30:08,449 ERROR [http-9090-5] exceptionError_jsp._jspService(135) | org.springframework.orm.hibernate3.HibernateSystemException: identifier of an instance of com.abc.myApp.model.ClientLocation was altered from 8abd81ab45bbcf980145bc10b2ea0008 to [Ljava.lang.String;@119adfb; nested exception is org.hibernate.HibernateException: identifier of an instance ofcom.abc.myApp.model.ClientLocation was altered from 8abd81ab45bbcf980145bc10b2ea0008 to [Ljava.lang.String;@119adfb
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:661)
at org.springframework.orm.hibernate3.HibernateTransactionManager.convertHibernateAccessException(HibernateTransactionManager.java:738)
at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:614)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:709)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:678)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:321)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy46.save(Unknown Source)
at com.abc.myApp.webapp.action.ClientLocationAction.save(ClientLocationAction.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:360)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:228)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:202)
at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:177)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)
at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)
at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.intercept(ParametersInterceptor.java:147)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)
at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:105)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)
at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:204)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)
at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:74)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)
at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:115)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)
at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:143)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)
at com.opensymphony.xwork2.interceptor.PrepareInterceptor.intercept(PrepareInterceptor.java:115)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.intercept(ParametersInterceptor.java:147)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)
at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:156)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)
at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:124)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)
at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:180)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)
at com.abc.myApp.webapp.interceptor.RoleBasedTimeoutInterceptor.intercept(RoleBasedTimeoutInterceptor.java:33)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:200)
at org.apache.struts2.impl.StrutsActionProxy$1.call(StrutsActionProxy.java:27)
at org.apache.struts2.impl.StrutsActionProxy$1.call(StrutsActionProxy.java:26)
at org.apache.struts2.impl.RequestContextImpl.callInContext(RequestContextImpl.java:152)
at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:25)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:330)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:256)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:118)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:350)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.abc.myApp.webapp.filter.LocaleFilter.doFilterInternal(LocaleFilter.java:58)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.opensymphony.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:42)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
I am currently learning MongoDB and Spring and need to know whether It is compulsory to create Repository classes in MongoDB - Spring based application?? If anyone could help a bit in knowing a more about Spring-MongoDB design a bit.
I have worked on Spring-JPA, I used to create Jpa layer, Dao Layer, Service layer and above all these I used to implement Spring-MVC. So same way what would be the configuration/design of application, which one is mostly used?? I know it depends on the requirement of application but want to know. Thank you in advance.
6 years ago
Mark Spritzler, First of all thank you very much for replying,
Sir the stack trace that I Posted here is all I get, I ran the application again and checked that.
This is from an example which I got online here : http://www.mkyong.com/mongodb/spring-data-mongodb-hello-world-example/
I am not getting why others can run it and I can not.
6 years ago
Spring-data and MongoDB integration : noSuchbeandefinitionexception : No bean name "mongoTemplate" is defined.

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'mongoTemplate' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:568)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1102)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:278)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1117)
at com.discusit.main.MainApp.main(MainApp.java:25)

XML(Application-context) is :

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:mongo="http://www.springframework.org/schema/data/mongo"
xsi:schemaLocation="http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/data/mongo
http://www.springframework.org/schema/data/mongo/spring-mongo-1.0.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<!-- <mongo:mongo host="127.0.0.1" port="27017" /> -->
<bean id="mongo" class="com.mongodb.Mongo" >
<constructor-arg name="host" value="127.0.0.1" />
<constructor-arg name="port" value="27017" />
</bean>
<!-- Following line not needed when you create instance of MongoOpearations
and MongoTemplate inside the main method <mongo:db-factory dbname="firstMongoDB"
/> -->
<context:component-scan base-package="com.discusit"></context:component-scan>
<!-- TRYING WITH MongoTemplate -->
<bean id="mongoTemplate" class="org.springframework.data.mongodb.core.MongoTemplate">
<constructor-arg ref="mongo" />
<constructor-arg name="databaseName" value="test" />
</bean>
</beans>

Don't know what is wrong.
6 years ago
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
6 years ago