You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2012/11/19 12:36:58 UTC
[jira] [Created] (JCR-3459) RmiRepositoryFactory regression,
invalid stream header
Alex Parvulescu created JCR-3459:
------------------------------------
Summary: RmiRepositoryFactory regression, invalid stream header
Key: JCR-3459
URL: https://issues.apache.org/jira/browse/JCR-3459
Project: Jackrabbit Content Repository
Issue Type: Bug
Components: jackrabbit-jcr-rmi
Reporter: Alex Parvulescu
Assignee: Alex Parvulescu
Following JCR-3454 I've noticed a regression, I have a remote test failing with the following trace [0]
I've narrowed it down to rev 1409181, which means that this change is not visible with JR 2.5.2, but it is with 2.6-SNAPSHOT (a fresh trunk build).
[0]
org.apache.jackrabbit.rmi.client.RemoteRepositoryException: java.rmi.RemoteException: Failed to read the resource at URL http://localhost:52833/....; nested exception is:
java.io.StreamCorruptedException: invalid stream header: 3C68746D
at org.apache.jackrabbit.rmi.client.SafeClientRepository.remoteLogin(SafeClientRepository.java:112)
at org.apache.jackrabbit.rmi.client.SafeClientRepository.login(SafeClientRepository.java:120)
at org.apache.jackrabbit.rmi.client.SafeClientRepository.login(SafeClientRepository.java:131)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (JCR-3459) RmiRepositoryFactory regression,
invalid stream header
Posted by "Alex Parvulescu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-3459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Parvulescu resolved JCR-3459.
----------------------------------
Resolution: Fixed
I changed the other 2 methods to use inner classes, I think we are ok now.
> RmiRepositoryFactory regression, invalid stream header
> ------------------------------------------------------
>
> Key: JCR-3459
> URL: https://issues.apache.org/jira/browse/JCR-3459
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-jcr-rmi
> Reporter: Alex Parvulescu
> Assignee: Alex Parvulescu
> Fix For: 2.6
>
>
> Following JCR-3454 I've noticed a regression, I have a remote test failing with the following trace [0]
> I've narrowed it down to rev 1409181, which means that this change is not visible with JR 2.5.2, but it is with 2.6-SNAPSHOT (a fresh trunk build).
> [0]
> org.apache.jackrabbit.rmi.client.RemoteRepositoryException: java.rmi.RemoteException: Failed to read the resource at URL http://localhost:52833/....; nested exception is:
> java.io.StreamCorruptedException: invalid stream header: 3C68746D
> at org.apache.jackrabbit.rmi.client.SafeClientRepository.remoteLogin(SafeClientRepository.java:112)
> at org.apache.jackrabbit.rmi.client.SafeClientRepository.login(SafeClientRepository.java:120)
> at org.apache.jackrabbit.rmi.client.SafeClientRepository.login(SafeClientRepository.java:131)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (JCR-3459) RmiRepositoryFactory regression,
invalid stream header
Posted by "Claus Köll (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-3459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13500243#comment-13500243 ]
Claus Köll commented on JCR-3459:
---------------------------------
Hmm i have tried it and it works fine for me without your changes.
> RmiRepositoryFactory regression, invalid stream header
> ------------------------------------------------------
>
> Key: JCR-3459
> URL: https://issues.apache.org/jira/browse/JCR-3459
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-jcr-rmi
> Reporter: Alex Parvulescu
> Assignee: Alex Parvulescu
> Fix For: 2.6
>
>
> Following JCR-3454 I've noticed a regression, I have a remote test failing with the following trace [0]
> I've narrowed it down to rev 1409181, which means that this change is not visible with JR 2.5.2, but it is with 2.6-SNAPSHOT (a fresh trunk build).
> [0]
> org.apache.jackrabbit.rmi.client.RemoteRepositoryException: java.rmi.RemoteException: Failed to read the resource at URL http://localhost:52833/....; nested exception is:
> java.io.StreamCorruptedException: invalid stream header: 3C68746D
> at org.apache.jackrabbit.rmi.client.SafeClientRepository.remoteLogin(SafeClientRepository.java:112)
> at org.apache.jackrabbit.rmi.client.SafeClientRepository.login(SafeClientRepository.java:120)
> at org.apache.jackrabbit.rmi.client.SafeClientRepository.login(SafeClientRepository.java:131)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (JCR-3459) RmiRepositoryFactory regression,
invalid stream header
Posted by "Alex Parvulescu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-3459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504481#comment-13504481 ]
Alex Parvulescu commented on JCR-3459:
--------------------------------------
Hi Claus, it is unfortunate I can't reproduce the problem in an isolated test, I was hoping you'll see something there as well.
I agree with you, I'd also change them all to use static inner classes to have some consistency in the code.
I originally only changed one of the methods to fix my original problem and to not introduce too much change until somebody else gets the error.
> RmiRepositoryFactory regression, invalid stream header
> ------------------------------------------------------
>
> Key: JCR-3459
> URL: https://issues.apache.org/jira/browse/JCR-3459
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-jcr-rmi
> Reporter: Alex Parvulescu
> Assignee: Alex Parvulescu
> Fix For: 2.6
>
>
> Following JCR-3454 I've noticed a regression, I have a remote test failing with the following trace [0]
> I've narrowed it down to rev 1409181, which means that this change is not visible with JR 2.5.2, but it is with 2.6-SNAPSHOT (a fresh trunk build).
> [0]
> org.apache.jackrabbit.rmi.client.RemoteRepositoryException: java.rmi.RemoteException: Failed to read the resource at URL http://localhost:52833/....; nested exception is:
> java.io.StreamCorruptedException: invalid stream header: 3C68746D
> at org.apache.jackrabbit.rmi.client.SafeClientRepository.remoteLogin(SafeClientRepository.java:112)
> at org.apache.jackrabbit.rmi.client.SafeClientRepository.login(SafeClientRepository.java:120)
> at org.apache.jackrabbit.rmi.client.SafeClientRepository.login(SafeClientRepository.java:131)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (JCR-3459) RmiRepositoryFactory regression,
invalid stream header
Posted by "Alex Parvulescu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-3459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Parvulescu resolved JCR-3459.
----------------------------------
Resolution: Fixed
Fix Version/s: 2.6
fixed with rev r1411132.
It seems that extracting the #getRemoteRepository part in a dedicated class fixes the issue.
I'd like to see what others think.
> RmiRepositoryFactory regression, invalid stream header
> ------------------------------------------------------
>
> Key: JCR-3459
> URL: https://issues.apache.org/jira/browse/JCR-3459
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-jcr-rmi
> Reporter: Alex Parvulescu
> Assignee: Alex Parvulescu
> Fix For: 2.6
>
>
> Following JCR-3454 I've noticed a regression, I have a remote test failing with the following trace [0]
> I've narrowed it down to rev 1409181, which means that this change is not visible with JR 2.5.2, but it is with 2.6-SNAPSHOT (a fresh trunk build).
> [0]
> org.apache.jackrabbit.rmi.client.RemoteRepositoryException: java.rmi.RemoteException: Failed to read the resource at URL http://localhost:52833/....; nested exception is:
> java.io.StreamCorruptedException: invalid stream header: 3C68746D
> at org.apache.jackrabbit.rmi.client.SafeClientRepository.remoteLogin(SafeClientRepository.java:112)
> at org.apache.jackrabbit.rmi.client.SafeClientRepository.login(SafeClientRepository.java:120)
> at org.apache.jackrabbit.rmi.client.SafeClientRepository.login(SafeClientRepository.java:131)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (JCR-3459) RmiRepositoryFactory regression,
invalid stream header
Posted by "Claus Köll (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-3459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Köll reopened JCR-3459:
-----------------------------
Hi Alex ... as written before i haven't got a exception and if we change it we should also change the other methods (getJndiRepository(), getRmiRepository()) in the same way.
> RmiRepositoryFactory regression, invalid stream header
> ------------------------------------------------------
>
> Key: JCR-3459
> URL: https://issues.apache.org/jira/browse/JCR-3459
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-jcr-rmi
> Reporter: Alex Parvulescu
> Assignee: Alex Parvulescu
> Fix For: 2.6
>
>
> Following JCR-3454 I've noticed a regression, I have a remote test failing with the following trace [0]
> I've narrowed it down to rev 1409181, which means that this change is not visible with JR 2.5.2, but it is with 2.6-SNAPSHOT (a fresh trunk build).
> [0]
> org.apache.jackrabbit.rmi.client.RemoteRepositoryException: java.rmi.RemoteException: Failed to read the resource at URL http://localhost:52833/....; nested exception is:
> java.io.StreamCorruptedException: invalid stream header: 3C68746D
> at org.apache.jackrabbit.rmi.client.SafeClientRepository.remoteLogin(SafeClientRepository.java:112)
> at org.apache.jackrabbit.rmi.client.SafeClientRepository.login(SafeClientRepository.java:120)
> at org.apache.jackrabbit.rmi.client.SafeClientRepository.login(SafeClientRepository.java:131)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira