6 Replies Latest reply on Mar 13, 2008 10:32 AM by kconner

    Error trying to configure without input suffix on file gatew

    colsona

      I tried to remove the input suffix from my file gateway as was the goal of the feature request. I have found that it didn't work. Have I misconfigured to take advantage of the new feature?

      My configuration:

      Caused by: org.jboss.soa.esb.ConfigurationException: Missing or invalid <inputSuffix> attribute
       at org.jboss.soa.esb.listeners.ListenerUtil.obtainAtt(ListenerUtil.java:342)
       at org.jboss.soa.esb.listeners.gateway.AbstractFileGateway.checkMyParms(AbstractFileGateway.java:403)
       at org.jboss.soa.esb.listeners.gateway.AbstractFileGateway.<init>(AbstractFileGateway.java:92)
       at org.jboss.soa.esb.listeners.gateway.FileGatewayListener.<init>(FileGatewayListener.java:51)
       ... 102 more
      


      My configuration:

      
      <?xml version="1.0" encoding="UTF-8"?>
      <jesb:jbossesb
       xmlns:jesb="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd ../schema/jbossesb-1.0.1.xsd "
       parameterReloadSecs="180">
       <jesb:providers>
       <jesb:fs-provider name="abomv2FSprovider1">
       <jesb:fs-bus busid="abomv2afmtsifFileChannel">
       <jesb:fs-message-filter input-suffix=""
       directory="c:\\FileTest\\/abom/mnmtsd01" work-suffix=".esbWorking"
       post-delete="false" post-directory="c:\\FileTest\\processed"
       post-suffix=".sentToEsb" error-delete="false"
       error-directory="c:\\FileTest\\inError" error-suffix=".IN_ERROR" /></jesb:fs-bus>
       </jesb:fs-provider>
       <jesb:jms-provider name="abomv2JBossMQ"
       connection-factory="ConnectionFactory"
       jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
       jndi-URL="localhost:1299">
       <jesb:jms-bus busid="abomv2fileEventQueue">
       <jesb:jms-message-filter dest-name="/queue/FileEventQueueStage" dest-type="QUEUE" ></jesb:jms-message-filter></jesb:jms-bus>
       </jesb:jms-provider>
       </jesb:providers>
       <jesb:services>
       <jesb:service name="abomv2AFMTSIFFileListener" description="Listener for AFMTSIF Files" category="abomv2FileEvent">
       <jesb:listeners>
       <jesb:fs-listener name="abomv2FileGateway"
       busidref="abomv2afmtsifFileChannel" maxThreads="1"
       is-gateway="true" poll-frequency-seconds="60">
       <jesb:property name="composer-class" value="com.spss.esb.FileEventComposer"></jesb:property>
       <jesb:property name="composer-process" value="createMessage"></jesb:property>
       <jesb:property name="process-definition" value="AFMTSIF"></jesb:property>
       <jesb:property name="file-location" value="c:\\FileTest\\/abom/abmtsd01"></jesb:property>
      
       </jesb:fs-listener>
       <jesb:jms-listener name="sendToAbom"
       busidref="abomv2fileEventQueue" maxThreads="1">
       </jesb:jms-listener>
       </jesb:listeners>
       <jesb:actions>
       <jesb:action name="File message creator and forwarder"
       class="com.spss.esb.CreateFileMessage" process="receivedFile">
       <jesb:property name="serverUrl" value="jnp://localhost:1299/"></jesb:property>
       </jesb:action>
       </jesb:actions>
       </jesb:service>
       </jesb:services>
      </jesb:jbossesb>
      
      


      If I remove the suffix tag all together I get:

      14:33:33,467 ERROR [XmlValidatorImpl] 1-ERROR-null-14:cvc-complex type.4: Attribute 'input-suffix' must appear on element 'jesb:fs-message-filter'.