[mashup-dev] Error in my latest build

Tyrell Perera tyrell at wso2.com
Fri Jan 18 09:37:55 PST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I just did a local build and was working with it. After a while I got a
500 internal server error from tomcat with the following stack trace.
The UI basically breaks because of this.

The error goes away after a server restart and re-appears in a while.

Looks like it's originating from WSAS.


ERROR [2008-01-18 21:32:07,582]  Exception Processing
ErrorPage[errorCode=500, location=/error.jsp]
org.apache.jasper.JasperException: Exception in JSP: /header.jsp:29

26: <%@ page import="org.wso2.mashup.utils.QueryResult" %>
27: <%@ page import="org.wso2.mashup.utils.QueryResults" %>
28: <%@ page import="org.wso2.mashup.webapp.identity.InfoCardHandler" %>
29: <%@ page import="org.wso2.mashup.webapp.identity.RegistrationBean" %>
30: <%@ page import="org.wso2.mashup.webapp.userprofile.User" %>
31: <%@ page import="org.wso2.mashup.webapp.userprofile.UserQuery" %>
32: <%@ page import="org.wso2.mashup.webapp.utils.QueryParamUtils" %>


Stacktrace:
        at
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
        at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
        at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
        at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
        at
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363)
        at
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284)
        at
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:228)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
ERROR [2008-01-18 21:34:40,110]  Unable to retrieve all users
java.lang.NoSuchMethodError:
org.wso2.wsas.persistence.dataobject.ServiceGroupDO.getHibernateLazyInitializer()Lorg/hibernate/proxy/LazyInitializer;
        at
org.wso2.wsas.persistence.dataobject.ServiceGroupDO$$EnhancerByCGLIB$$eed6ff83.getHibernateLazyInitializer(<generated>)
        at
org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:274)
        at org.hibernate.type.EntityType.resolve(EntityType.java:303)
        at
org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:116)
        at
org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:842)
        at org.hibernate.loader.Loader.doQuery(Loader.java:717)
        at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
        at org.hibernate.loader.Loader.loadCollection(Loader.java:1919)
        at
org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:36)
        at
org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:520)
        at
org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:60)
        at
org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1676)
        at
org.hibernate.collection.AbstractPersistentCollection.forceInitialization(AbstractPersistentCollection.java:454)
        at
org.hibernate.engine.StatefulPersistenceContext.initializeNonLazyCollections(StatefulPersistenceContext.java:755)
        at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:229)
        at org.hibernate.loader.Loader.doList(Loader.java:2145)
        at
org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
        at org.hibernate.loader.Loader.list(Loader.java:2024)
        at
org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)
        at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1533)
        at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
        at org.wso2.wsas.persistence.dao.UserDAO.getUsers(UserDAO.java:50)
        at
org.wso2.wsas.persistence.PersistenceManager.getUsers(PersistenceManager.java:269)
        at
org.wso2.wsas.admin.service.UserAdmin.getUserNames(UserAdmin.java:290)
        at
org.wso2.mashup.realm.wsas.HybridSQLStorage.getUserRoles(HybridSQLStorage.java:222)
        at
org.wso2.usermanager.readwrite.DefaultAuthorizer.getUserAuthorizationConsideringRoles(DefaultAuthorizer.java:231)
        at
org.wso2.usermanager.readwrite.DefaultAuthorizer.isUserAuthorized(DefaultAuthorizer.java:60)
        at
org.wso2.usermanager.acl.realm.ACLUserStoreReader.doAuthorizationToReadRole(ACLUserStoreReader.java:89)
        at
org.wso2.usermanager.acl.realm.ACLUserStoreReader.getUserRoles(ACLUserStoreReader.java:76)
        at
org.wso2.mashup.webapp.utils.RegistryUtils.isAdminRole(RegistryUtils.java:132)
        at
org.apache.jsp.taskbar_jsp._jspService(org.apache.jsp.taskbar_jsp:155)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
        at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
        at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
        at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
        at
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:416)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at
org.wso2.mashup.transport.ServiceUIFilter.doFilter(ServiceUIFilter.java:197)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
ERROR [2008-01-18 21:34:40,128]  Servlet.service() for servlet jsp threw
exception
java.lang.RuntimeException: Unable to retrieve all users
        at org.wso2.wsas.persistence.dao.UserDAO.getUsers(UserDAO.java:58)
        at
org.wso2.wsas.persistence.PersistenceManager.getUsers(PersistenceManager.java:269)
        at
org.wso2.wsas.admin.service.UserAdmin.getUserNames(UserAdmin.java:290)
        at
org.wso2.mashup.realm.wsas.HybridSQLStorage.getUserRoles(HybridSQLStorage.java:222)
        at
org.wso2.usermanager.readwrite.DefaultAuthorizer.getUserAuthorizationConsideringRoles(DefaultAuthorizer.java:231)
        at
org.wso2.usermanager.readwrite.DefaultAuthorizer.isUserAuthorized(DefaultAuthorizer.java:60)
        at
org.wso2.usermanager.acl.realm.ACLUserStoreReader.doAuthorizationToReadRole(ACLUserStoreReader.java:89)
        at
org.wso2.usermanager.acl.realm.ACLUserStoreReader.getUserRoles(ACLUserStoreReader.java:76)
        at
org.wso2.mashup.webapp.utils.RegistryUtils.isAdminRole(RegistryUtils.java:132)
        at
org.apache.jsp.taskbar_jsp._jspService(org.apache.jsp.taskbar_jsp:155)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
        at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
        at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
        at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
        at
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:416)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at
org.wso2.mashup.transport.ServiceUIFilter.doFilter(ServiceUIFilter.java:197)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NoSuchMethodError:
org.wso2.wsas.persistence.dataobject.ServiceGroupDO.getHibernateLazyInitializer()Lorg/hibernate/proxy/LazyInitializer;
        at
org.wso2.wsas.persistence.dataobject.ServiceGroupDO$$EnhancerByCGLIB$$eed6ff83.getHibernateLazyInitializer(<generated>)
        at
org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:274)
        at org.hibernate.type.EntityType.resolve(EntityType.java:303)
        at
org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:116)
        at
org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:842)
        at org.hibernate.loader.Loader.doQuery(Loader.java:717)
        at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
        at org.hibernate.loader.Loader.loadCollection(Loader.java:1919)
        at
org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:36)
        at
org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:520)
        at
org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:60)
        at
org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1676)
        at
org.hibernate.collection.AbstractPersistentCollection.forceInitialization(AbstractPersistentCollection.java:454)
        at
org.hibernate.engine.StatefulPersistenceContext.initializeNonLazyCollections(StatefulPersistenceContext.java:755)
        at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:229)
        at org.hibernate.loader.Loader.doList(Loader.java:2145)
        at
org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
        at org.hibernate.loader.Loader.list(Loader.java:2024)
        at
org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)
        at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1533)
        at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
        at org.wso2.wsas.persistence.dao.UserDAO.getUsers(UserDAO.java:50)
        ... 45 more


- --
Tyrell Perera
Senior Software Engineer; WSO2, Inc.; http://www.wso2.com/
email: tyrell at wso2.com; cell: +94 77 302 2505

"Oxygenating the Web Service Platform."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHkOPzehFdPcgGx7oRAqsuAKDxpU1FwNF9KyB0bbxBWi1qpBJ7dQCg45hT
Dxa9g4x2MH1/41mARa2Nb58=
=oYf3
-----END PGP SIGNATURE-----



More information about the Mashup-dev mailing list