jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-1959) Namespace Registry is not available when accessing Jackrabbit via HTTP
Date Fri, 13 Feb 2009 11:09:59 GMT

    [ https://issues.apache.org/jira/browse/JCR-1959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12673212#action_12673212
] 

Jukka Zitting commented on JCR-1959:
------------------------------------

Do you have the jackrabbit-api jar included on the client side? The original goal for the
RMI layer was that you'd only need the Jackrabbit API extensions on the client side if your
application really needed those interfaces, but it looks like the jar needed in any case when
you're connecting to a Jackrabbit repository, as otherwise the interfaces referenced in the
marshalled objects are not found.

> Namespace Registry is not available when accessing Jackrabbit via HTTP
> ----------------------------------------------------------------------
>
>                 Key: JCR-1959
>                 URL: https://issues.apache.org/jira/browse/JCR-1959
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jcr-rmi
>    Affects Versions: 1.5.2
>         Environment: Mac OS X 10.5.6
>            Reporter: Sandro Boehme
>            Priority: Minor
>
> When accessing the Jackrabbit repository via 
> Repository repository = new URLRemoteRepository("http://localhost:8080/rmi");
> then calling workspace.getNamespaceRegistry(); throws an Exception. Please see below
for the complete stack trace:
> org.apache.jackrabbit.rmi.client.RemoteRuntimeException: java.rmi.UnmarshalException:
error unmarshalling return; nested exception is: 
> 	java.lang.ClassNotFoundException: org.apache.jackrabbit.rmi.jackrabbit.ServerJackrabbitWorkspace_Stub
(no security manager: RMI class loader disabled)
> 	at org.apache.jackrabbit.rmi.client.ClientSession.getWorkspace(ClientSession.java:141)
> 	at org.visualcontent.ui.namespacelist.NamespaceList.selectionChanged(NamespaceList.java:59)
> 	at org.eclipse.ui.internal.AbstractPartSelectionTracker$1.run(AbstractPartSelectionTracker.java:119)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> 	at org.eclipse.core.runtime.Platform.run(Platform.java:880)
> 	at org.eclipse.ui.internal.AbstractPartSelectionTracker.fireSelection(AbstractPartSelectionTracker.java:117)
> 	at org.eclipse.ui.internal.PagePartSelectionTracker$1.selectionChanged(PagePartSelectionTracker.java:46)
> 	at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> 	at org.eclipse.core.runtime.Platform.run(Platform.java:880)
> 	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
> 	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
> 	at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
> 	at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2062)
> 	at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1138)
> 	at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1168)
> 	at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:227)
> 	at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:221)
> 	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:388)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
> 	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360)
> 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3482)
> 	at org.eclipse.swt.widgets.Control.sendTrackEvents(Control.java:3024)
> 	at org.eclipse.swt.widgets.Control.kEventControlTrack(Control.java:2104)
> 	at org.eclipse.swt.widgets.Widget.controlProc(Widget.java:375)
> 	at org.eclipse.swt.widgets.Display.controlProc(Display.java:862)
> 	at org.eclipse.swt.internal.carbon.OS.CallNextEventHandler(Native Method)
> 	at org.eclipse.swt.widgets.Tree.kEventMouseDown(Tree.java:2599)
> 	at org.eclipse.swt.widgets.Widget.mouseProc(Widget.java:1326)
> 	at org.eclipse.swt.widgets.Display.mouseProc(Display.java:2929)
> 	at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native Method)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3051)
> 	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
> 	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
> 	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
> 	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
> 	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
> 	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> 	at com.thoughtworks.jcrbrowser.rcp.Application.start(Application.java:36)
> 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> 	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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
> 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> 	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> 	at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
> Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested exception
is: 
> 	java.lang.ClassNotFoundException: org.apache.jackrabbit.rmi.jackrabbit.ServerJackrabbitWorkspace_Stub
(no security manager: RMI class loader disabled)
> 	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162)
> 	at org.apache.jackrabbit.rmi.server.ServerXASession_Stub.getWorkspace(Unknown Source)
> 	at org.apache.jackrabbit.rmi.client.ClientSession.getWorkspace(ClientSession.java:138)
> 	... 55 more
> Caused by: java.lang.ClassNotFoundException: org.apache.jackrabbit.rmi.jackrabbit.ServerJackrabbitWorkspace_Stub
(no security manager: RMI class loader disabled)
> 	at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:371)
> 	at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
> 	at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
> 	at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
> 	at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
> 	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544)
> 	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
> 	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
> 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
> 	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
> 	at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:290)
> 	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:139)
> 	... 57 more
> Best regards,
> Sandro

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message