[JBoss JIRA] Created: (JBESB-2446) The update to the message context has broken serialisation with older versions
by Kevin Conner (JIRA)
The update to the message context has broken serialisation with older versions
------------------------------------------------------------------------------
Key: JBESB-2446
URL: https://jira.jboss.org/jira/browse/JBESB-2446
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Rosetta
Affects Versions: 4.5
Reporter: Kevin Conner
Assignee: Kevin Conner
Fix For: 4.6
The message context was previously unused but was modified, by me I must admit, so that we could usefully distinguish between message context and message contents.
Unfortunately this breaks when an old version of a serialized message is read by the new version.
The fix is straight forward, add the following into the ContextImpl for the serialized format.
/**
* Deserialise the object, checking for old versions.
* @param ois The object input stream.
* @throws IOException For IO exceptions during object deserialisation.
* @throws ClassNotFoundException If dependent classes cannot be found.
*/
private void readObject(final ObjectInputStream ois)
throws IOException, ClassNotFoundException
{
ois.defaultReadObject() ;
if (context == null)
{
context = new HashMap<String, Serializable>() ;
}
}
The XML variant is correct.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[JBoss JIRA] Created: (JBESB-2506) Add locale configuration for Smooks date transforms in the quickstarts
by Daniel Bevenius (JIRA)
Add locale configuration for Smooks date transforms in the quickstarts
----------------------------------------------------------------------
Key: JBESB-2506
URL: https://jira.jboss.org/jira/browse/JBESB-2506
Project: JBoss ESB
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Examples
Reporter: Daniel Bevenius
Fix For: 4.6
For example, the bpm_orchestration4 quickstart has to transforms that include date transformations. These do not specify locale configuration information and are therefor dependent on the default locale that this system uses.
We should add explicit locales to avoid problems. This can be configures like this:
<jb:value property="orderDate" data="Order/@orderDate" decoder="Calendar">
<jb:decodeParam name="format">EEE MMM dd HH:mm:ss z yyyy</jb:decodeParam>
<jb:decodeParam name="locale-language">en</jb:decodeParam>
<jb:decodeParam name="locale-country">US</jb:decodeParam>
</jb:value>
All quickstart should be update if they have date transformations.
This issue was discovered while investigating the linked forum reference.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[JBoss JIRA] Created: (JBESB-2493) JmsConnectionPool swallows NamingException
by Jiri Pechanec (JIRA)
JmsConnectionPool swallows NamingException
------------------------------------------
Key: JBESB-2493
URL: https://jira.jboss.org/jira/browse/JBESB-2493
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.4 CP2
Reporter: Jiri Pechanec
Assignee: Kevin Conner
See the following code
try
{
factoryConnection = jndiContext.lookup(connectionFactoryString);
} catch (NamingException ne) {
logger.info("Received NamingException, refreshing context.");
jndiContext = NamingContextPool.replaceNamingContext(jndiContext, JmsConnectionPoolContainer.getJndiEnvironment(poolKey));
factoryConnection = jndiContext.lookup(connectionFactoryString);
}
If the exception is thrown it is not logged and there is no way to identify the reason of error
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months