Bug 780896 (SOA-3359) - Modeshape throws ClosedChannelException when client publishes the same file for the second time.
Summary: Modeshape throws ClosedChannelException when client publishes the same file f...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-3359
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: EDS
Version: 5.2.0.ER3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.2.0.ER5
Assignee: Van Halbert
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-06 12:41 UTC by Boris Belovic
Modified: 2011-10-21 14:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
JDK 1.6 u_22, Fedora 14 x86_64
Last Closed: 2011-10-21 14:27:07 UTC
Type: Bug


Attachments (Terms of Use)
reproducer.tar.bz2 (4.25 KB, application/x-bzip2)
2011-09-06 12:42 UTC, Boris Belovic
no flags Details
server.log.tar.bz2 (227.35 KB, application/x-bzip2)
2011-09-06 12:42 UTC, Boris Belovic
no flags Details
modeshape-config.xml (19.95 KB, text/xml)
2011-09-21 14:59 UTC, Boris Belovic
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 780933 0 urgent CLOSED Modeshape throws NPE when retrieving file's content 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker SOA-3359 0 None None None Never

Internal Links: 780933

Description Boris Belovic 2011-09-06 12:41:41 UTC
project_key: SOA

How to reproduce:

0) use attached reproducer - build it with mvn clean package, this should producer WAR file under /target directory
1) deploy attached reproducer into SOA-P 5.2.0 ER3
2) go to URL http://localhost:8080/wsdl-reproducer/wsdl?repository=eds&workspace=default in the browser
3) for the first time this should publish test.cnd file into eds repository
4) remove published file from repository 
5) go to URL http://localhost:8080/wsdl-reproducer/wsdl?repository=eds&workspace=default in the browser
6) now you should see java.nio.channels.ClosedChannelException in server.log

This issue has already been reported by BRMS team (see: Bugzilla #728585), I am cloning it under SOA label because:

1) at least we need to track it and not forget on it
2) Modeshape in BRMS may differ from Modeshape in SOA (I know Modeshape in BRMS does not contain sequencers, Modeshape in SOA does contains sequencers)

Comment 1 Boris Belovic 2011-09-06 12:42:33 UTC
Attached reproducer and server.log

Comment 2 Boris Belovic 2011-09-06 12:42:33 UTC
Attachment: Added: reproducer.tar.bz2
Attachment: Added: server.log.tar.bz2


Comment 4 Boris Belovic 2011-09-21 14:58:02 UTC
I ran the reproducer and I got this exception:

16:56:14,798 INFO  [STDOUT] Repository: eds, workspace: default
16:56:14,799 INFO  [STDOUT] Retrieving session for repo: eds and workspace: default
16:56:14,912 INFO  [STDOUT] Registering listener for path /sequenced/cnd
16:56:14,912 INFO  [STDOUT] Registering listener..
16:56:14,915 INFO  [STDOUT] Publishing file..
16:56:14,966 INFO  [STDOUT] Saving session..
16:56:15,032 ERROR [SequencingService] Error finding sequencers to run against node 2011-09-21T14:56:14.971Z @<anonymous> [eds-store] - 3 changes
java.lang.NullPointerException
	at org.modeshape.repository.sequencer.StreamSequencerAdapter.execute(StreamSequencerAdapter.java:172)
	at org.modeshape.repository.sequencer.SequencingService.processChange(SequencingService.java:498)
	at org.modeshape.repository.sequencer.SequencingService$RepositoryObserver$1.run(SequencingService.java:666)
	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:662)

It might be related to SOA-3400.

Comment 5 Boris Belovic 2011-09-21 14:59:08 UTC
Attached Modeshape configuration file.

Comment 6 Boris Belovic 2011-09-21 14:59:08 UTC
Attachment: Added: modeshape-config.xml


Comment 8 Van Halbert 2011-09-22 22:48:05 UTC
Link: Added: This issue is related to SOA-3400


Comment 9 Jiri Pechanec 2011-10-21 14:27:07 UTC
Verified in ER5


Note You need to log in before you can comment on or make changes to this bug.