Bug 780896 (SOA-3359)

Summary: Modeshape throws ClosedChannelException when client publishes the same file for the second time.
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Boris Belovic <bbelovic>
Component: EDSAssignee: Van Halbert <vhalbert>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.2.0.ER3CC: bbelovic, fnguyen
Target Milestone: ---   
Target Release: 5.2.0.ER5   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-3359
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
JDK 1.6 u_22, Fedora 14 x86_64
Last Closed: 2011-10-21 14:27:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
reproducer.tar.bz2
none
server.log.tar.bz2
none
modeshape-config.xml none

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