Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DC1DC995D for ; Mon, 26 Mar 2012 13:44:52 +0000 (UTC) Received: (qmail 25288 invoked by uid 500); 26 Mar 2012 13:44:52 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 25244 invoked by uid 500); 26 Mar 2012 13:44:52 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 25236 invoked by uid 99); 26 Mar 2012 13:44:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Mar 2012 13:44:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Mar 2012 13:44:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2DEAE346E6B for ; Mon, 26 Mar 2012 13:44:28 +0000 (UTC) Date: Mon, 26 Mar 2012 13:44:28 +0000 (UTC) From: "Torsten Witte (Commented) (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <1332933622.17359.1332769468274.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1213945098.23454.1331887423240.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (JCR-3260) "Unknown value type 10" when reading values of a weakreference property via RMI MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-3260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13238385#comment-13238385 ] Torsten Witte commented on JCR-3260: ------------------------------------ You may see http://support.subshell.com/browse/TOR-11 for further information about this problem. > "Unknown value type 10" when reading values of a weakreference property via RMI > ------------------------------------------------------------------------------- > > Key: JCR-3260 > URL: https://issues.apache.org/jira/browse/JCR-3260 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-jcr-rmi > Affects Versions: 2.0.5, 2.1.6, 2.2.11, 2.3.7, 2.4 > Reporter: Torsten Witte > Priority: Critical > Attachments: jackrabbit-jcr-rmi-weak-references-2.4.patch > > > When calling > javax.jcr.Property jcrProperty = ... > Value[] values = jcrProperty.getValues(); > on a weakreference property the following error occurs: > javax.jcr.ValueFormatException: Unknown value type 10 > at org.apache.jackrabbit.rmi.server.ServerObject.getRepositoryException(ServerObject.java:139) > at org.apache.jackrabbit.rmi.server.ServerProperty.getValues(ServerProperty.java:71) > 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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303) > at sun.rmi.transport.Transport$1.run(Transport.java:159) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:680) > at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) > at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142) > at org.apache.jackrabbit.rmi.server.ServerProperty_Stub.getValues(Unknown Source) > at org.apache.jackrabbit.rmi.client.ClientProperty.getValues(ClientProperty.java:173) > I think the reason is that org.apache.jackrabbit.rmi.value.SerialValueFactory.createValue(Value value, int type) does not support the property type "weakreference". > See http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/value/SerialValueFactory.java?view=markup in line 159. > Just adding the case for PropertyType.WEAKREFERENCE should fix the problem. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira