Read only archive ; use https://github.com/JacORB/JacORB/issues for new issues
Bug 1011 - NoSuchElementException while making remote calls while attending to a forward_request
Summary: NoSuchElementException while making remote calls while attending to a forward...
Status: RESOLVED FIXED
Alias: None
Product: JacORB
Classification: Unclassified
Component: ORB (show other bugs)
Version: 3.6.1
Hardware: PC All
: P5 critical
Assignee: Mailinglist to track bugs
URL:
Depends on:
Blocks:
 
Reported: 2015-07-08 13:50 UTC by Hugo Roenick
Modified: 2015-07-31 09:09 UTC (History)
2 users (show)

See Also:


Attachments
demo that demonstrate the error (4.16 KB, application/x-gzip)
2015-07-08 13:50 UTC, Hugo Roenick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hugo Roenick 2015-07-08 13:50:32 UTC
Created attachment 465 [details]
demo that demonstrate the error

Making 2 or more remote calls during send_request interception point and doing it while attending to a forward_request attempt causes an exception java.util.NoSuchElementException.

The stack trace is as follows:

Exception in thread "main" java.util.NoSuchElementException
	at java.util.ArrayDeque.removeFirst(ArrayDeque.java:278)
	at java.util.ArrayDeque.pop(ArrayDeque.java:507)
	at org.jacorb.orb.portableInterceptor.ClientInterceptorIterator.invoke(ClientInterceptorIterator.java:169)
	at org.jacorb.orb.portableInterceptor.AbstractInterceptorIterator.iterate(AbstractInterceptorIterator.java:66)
	at org.jacorb.orb.portableInterceptor.ClientInterceptorIterator.iterate(ClientInterceptorIterator.java:79)
	at org.jacorb.orb.portableInterceptor.DefaultClientInterceptorHandler.invokeInterceptors(DefaultClientInterceptorHandler.java:331)
	at org.jacorb.orb.portableInterceptor.DefaultClientInterceptorHandler.handle_send_request(DefaultClientInterceptorHandler.java:135)
	at org.jacorb.orb.Delegate._invoke_internal(Delegate.java:1268)
	at org.jacorb.orb.Delegate.invoke_internal(Delegate.java:1171)
	at org.jacorb.orb.Delegate.invoke(Delegate.java:1159)
	at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:475)
	at demo._DoorStub.canIComeIn(_DoorStub.java:119)
	at demo.door.DoorClient.main(DoorClient.java:41)

I checked that this kind of error does not occur in JacORB 3.5 and is present in versions 3.6 and 3.6.1.
Comment 1 Nick Cross 2015-07-31 09:09:27 UTC
Resolved by 6f7cbd2c498807214157e652785c4bd515da7471 and tested in 64106ffeb3ba920391f35213d622aee3c415bae7