]
Kevin Conner closed JBESB-2063.
-------------------------------
Fix Version/s: 4.4 CP2
(was: 4.4 CP3)
Resolution: Done
JBESB-454 reversed: input-suffix is required
--------------------------------------------
Key: JBESB-2063
URL:
https://jira.jboss.org/jira/browse/JBESB-2063
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Rosetta
Affects Versions: 4.2.1 CP3, 4.4
Reporter: Ryan Hochstetler
Assignee: Mark Little
Fix For: 4.4 CP2, 4.5, 4.2.1 CP5
JBESB-454 modified AbstractFileGateway and FileGatewayListener to permit the omission of
the input-suffix on a fs-message-filter. This appears to have been undone in changeset
14322 by using ConfigTree.getRequiredAttribute() which throws
....
Caused by: org.jboss.soa.esb.ConfigurationException: Required configuration property
'inputSuffix' not defined on config
uration 'listener'.
at
org.jboss.soa.esb.helpers.ConfigTree.getRequiredAttribute(ConfigTree.java:242)
at
org.jboss.soa.esb.listeners.gateway.AbstractFileGateway.checkMyParms(AbstractFileGateway.java:313)
at
org.jboss.soa.esb.listeners.gateway.AbstractFileGateway.<init>(AbstractFileGateway.java:89)
at
org.jboss.soa.esb.listeners.gateway.FileGatewayListener.<init>(FileGatewayListener.java:45)
I tried working around the issue by providing a single space as the input-suffix. This
generated a different exception:
...
Caused by: org.jboss.soa.esb.ConfigurationException: Must specify postProcessSuffix
at
org.jboss.soa.esb.listeners.gateway.FileGatewayListener$IgnoreFile.<init>(FileGatewayListener.java:218)
at
org.jboss.soa.esb.listeners.gateway.FileGatewayListener.<init>(FileGatewayListener.java:68)
... 52 more
I specified a post processing suffix by adding the post-suffix attribute ( meaningless
since I had specifed post-delete="true") to the fs-message-listener element, but
I still received the same exception complaining about the lack of a postProcessSuffix.
While it may seem simple enough to just change AbstractFileGateway.java:313 to call
ConfigTree.getAttribute(), I think that there is a deeper issue since the
FileGatewayListener.IgnoreFile fails to construct, even though I'm providing the
requested attribute (which has a hard-coded default....).
sample config:
<fs-bus busid="foo_gw" >
<fs-message-filter directory="/h/data/foos"
work-suffix=".esbWorking" post-delete="true"
error-directory="/h/data/foos/error" error-suffix=".error" />
</fs-bus>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: