I am new to Jboss server. I am migrating the J2ee application from Weblogic 10.2 to JBoss EAP 6.1.0. While migrating I am getting the below error message. Kindly assist if anyone knows the solution.
The Application successfully gets deployed on the server but when i try to access the application through localhost, it throws a NullPointerException.
ERROR MESSAGE:
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) java.lang.NullPointerException
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at javax.naming.NameImpl.(NameImpl.java:264)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at javax.naming.CompositeName.(CompositeName.java:214)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at org.jboss.as.naming.util.NameParser.parse(NameParser.java:49)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at org.jboss.as.naming.NamingContext.parseName(NamingContext.java:491)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:183)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:179)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at javax.naming.InitialContext.lookup(InitialContext.java:392)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at com.trifecta.pfizer.dao.UserProfileDAO.populate(UserProfileDAO.java:51)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at com.trifecta.pfizer.servlet.PfizerSiteController.doFilter(PfizerSiteController.java:394)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at com.trifecta.pfizer.servlet.PfizerSiteController.performTask(PfizerSiteController.java:163)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at com.trifecta.pfizer.servlet.PfizerSiteController.doPost(PfizerSiteController.java:546)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)
17:34:16,811 ERROR [stderr] (http-localhost/127.0.0.1:8080-2) at java.lang.Thread.run(Thread.java:619)
please help me in resolving the issue?
CODE:
try
{
if(sqlHome == null)
{
/* Properties jndiProps = new Properties();
jndiProps.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
jndiProps.put(Context.PROVIDER_URL,"jnp://localhost:9990");
jndiProps.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
*/ // create a context passing these properties
Context ctx = new InitialContext();
System.out.println("check1...");
//Object obj = ctx.lookup("SQLHelperSFOHome");
//java:app/SQLHelperSFO
System.out.println("check2...");
//sqlHome=(SQLHelperSFOHome)PortableRemoteObject.narrow(obj,SQLHelperSFOHome.class);
//System.out.println(PortableRemoteObject.narrow(ctx.lookup("SQLHelperSFOHome"),SQLHelperSFOHome.class).toString()+"2");
sqlHome = (SQLHelperSFOHome)PortableRemoteObject.narrow(ctx.lookup("SQLHelperSFOHome"),SQLHelperSFOHome.class);
}
sqlsfo = sqlHome.create();
sqlsfo.initialize(DATASOURCE_JNDINAME);
}
catch(Exception e)
{
e.printStackTrace();
throw new DataAccessException("UserProfileDAO","populate",e.getMessage());
}
I tried changing the initial context in the following manner:
Properties jndiProps = new Properties();
jndiProps.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
jndiProps.put(Context.PROVIDER_URL,"jnp://localhost:9990");
jndiProps.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
Context ctx = new InitialContext(jndiProps);
Also, The sysout statements used in this method are not displayed on the console.
Instead of using
ctx.lookup("EJBclassName");
we used :
ctx.lookup("java:global/EARname/EJBprojectName/EJBclassName!AbsoluteNameOfEJBClass");
it worked.
Related
i have an Liferay portal 6.2 ce ga4 jboss bundle up and running with a thrift servlet i wrote for communication between an app and the server. I wanna use Liferay for its User Management only, so i just want to authenticate a User with his credentials through the Liferay api.
I first tried to use the UserLocalServiceUtil, but when i call the Method the Server throws this error :
08:07:13,962 SEVERE [com.liferay.portal.kernel.bean.PortalBeanLocatorUtil] (http--0.0.0.0-8080-1) BeanLocator is null
08:07:13,963 ERROR [stderr] (http--0.0.0.0-8080-1) java.lang.Exception: Stack trace
08:07:13,963 ERROR [stderr] (http--0.0.0.0-8080-1) at java.lang.Thread.dumpStack(Thread.java:1365)
08:07:13,963 ERROR [stderr] (http--0.0.0.0-8080-1) at com.liferay.portal.kernel.bean.PortalBeanLocatorUtil.locate(PortalBeanLocatorUtil.java:74)
08:07:13,964 ERROR [stderr] (http--0.0.0.0-8080-1) at com.liferay.portal.service.UserLocalServiceUtil.getService(UserLocalServiceUtil.java:3417)
08:07:13,964 ERROR [stderr] (http--0.0.0.0-8080-1) at com.liferay.portal.service.UserLocalServiceUtil.getBeanIdentifier(UserLocalServiceUtil.java:1004)
08:07:13,964 ERROR [stderr] (http--0.0.0.0-8080-1) at com.fsu.unired.alarmapp.thrift.implemented.UserAuthenticationHandler.signIn(UserAuthenticationHandler.java:33)
08:07:13,965 ERROR [stderr] (http--0.0.0.0-8080-1) at com.fsu.unired.alarmapp.thrift.generated.UserAuthenticationService$Processor$signIn.getResult(UserAuthenticationService.java:253)
08:07:13,965 ERROR [stderr] (http--0.0.0.0-8080-1) at com.fsu.unired.alarmapp.thrift.generated.UserAuthenticationService$Processor$signIn.getResult(UserAuthenticationService.java:1)
08:07:13,966 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
08:07:13,966 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
08:07:13,966 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.thrift.server.TServlet.doPost(TServlet.java:83)
08:07:13,967 ERROR [stderr] (http--0.0.0.0-8080-1) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
08:07:13,967 ERROR [stderr] (http--0.0.0.0-8080-1) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
08:07:13,968 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
08:07:13,968 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
08:07:13,969 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
08:07:13,969 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
08:07:13,970 ERROR [stderr] (http--0.0.0.0-8080-1) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
08:07:13,970 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
08:07:13,971 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
08:07:13,971 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
08:07:13,972 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
08:07:13,972 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
08:07:13,972 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
08:07:13,973 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
08:07:13,973 ERROR [stderr] (http--0.0.0.0-8080-1) at java.lang.Thread.run(Thread.java:745)
08:07:13,974 ERROR [stderr] (http--0.0.0.0-8080-1) com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator has not been set
08:07:13,974 ERROR [stderr] (http--0.0.0.0-8080-1) at com.liferay.portal.kernel.bean.PortalBeanLocatorUtil.locate(PortalBeanLocatorUtil.java:82)
08:07:13,974 ERROR [stderr] (http--0.0.0.0-8080-1) at com.liferay.portal.service.UserLocalServiceUtil.getService(UserLocalServiceUtil.java:3417)
08:07:13,975 ERROR [stderr] (http--0.0.0.0-8080-1) at com.liferay.portal.service.UserLocalServiceUtil.getBeanIdentifier(UserLocalServiceUtil.java:1004)
08:07:13,975 ERROR [stderr] (http--0.0.0.0-8080-1) at com.fsu.unired.alarmapp.thrift.implemented.UserAuthenticationHandler.signIn(UserAuthenticationHandler.java:33)
08:07:13,975 ERROR [stderr] (http--0.0.0.0-8080-1) at com.fsu.unired.alarmapp.thrift.generated.UserAuthenticationService$Processor$signIn.getResult(UserAuthenticationService.java:253)
08:07:13,976 ERROR [stderr] (http--0.0.0.0-8080-1) at com.fsu.unired.alarmapp.thrift.generated.UserAuthenticationService$Processor$signIn.getResult(UserAuthenticationService.java:1)
08:07:13,976 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
08:07:13,976 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
08:07:13,977 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.thrift.server.TServlet.doPost(TServlet.java:83)
08:07:13,977 ERROR [stderr] (http--0.0.0.0-8080-1) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
08:07:13,977 ERROR [stderr] (http--0.0.0.0-8080-1) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
08:07:13,977 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
08:07:13,978 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
08:07:13,978 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
08:07:13,978 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
08:07:13,979 ERROR [stderr] (http--0.0.0.0-8080-1) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
08:07:13,980 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
08:07:13,980 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
08:07:13,980 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
08:07:13,981 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
08:07:13,981 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
08:07:13,981 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
08:07:13,981 ERROR [stderr] (http--0.0.0.0-8080-1) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
08:07:13,982 ERROR [stderr] (http--0.0.0.0-8080-1) at java.lang.Thread.run(Thread.java:745)
I really don't come any further. I also looked at com.liferay.portal.security.auth but cannot find any classes. I just want a method that i can call that checks if a user is registered.
Here is my Code that is running on the servlet.
import org.apache.thrift.TException;
import com.fsu.unired.alarmapp.thrift.generated.User;
import com.fsu.unired.alarmapp.thrift.generated.UserAuthenticationService;
import com.liferay.portal.service.UserLocalServiceUtil;
public class UserAuthenticationHandler implements UserAuthenticationService.Iface {
#Override
public User signIn(String forceMail, String password){
System.out.println("signIn called...");
User usr = new User();
System.out.println("returning user:" + usr.toString());
try {
int status = com.liferay.portal.service.UserLocalServiceUtil.authenticateByEmailAddress(0, forceMail, password, null,null, null);
System.out.println("Status : " +status);
switch(status) {
case -1: return null;
case 1: System.out.println("case 1");
com.liferay.portal.model.User liferayUser = UserLocalServiceUtil.getUserByEmailAddress(0, forceMail);
System.out.println(liferayUser.toString());
}
return usr;
}
catch(Exception e) {
e.printStackTrace();
}
return usr;
}
I have the portal-service.jar included. And here is my web.xml :
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<display-name>alarm-thrift-servlet</display-name>
<servlet>
<description></description>
<display-name>ThriftServlet</display-name>
<servlet-name>ThriftServlet</servlet-name>
<servlet-class>com.fsu.unired.alarmapp.servlet.ThriftServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ThriftServlet</servlet-name>
<url-pattern>/ThriftServlet</url-pattern>
</servlet-mapping>
</web-app>
I'm assuming that you're deploying a plain web application - you might want to try a Liferay-web plugin. This is very similar but is aware of Liferay being present and might initialize the infrastructure that Liferay's API needs. Otherwise you'll have to do this initialization yourself.
I am currently integrating from solr 1.4 to solr 3.4. After executing the codes, I got the following error message.
15:56:09,575 ERROR [STDERR] [SolrServerException] QueryResponse SOLRSearchWorker. generateResponse(SolrQuery, SolrServer, SolrRequest.METHOD) message:
15:56:13,150 ERROR [STDERR] org.apache.solr.client.solrj.SolrServerException: java.lang.RuntimeException: Invalid version or the data in not in 'javabin' format
15:56:13,152 ERROR [STDERR] at org.apache.solr.client.solrj.impl.LBHttpSolrServer.request(LBHttpSolrServer.java:217)
15:56:13,152 ERROR [STDERR] at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89)
15:56:13,153 ERROR [STDERR] at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:122)
15:56:13,153 ERROR [STDERR] at org.cambridge.ebooks.production.solr.util.SOLRSearchWorker.generateResponse(SOLRSearchWorker.java:153)
15:56:13,154 ERROR [STDERR] at org.cambridge.ebooks.production.solr.util.SOLRSearchWorker.searchCore(SOLRSearchWorker.java:58)
15:56:13,155 ERROR [STDERR] at org.cambridge.ebooks.production.solr.util.EBookSearchWorker.searchBookCore(EBookSearchWorker.java:161)
15:56:13,155 ERROR [STDERR] at org.cambridge.ebooks.production.ebook.EBookWorker.getQuickSearchResult(EBookWorker.java:113)
15:56:13,156 ERROR [STDERR] at org.cambridge.ebooks.production.ebook.EBookManagedBean.doSearch(EBookManagedBean.java:248)
15:56:13,156 ERROR [STDERR] at org.cambridge.ebooks.production.ebook.EBookManagedBean.getInitBooks(EBookManagedBean.java:163)
15:56:13,157 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:56:13,157 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
15:56:13,158 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
15:56:13,158 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
15:56:13,159 ERROR [STDERR] at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
15:56:13,159 ERROR [STDERR] at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
15:56:13,160 ERROR [STDERR] at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:71)
15:56:13,160 ERROR [STDERR] at org.apache.el.parser.AstValue.getValue(AstValue.java:118)
15:56:13,161 ERROR [STDERR] at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
15:56:13,161 ERROR [STDERR] at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)
15:56:13,162 ERROR [STDERR] at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:190)
15:56:13,162 ERROR [STDERR] at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:178)
15:56:13,163 ERROR [STDERR] at javax.faces.component.UIOutput.getValue(UIOutput.java:164)
15:56:13,163 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:201)
15:56:13,164 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:351)
15:56:13,164 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:160)
15:56:13,165 ERROR [STDERR] at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:879)
15:56:13,165 ERROR [STDERR] at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)
15:56:13,166 ERROR [STDERR] at javax.faces.render.Renderer.encodeChildren(Renderer.java:164)
15:56:13,166 ERROR [STDERR] at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:849)
15:56:13,167 ERROR [STDERR] at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1643)
15:56:13,168 ERROR [STDERR] at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646)
15:56:13,168 ERROR [STDERR] at com.sun.faces.application.view.JspViewHandlingStrategy.doRenderView(JspViewHandlingStrategy.java:427)
15:56:13,169 ERROR [STDERR] at com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:229)
15:56:13,169 ERROR [STDERR] at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:127)
15:56:13,170 ERROR [STDERR] at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:269)
15:56:13,171 ERROR [STDERR] at org.apache.myfaces.tomahawk.application.ResourceViewHandlerWrapper.renderView(ResourceViewHandlerWrapper.java:93)
15:56:13,171 ERROR [STDERR] at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117)
15:56:13,172 ERROR [STDERR] at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
15:56:13,172 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
15:56:13,173 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)
15:56:13,173 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
15:56:13,174 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:56:13,174 ERROR [STDERR] at org.cambridge.ebooks.production.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:62)
15:56:13,175 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
15:56:13,175 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:56:13,176 ERROR [STDERR] at org.cambridge.ebooks.production.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:69)
15:56:13,177 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
15:56:13,177 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:56:13,178 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
15:56:13,178 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
15:56:13,179 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:56:13,180 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
15:56:13,180 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
15:56:13,181 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
15:56:13,181 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
15:56:13,182 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
15:56:13,183 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
15:56:13,183 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
15:56:13,184 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
15:56:13,184 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
15:56:13,185 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
15:56:13,185 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
15:56:13,186 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
15:56:13,186 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
15:56:13,187 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
15:56:13,188 ERROR [STDERR] at java.lang.Thread.run(Thread.java:662)
15:56:13,189 ERROR [STDERR] Caused by: java.lang.RuntimeException: Invalid version or the data in not in 'javabin' format
15:56:13,189 ERROR [STDERR] at org.apache.solr.common.util.JavaBinCodec.unmarshal(JavaBinCodec.java:99)
15:56:13,190 ERROR [STDERR] at org.apache.solr.client.solrj.impl.BinaryResponseParser.processResponse(BinaryResponseParser.java:39)
15:56:13,190 ERROR [STDERR] at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:466)
15:56:13,191 ERROR [STDERR] at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:243)
15:56:13,191 ERROR [STDERR] at org.apache.solr.client.solrj.impl.LBHttpSolrServer.request(LBHttpSolrServer.java:205)
15:56:13,192 ERROR [STDERR] ... 65 more
Then, I tried to debug and found out that the Query response is returning null because of this java bin format. I need help to fix this code, I tried all the possible solution I found in internet, but no luck. Anyone can help?? this is for my major release of project in my company.
Thanks!
This is usually related to either a version difference in Java itself between the server and the client, but more often it's caused by the server throwing an error and the application container returning an error page instead of the expected javabin formatted response.
Check the server log to see if it's not throwing an exception, and then attempt the same request in your browser (the server should have a log of the query and the parameters included) to see what the server actually responds with.
While I am trying to access webservice url from GateIn3.4(JBOSS AS 7) it is redirecting to org.exoplatform.services.rest.impl.ResponseImpl$ResponseBuilderImpl and the following error occurs org.exoplatform.services.rest.impl.ResponseImpl$ResponseBuilderImpl.<init>(ResponseImpl.java:217). I am attaching the entire log here.
18:11:32,148 ERROR [stderr] (http--0.0.0.0-8087-1) Caused by: org.apache.cxf.jaxrs.client.ClientWebApplicationException: java.lang.NullPointerException
18:11:32,149 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.handleResponse(WebClient.java:839)
18:11:32,149 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:816)
18:11:32,150 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:743)
18:11:32,150 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:717)
18:11:32,151 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:344)
18:11:32,151 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:469)
18:11:32,152 ERROR [stderr] (http--0.0.0.0-8087-1) at com.radiant.cisms.services.WorkflowProcessService.getBusinessRuleList(WorkflowProcessService.java:455)
18:11:32,152 ERROR [stderr] (http--0.0.0.0-8087-1) at com.radiant.cisms.services.WorkflowProcessService$$FastClassByCGLIB$$b715c2f2.invoke(<generated>)
18:11:32,153 ERROR [stderr] (http--0.0.0.0-8087-1) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
18:11:32,154 ERROR [stderr] (http--0.0.0.0-8087-1) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
18:11:32,154 ERROR [stderr] (http--0.0.0.0-8087-1) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
18:11:32,155 ERROR [stderr] (http--0.0.0.0-8087-1) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
18:11:32,156 ERROR [stderr] (http--0.0.0.0-8087-1) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
18:11:32,156 ERROR [stderr] (http--0.0.0.0-8087-1) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
18:11:32,157 ERROR [stderr] (http--0.0.0.0-8087-1) at com.radiant.cisms.services.WorkflowProcessService$$EnhancerByCGLIB$$4bcf15b7.getBusinessRuleList(<generated>)
18:11:32,158 ERROR [stderr] (http--0.0.0.0-8087-1) at com.radiant.cisms.view.bean.BusinessRuleBean.getBusinessRuleList(BusinessRuleBean.java:69)
18:11:32,159 ERROR [stderr] (http--0.0.0.0-8087-1) ... 307 more
18:11:32,159 ERROR [stderr] (http--0.0.0.0-8087-1) Caused by: java.lang.NullPointerException
18:11:32,159 ERROR [stderr] (http--0.0.0.0-8087-1) at org.exoplatform.services.rest.impl.ResponseImpl$ResponseBuilderImpl.<init>(ResponseImpl.java:217)
18:11:32,160 ERROR [stderr] (http--0.0.0.0-8087-1) at org.exoplatform.services.rest.impl.ResponseImpl$ResponseBuilderImpl.clone(ResponseImpl.java:284)
18:11:32,161 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.AbstractClient.setResponseBuilder(AbstractClient.java:381)
18:11:32,161 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.handleResponse(WebClient.java:829)
18:11:32,162 ERROR [stderr] (http--0.0.0.0-8087-1) ... 322 more*
Expecting a solution...
I can't do deep cloning since the class is from a third party source. Is there some other way to solve this. When I am running the code in a sample progrm it is working fine. But the issue happens when executing from within the application which is deployed in gateIn 3.6 with JBOSS7. Is any other configurations should I do ?Or can it be due to some jar mismatch?
The error is java.lang.NullPointerException in the constructor of ResponseBuilderImpl. When it call clone to instantiate the object instance it might not copy some field values. You need to use deep clone technique.
I am installing our ERP Solution developed in Java onto my IBM System X3750 M4 Server. I have downloaded and installed the JRE from IBM; the package name is: ibm-java-x86_64-jre-7.0-5.0.x86_64.
My Application Server is JBoss 6.0 and Client Server is Apache Tomcat 7.0.14 and Database is MYSQL 5.1.69.
While starting the JBoss Server I am getting an error as given in the bottom of my Question.
Any idea on how can it be resolved?
18:03:29,265 INFO [AbstractServer] Starting: JBossAS [6.0.0.Final "Neo"]
18:03:30,482 ERROR [STDERR] javax.management.NotCompliantMBeanException: Class does not expose a management interface: java.lang.Object
18:03:30,483 ERROR [STDERR] at org.jboss.mx.metadata.MBeanCapability.of(MBeanCapability.java:101)
18:03:30,483 ERROR [STDERR] at org.jboss.mx.metadata.MBeanCapability.of(MBeanCapability.java:99)
18:03:30,483 ERROR [STDERR] at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:200)
18:03:30,483 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:03:30,483 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)
18:03:30,484 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:03:30,484 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:607)
18:03:30,484 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
18:03:30,484 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
18:03:30,484 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
18:03:30,484 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
18:03:30,485 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
18:03:30,485 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
18:03:30,485 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271)
18:03:30,485 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)
18:03:30,485 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1443)
18:03:30,485 ERROR [STDERR] at java.security.AccessController.doPrivileged(AccessController.java:330)
18:03:30,486 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1438)
18:03:30,486 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:378)
18:03:30,486 ERROR [STDERR] at java.lang.management.ManagementFactory.registerPlatformBeans(ManagementFactory.java:786)
18:03:30,486 ERROR [STDERR] at java.lang.management.ManagementFactory.access$100(ManagementFactory.java:42)
18:03:30,486 ERROR [STDERR] at java.lang.management.ManagementFactory$1.run(ManagementFactory.java:373)
18:03:30,486 ERROR [STDERR] at java.security.AccessController.doPrivileged(AccessController.java:274)
18:03:30,487 ERROR [STDERR] at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:371)
18:03:30,487 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:03:30,487 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)
18:03:30,487 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:03:30,487 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:607)
18:03:30,487 ERROR [STDERR] at org.jboss.system.server.jmx.JMXKernel.start(JMXKernel.java:182)
18:03:30,488 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:03:30,488 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)
18:03:30,488 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:03:30,488 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:607)
18:03:30,488 ERROR [STDERR] at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60)
18:03:30,488 ERROR [STDERR] at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168)
18:03:30,489 ERROR [STDERR] at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
18:03:30,489 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257)
18:03:30,489 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
18:03:30,489 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125)
18:03:30,489 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)
18:03:30,490 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202)
18:03:30,490 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
18:03:30,490 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
18:03:30,490 ERROR [STDERR] at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
18:03:30,490 ERROR [STDERR] at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
18:03:30,490 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
18:03:30,491 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)
18:03:30,491 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)
18:03:30,491 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)
18:03:30,491 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)
18:03:30,491 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)
18:03:30,491 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)
18:03:30,492 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894)
18:03:30,492 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641)
18:03:30,492 ERROR [STDERR] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:319)
18:03:30,492 ERROR [STDERR] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:297)
18:03:30,492 ERROR [STDERR] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
18:03:30,493 ERROR [STDERR] at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)
18:03:30,493 ERROR [STDERR] at org.jboss.bootstrap.impl.mc.deployer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:92)
18:03:30,493 ERROR [STDERR] at org.jboss.bootstrap.impl.mc.deployer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:193)
18:03:30,493 ERROR [STDERR] at org.jboss.bootstrap.impl.mc.server.AbstractMCServerBase.bootstrapMcAndDescriptors(AbstractMCServerBase.java:310)
18:03:30,493 ERROR [STDERR] at org.jboss.bootstrap.impl.mc.server.AbstractMCServerBase.doStart(AbstractMCServerBase.java:257)
18:03:30,493 ERROR [STDERR] at org.jboss.bootstrap.impl.as.server.AbstractJBossASServerBase.doStart(AbstractJBossASServerBase.java:381)
18:03:30,494 ERROR [STDERR] at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:413)
18:03:30,494 ERROR [STDERR] at java.lang.Thread.run(Thread.java:781)
I was actually missing some libraries in jboss that caused the error. Because it was actually happened when I tried to make jboss light by removing unused jars. Any way restoring the jboss libraries took away this error.
I'm using Seam, JBoss Jbpm and Resteasy. I have a very simple process definition:
<start-state name="create">
<transition name="send" to="inbox" />
</start-state>
<node name="inbox">
<action expression="#{test.sayHello}" />
<transition name="acknowledge" to="acknowledged" />
</node>
<end-state name="acknowledged" />
This is the class that supposedly would start the process
#Name("webservice")
#Path("/webservice")
#AutoCreate
public class WebService
{
#GET
#CreateProcess(definition="Blah")
#Transactional
public String getSomething() throws Exception
{
...
}
}
The process definition is also very simple:
http://docs.jboss.org/jbpm/xsd/jpdl-3.2.xsd"
name="Blah">
<start-state name="create">
<transition name="send" to="inbox" />
</start-state>
<node name="inbox">
<action expression="#{test.sayHello}" />
<transition name="acknowledge" to="acknowledged" />
</node>
<end-state name="acknowledged" />
Then, when I try to call the WebService, I get the following Stack Trace:
10:38:41,443 ERROR [STDERR] Caused by: org.jbpm.JbpmException: couldn't find process definition 'Blah'
10:38:41,443 ERROR [STDERR] at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:158)
10:38:41,443 ERROR [STDERR] at org.jbpm.JbpmContext.newProcessInstanceForUpdate(JbpmContext.java:417)
10:38:41,444 ERROR [STDERR] at org.jboss.seam.bpm.BusinessProcess.createProcess(BusinessProcess.java:134)
10:38:41,444 ERROR [STDERR] at org.jboss.seam.bpm.BusinessProcess.createProcess(BusinessProcess.java:123)
10:38:41,444 ERROR [STDERR] at org.jboss.seam.bpm.BusinessProcessInterceptor.afterInvocation(BusinessProcessInterceptor.java:108)
10:38:41,444 ERROR [STDERR] at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)
10:38:41,444 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
10:38:41,444 ERROR [STDERR] at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:95)
10:38:41,444 ERROR [STDERR] at org.jboss.seam.util.Work.workInTransaction(Work.java:47)
10:38:41,444 ERROR [STDERR] at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:89)
10:38:41,444 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
10:38:41,445 ERROR [STDERR] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
10:38:41,445 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
10:38:41,445 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
10:38:41,445 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
10:38:41,445 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
10:38:41,445 ERROR [STDERR] at com.locaweb.infra.gridserver.resources.ServerResource_$$_javassist_5.getServerResource(ServerResource_$$_javassist_5.java)
10:38:41,445 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
10:38:41,445 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
10:38:41,447 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
10:38:41,447 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
10:38:41,447 ERROR [STDERR] at org.resteasy.MethodInjectorImpl.invoke(MethodInjectorImpl.java:72)
10:38:41,447 ERROR [STDERR] ... 28 more
10:38:41,448 ERROR [STDERR] Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection
10:38:41,449 ERROR [STDERR] at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
10:38:41,449 ERROR [STDERR] at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
10:38:41,449 ERROR [STDERR] at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
10:38:41,449 ERROR [STDERR] at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
10:38:41,449 ERROR [STDERR] at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
10:38:41,449 ERROR [STDERR] at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
10:38:41,449 ERROR [STDERR] at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
10:38:41,450 ERROR [STDERR] at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
10:38:41,450 ERROR [STDERR] at org.hibernate.loader.Loader.doQuery(Loader.java:673)
10:38:41,450 ERROR [STDERR] at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
10:38:41,450 ERROR [STDERR] at org.hibernate.loader.Loader.doList(Loader.java:2220)
10:38:41,450 ERROR [STDERR] at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
10:38:41,450 ERROR [STDERR] at org.hibernate.loader.Loader.list(Loader.java:2099)
10:38:41,450 ERROR [STDERR] at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
10:38:41,451 ERROR [STDERR] at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
10:38:41,451 ERROR [STDERR] at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
10:38:41,451 ERROR [STDERR] at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
10:38:41,451 ERROR [STDERR] at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
10:38:41,451 ERROR [STDERR] at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:811)
10:38:41,451 ERROR [STDERR] at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:154)
10:38:41,451 ERROR [STDERR] ... 49 more
10:38:41,452 ERROR [STDERR] Caused by: org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: 7f000101:d2f8:4a1fe246:4e status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: 7f000101:d2f8:4a1fe246:4e status: ActionStatus.ABORT_ONLY >))
10:38:41,453 ERROR [STDERR] at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)
10:38:41,453 ERROR [STDERR] at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
10:38:41,453 ERROR [STDERR] at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
10:38:41,453 ERROR [STDERR] ... 64 more
10:38:41,455 ERROR [STDERR] Caused by: org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: 7f000101:d2f8:4a1fe246:4e status: ActionStatus.ABORT_ONLY >)
10:38:41,459 ERROR [STDERR] at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:358)
10:38:41,460 ERROR [STDERR] at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:524)
10:38:41,460 ERROR [STDERR] at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:405)
10:38:41,460 ERROR [STDERR] at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:849)
10:38:41,460 ERROR [STDERR] at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
10:38:41,460 ERROR [STDERR] ... 66 more
10:38:41,461 ERROR [STDERR] Caused by: javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: 7f000101:d2f8:4a1fe246:4e status: ActionStatus.ABORT_ONLY >
10:38:41,462 ERROR [STDERR] at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.checkEnlisted(TxConnectionManager.java:759)
10:38:41,462 ERROR [STDERR] at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:592)
10:38:41,462 ERROR [STDERR] at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:352)
10:38:41,462 ERROR [STDERR] ... 70 more
I'm using a SQLServer Database with two xa-datasources (one for my database and one for Jbpm's Database) with the driver net.sourceforge.jtds.jdbcx.JtdsDataSource. The webservice does use the non-jbpm database.
When I try this without the getSomething() method accessing the hibernate's session of the non-jbpm database it works normally. However, if I inject the session and try the same thing it most of the time doesn't work.
Does anyone know what is happening?