04-02-2007 01:24 AM
04-04-2007 11:17 AM
Well we've been looking closer at JCR-RMI and at the moment its entirely busted.
06-27-2007 05:55 AM
Short term: we are testing a patch that should work and we'll get back to you if you are using JCR-RMI. It's very easy to put the patch in place.
08-20-2007 04:21 PM
09-19-2007 07:11 AM
18/09/07 18:45:38 ERROR [http-8081-Processor25] lutece.error - java.lang.reflect.UndeclaredThrowableException
java.lang.reflect.UndeclaredThrowableException
at $Proxy90.getMixinNodeTypes(Unknown Source)
at org.apache.jackrabbit.rmi.server.ServerNode.getMixinNodeTypes(ServerNode.java:178)
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:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
at org.apache.jackrabbit.rmi.server.ServerNode_Stub.getMixinNodeTypes(Unknown Source)
at org.apache.jackrabbit.rmi.client.ClientNode.getMixinNodeTypes(ClientNode.java:356)
at fr.paris.lutece.plugins.jcr.business.AbstractRepositoryContentDAO.isVersionnable(AbstractRepositoryContentDAO.java:613)
at fr.paris.lutece.plugins.jcr.business.AbstractRepositoryContentDAO.nodeToRepositoryFile(AbstractRepositoryContentDAO.java:432)
at fr.paris.lutece.plugins.jcr.business.AbstractRepositoryContentDAO.access$4(AbstractRepositoryContentDAO.java:428)
at fr.paris.lutece.plugins.jcr.business.AbstractRepositoryContentDAO$5.doInJcr(AbstractRepositoryContentDAO.java:240)
at org.springmodules.jcr.JcrTemplate.execute(JcrTemplate.java:76)
at org.springmodules.jcr.JcrTemplate.execute(JcrTemplate.java:108)
at fr.paris.lutece.plugins.jcr.business.AbstractRepositoryDAO.execute(AbstractRepositoryDAO.java:139)
at fr.paris.lutece.plugins.jcr.business.AbstractRepositoryContentDAO.findById(AbstractRepositoryContentDAO.java:221)
at fr.paris.lutece.plugins.jcr.business.RepositoryFileHome$1.run(RepositoryFileHome.java:166)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:337)
at fr.paris.lutece.plugins.jcr.authentication.JcrRestrictedOperation.doRestrictedOperation(JcrRestrictedOperation.java:85)
at fr.paris.lutece.plugins.jcr.business.RepositoryFileHome.getRepositoryFileById(RepositoryFileHome.java:160)
at fr.paris.lutece.plugins.jcr.business.portlet.Jsr170Portlet.getXml(Jsr170Portlet.java:208)
at fr.paris.lutece.portal.service.page.PageService.getPageContent(PageService.java:437)
at fr.paris.lutece.portal.service.page.PageService.buildPageContent(PageService.java:340)
at fr.paris.lutece.portal.service.page.PageService.getPage(PageService.java:237)
at fr.paris.lutece.portal.service.page.PageService.getPage(PageService.java:180)
at fr.paris.lutece.portal.web.PortalJspBean.getContent(PortalJspBean.java:134)
at fr.paris.lutece.portal.web.PortalJspBean.getContent(PortalJspBean.java:86)
at org.apache.jsp.jsp.site.Portal_jsp._jspService(Portal_jsp.java:82)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at fr.paris.lutece.portal.web.upload.UploadFilter.doFilter(UploadFilter.java:143)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at fr.paris.lutece.portal.web.upload.DosGuardFilter.doFilter(DosGuardFilter.java:134)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at fr.paris.lutece.portal.web.encoding.EncodingFilter.doFilter(EncodingFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.alfresco.thread.DispatchException: error on dispatched method [getMixinNodeTypes] threw exception [java.lang.reflect.InvocationTargetException]
at org.alfresco.thread.WorkerThreadManager.execute(WorkerThreadManager.java:105)
at org.alfresco.thread.ThreadBoundInvocationHandler.invoke(ThreadBoundInvocationHandler.java:270)
at $Proxy90.getMixinNodeTypes(Unknown Source)
at org.apache.jackrabbit.rmi.server.ServerNode.getMixinNodeTypes(ServerNode.java:178)
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:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
… 1 more
09-24-2007 11:49 PM
Thanks for your work.
I've installed jcr-thread-bound. And now I can browse the Alfresco repository from my Lutèce instance which is installed on a different Tomcat server.
But some nodes cannot be retrieved, and the following exception is raised:
18/09/07 18:45:38 ERROR [http-8081-Processor25] lutece.error - java.lang.reflect.UndeclaredThrowableException
java.lang.reflect.UndeclaredThrowableException
at $Proxy90.getMixinNodeTypes(Unknown Source)
at org.apache.jackrabbit.rmi.server.ServerNode.getMixinNodeTypes(ServerNode.java:178)
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:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
at org.apache.jackrabbit.rmi.server.ServerNode_Stub.getMixinNodeTypes(Unknown Source)
at org.apache.jackrabbit.rmi.client.ClientNode.getMixinNodeTypes(ClientNode.java:356)
at fr.paris.lutece.plugins.jcr.business.AbstractRepositoryContentDAO.isVersionnable(AbstractRepositoryContentDAO.java:613)
at fr.paris.lutece.plugins.jcr.business.AbstractRepositoryContentDAO.nodeToRepositoryFile(AbstractRepositoryContentDAO.java:432)
at fr.paris.lutece.plugins.jcr.business.AbstractRepositoryContentDAO.access$4(AbstractRepositoryContentDAO.java:428)
at fr.paris.lutece.plugins.jcr.business.AbstractRepositoryContentDAO$5.doInJcr(AbstractRepositoryContentDAO.java:240)
at org.springmodules.jcr.JcrTemplate.execute(JcrTemplate.java:76)
at org.springmodules.jcr.JcrTemplate.execute(JcrTemplate.java:108)
at fr.paris.lutece.plugins.jcr.business.AbstractRepositoryDAO.execute(AbstractRepositoryDAO.java:139)
at fr.paris.lutece.plugins.jcr.business.AbstractRepositoryContentDAO.findById(AbstractRepositoryContentDAO.java:221)
at fr.paris.lutece.plugins.jcr.business.RepositoryFileHome$1.run(RepositoryFileHome.java:166)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:337)
at fr.paris.lutece.plugins.jcr.authentication.JcrRestrictedOperation.doRestrictedOperation(JcrRestrictedOperation.java:85)
at fr.paris.lutece.plugins.jcr.business.RepositoryFileHome.getRepositoryFileById(RepositoryFileHome.java:160)
at fr.paris.lutece.plugins.jcr.business.portlet.Jsr170Portlet.getXml(Jsr170Portlet.java:208)
at fr.paris.lutece.portal.service.page.PageService.getPageContent(PageService.java:437)
at fr.paris.lutece.portal.service.page.PageService.buildPageContent(PageService.java:340)
at fr.paris.lutece.portal.service.page.PageService.getPage(PageService.java:237)
at fr.paris.lutece.portal.service.page.PageService.getPage(PageService.java:180)
at fr.paris.lutece.portal.web.PortalJspBean.getContent(PortalJspBean.java:134)
at fr.paris.lutece.portal.web.PortalJspBean.getContent(PortalJspBean.java:86)
at org.apache.jsp.jsp.site.Portal_jsp._jspService(Portal_jsp.java:82)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at fr.paris.lutece.portal.web.upload.UploadFilter.doFilter(UploadFilter.java:143)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at fr.paris.lutece.portal.web.upload.DosGuardFilter.doFilter(DosGuardFilter.java:134)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at fr.paris.lutece.portal.web.encoding.EncodingFilter.doFilter(EncodingFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.alfresco.thread.DispatchException: error on dispatched method [getMixinNodeTypes] threw exception [java.lang.reflect.InvocationTargetException]
at org.alfresco.thread.WorkerThreadManager.execute(WorkerThreadManager.java:105)
at org.alfresco.thread.ThreadBoundInvocationHandler.invoke(ThreadBoundInvocationHandler.java:270)
at $Proxy90.getMixinNodeTypes(Unknown Source)
at org.apache.jackrabbit.rmi.server.ServerNode.getMixinNodeTypes(ServerNode.java:178)
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:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
… 1 more
It seems that the problem comes from the getMixinNodeTypes method. I use this method to check if a node (cm:content) is versionable.
Have you ever seen this problem before?
Another question: what is the better way to report such problems? on this forum or on forge.alfresco.com ?
–
Géraud
09-25-2007 04:49 AM
/**
* Requests WorkerThread associated with threadKey execute the dispatched
* method, using dispatched parameters, against the target object
*
* @param threadKey
* key associated with worker thread
* @param target
* target object against which dispatched method with dispatched
* params should be ran.
* @param dispatchedMethod method which should be ran against target object
* @param dispatchedParams params which should be used when running method.
* @return result of method execution.
* @throws Exception
*/
public static Object execute(String threadKey, Object target,
Method dispatchedMethod, Object[] dispatchedParams)
throws Exception {
if (threadKey == null && target == null && dispatchedMethod == null) {
throw new IllegalArgumentException(
"threadKey, target and the dispatchedMethod must not be null");
}
WorkerThread worker = threadMap.get(threadKey);
if (worker == null) {
throw new DispatchException("No WorkerThread created for ["+ threadKey +"], errored on dispatched method ["+dispatchedMethod.getName()+"]");
}
Object response;
Exchanger exchanger = new Exchanger();
worker.execute(dispatchedMethod, dispatchedParams, target, exchanger);
response = exchanger.exchange(new Object());
if (response instanceof Throwable) {
if(response instanceof InvocationTargetException)
{
/* unwrap target exception */
Exception eActualException = ((InvocationTargetException)response).getCause();
throw new DispatchException("error on dispatched method ["+dispatchedMethod.getName()+"] threw exception ["+eActualException+"]");
}
else
{
throw new DispatchException("error on dispatched method ["+dispatchedMethod.getName()+"] threw exception ["+response+"]");
}
}
return response;
}
09-28-2007 09:20 AM
java.lang.ClassCastException: $Proxy87
at $Proxy86.getMixinNodeTypes(Unknown Source)
at org.apache.jackrabbit.rmi.server.ServerNode.getMixinNodeTypes(ServerNode.java:178)
…
No exception is thrown on the server(alfresco)-side. I am not sure that this is the same problem… maybe it is due to a wrong config.10-01-2007 08:19 AM
rootNode.getNodes()
org.apache.jackrabbit.rmi.client.RemoteRepositoryException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: invalid method hash: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: invalid method hash
10-01-2007 08:29 AM
Hi,
What is the current official status of connecting to Alfresco via jackrabbit-jcr-rmi ? I went through the wiki for setting up the extension and I can login to Alfresco. The jsp/jcrRmiTest.jsp is also working. But when I do something like
rootNode.getNodes()
I get an UnMarshalling exceptionorg.apache.jackrabbit.rmi.client.RemoteRepositoryException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: invalid method hash: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: invalid method hash
Then I came across this post so as a general question :
Can I continue with the jackrabbit-jcr-rmi extension? Is it a stable/production strength solution ?
We need to build a suite of services that connect to Alfresco (or any repo) and the solution we are looking at is with jackrabbit-jcr-rmi.
Thanks in advance for any advice on this!!
Finner
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.