Community
Participate
Working Groups
TopLink/EclipseLink ExceptionHandler broken in SessionBroker because the code copy/paste initialization instead of delegating, and forget to handle ExceptionHandler in the copy/paste. The bug exist since existance of SessionBroker so TopLink 9.x or before. Workbench make it clear that ExceptionHandler is expected to be set at SessionBroker level, then will be attached to children sessions. In other words, Workbench allow only to set ExceptionHandler to the SessionBroker. Code extract from SessionBroker.java: public SessionBroker acquireClientSessionBroker() { log(SessionLog.FINER, SessionLog.CONNECTION, "acquire_client_session_broker"); SessionBroker clientBroker = copySessionBroker(); clientBroker.parent = this; clientBroker.getIdentityMapAccessorInstance().setIdentityMapManager(getIdentityMapAccessorInstance().getIdentityMapManager()); clientBroker.commitManager = getCommitManager(); clientBroker.commandManager = getCommandManager(); clientBroker.externalTransactionController = getExternalTransactionController(); clientBroker.setServerPlatform(getServerPlatform()); ... and protected SessionBroker copySessionBroker() { SessionBroker broker = new SessionBroker(this.getSessionNamesByClass()); broker.accessor = getAccessor(); broker.name = getName(); broker.sessionLog = getSessionLog(); broker.project = project; broker.eventManager = getEventManager().clone(broker); broker.shouldPropagateChanges = shouldPropagateChanges; return broker; } Other bugs because of the copy/paste: MetaLink SR 6686868.993 DATABASE PLATFORM SETTINGS IGNORED WHEN USING SESSIONBROKER Oracle Bug 6864505 READ QUERIES EXECUTED ON A UOW USE DEFAULT DB PLATFORM INSTEAD OF THE PARENT'S Oracle Bug 6620329 QUERYEXCEPTION (INVALID PLATFORM OPERATOR) ENCOUNTERED WHEN USING SESSIONBROKE MetaLink SR 6737909.992 SESSIONBROKER COPY IS NOT UPTODATE SO CLUSTER INVALIDATION BROKEN Oracle Bug 6815366 SESSIONBROKER COPY IS NOT UPTODATE SO CLUSTER INVALIDATION BROKEN Related but different design issues with SessionBroker: MetaLink SR 6773959.992 SESSIONBROKER IS NOT COMPATIBLE WITH SESSIONEVENTLISTENER.OUTPUTPARAMETERSDETECT Oracle Bug 6844598 SESSIONBROKER IS NOT COMPATIBLE WITH SESSIONEVENTLISTENER.OUTPUTPARAMETERSDETECT MetaLink SR 6842452.992 SESSIONBROKER EVENT HANDLING MAKE USELESS EVENT DB SPECIFIC Oracle Bug 7001303 SessionBROKER EVENT HANDLING MAKE USELESS EVENT DB SPECIFIC
Targetting for 1.1.x so this bug will be a candidate for future patch releases.
This bug is being moved to Future where we can properly sort them all together based on community votes and severity. We will then assign them accordingly to future patch sets and releases.
Changing the priority of the bugs that have been recently triaged to future. Targetting them to P2 will differentiate them from the P3s that have been triaged into future earlier.
*** This bug has been marked as a duplicate of bug 328404 ***
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink