You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Sivashankar <al...@aim.com> on 2006/08/18 07:23:11 UTC

Problem in Deployment.

Hi i am working on deploying a component to servicemix ESB. My component is 
working properly but it is executing twice. The second time it is throwing 
exceptions but it is enough for me to run once.

for example when i call a constructor once it is called by the server twice 
and throwing error in the second time.

Can any one help me out please.




Re: Problem in Deployment.

Posted by Sivashankar <al...@aim.com>.

Yeah i tried deleting that type from that tag now it is throwing some other 
error and also my polling thing is running twice......

the error i got is.....


Loading Apache ServiceMix from file: servicemix.xml
Into read files, readAll().......
Into read files, readAll().......
INFO  - JBIContainer                   - Activating component for: 
[container=ServiceMix,name=#SubscriptionManager#] with service: null 
component: org.apache.s
mix.jbi.nmr.SubscriptionManager@7be8c2
INFO  - ComponentMBeanImpl             - Initializing component: 
#SubscriptionManager#
Connected
INFO  - DeploymentService              - Restoring service assemblies
INFO  - JBIContainer                   - ServiceMix JBI Container 
(http://servicemix.org/) name: ServiceMix running version: 3.0-M2-incubating
Caught: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'jbi' defined in file 
[D:\MAINFRAME\Install\aservicemix-3.0-M2-i
ing\examples\test\servicemix.xml]: Invocation of init method failed; nested 
exception is java.lang.IllegalArgumentException: Component name: ReadFiles is 
bound
 object which is not a JBI component, it is of type: com.ReadFiles.ReadFiles
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'jbi' defined in file [D:\MAINFRAME\Install\aservicemix-3.0-M2-
incubatin
ples\test\servicemix.xml]: Invocation of init method failed; nested exception 
is java.lang.IllegalArgumentException: Component name: ReadFiles is bound to 
an o
which is not a JBI component, it is of type: com.ReadFiles.ReadFiles
Caused by: java.lang.IllegalArgumentException: Component name: ReadFiles is 
bound to an object which is not a JBI component, it is of type: 
com.ReadFiles.ReadF
        at org.apache.servicemix.jbi.container.JBIContainer.activateComponent
(JBIContainer.java:915)
        at 
org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet
(SpringJBIContainer.java:67)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.in
vokeInitMethods(AbstractAutowireCapableBeanFactory.java:901)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.in
itializeBean(AbstractAutowireCapableBeanFactory.java:870)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cr
eateBean(AbstractAutowireCapableBeanFactory.java:393)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:256)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:167)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstant
iateSingletons(DefaultListableBeanFactory.java:253)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh
(AbstractApplicationContext.java:332)
        at 
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>
(FileSystemXmlApplicationContext.java:150)
        at 
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>
(FileSystemXmlApplicationContext.java:101)
        at org.apache.servicemix.Main.main(Main.java:80)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
File FTP.log Sent Successfully  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)

Connected       at java.lang.reflect.Method.invoke(Method.java:585)

        at org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:461)
File FTP.log Sent Successfully
INFO  - FtpJob                         - File Details ..08-19-06  
03:22AM                 6870 FTP.log
File Details ..08-19-06  03:22AM                 6870 FTP.log
[FTP.log]added to list
Name of the File That is Being Processed===>FTP.log
Into checkFileSize()...
File Name  FTP.log
ftpFileSize  6870
INFO  - FtpJob                         - File Details ..08-19-06  
03:22AM                 6870 FTP.log
File Details ..08-19-06  03:22AM                 6870 FTP.log
[FTP.log]added to list
Name of the File That is Being Processed===>FTP.log
Into checkFileSize()...
File Name  FTP.log
ftpFileSize  6870
ftpFileSize16870
File Going to be deletedFTP.log
FTP.log
ftpFileSize16870
File Going to be deletedFTP.log
FTP.log
successfully deleted
INFO  - FtpJob                         - FtpJob.deleteFiles::File successfully 
deleted
ERROR - FtpJob                         - FtpJob.readFiles:Exception
com.allfon.century.components.cm.ftp.FTPException: FTP.log: The system cannot 
find the file specified.
        at com.allfon.century.components.cm.ftp.FTPControlSocket.validateReply
(FTPControlSocket.java:380)
        at com.allfon.century.components.cm.ftp.FTPClient.get
(FTPClient.java:209)
        at com.allfon.century.components.cm.ftp.FtpJob.getFile(FtpJob.java:275)
        at com.allfon.century.components.cm.ftp.FtpJob.readFiles
(FtpJob.java:658)
        at com.ReadFiles.ReadFiles$Read.getRemoteFiles(ReadFiles.java:117)
        at com.ReadFiles.ReadFiles$Read.run(ReadFiles.java:60)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
java.lang.Exception: The File 'FTP.log' does not Exists
        at com.allfon.century.components.cm.ftp.FtpJob.readFiles
(FtpJob.java:664)
        at com.ReadFiles.ReadFiles$Read.getRemoteFiles(ReadFiles.java:117)
        at com.ReadFiles.ReadFiles$Read.run(ReadFiles.java:60)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Exception while dejava.lang.Exception: The File 'FTP.log' does not Exists
no files found in folder.
no files found in folder.
waiting for files to be dropped...
waiting for files to be dropped...
no files found in folder.
no files found in folder.
waiting for files to be dropped...
waiting for files to be dropped...
no files found in folder.
no files found in folder.

See the same thing is printed also twice instead of once....


Re: Problem in Deployment.

Posted by Guillaume Nodet <gn...@gmail.com>.
You have to remove the type="com.ReadFiles.ReadFiles" attribute on your
activationSpec definition.

On 8/18/06, Sivashankar <al...@aim.com> wrote:
>
> Guillaume Nodet <gn...@...> writes:
>
> >
> > This error is caused by an invalid "type" attribute defined on the
> > activationSpec.
> >
> > On 8/18/06, Sivashankar <al...@...> wrote:
> > > Hi i am working on deploying a component to servicemix ESB. My component is
> > > working properly but it is executing twice. The second time it is throwing
> > > exceptions but it is enough for me to run once.
> > >
> > > for example when i call a constructor once it is called by the server twice
> > > and throwing error in the second time.
> > >
> > > Can any one help me out please.
> > >
> > > this is the error iam getting before execution of my component...
> > >
> > >
> > > servicemix.bat: Ignoring predefined value for SERVICEMIX_HOME
> > > Apache ServiceMix ESB: 3.0-M2-incubating
> > >
> > > Loading Apache ServiceMix from file: servicemix.xml
> > > Into read files, readAll().......
> > > Caught: org.springframework.beans.factory.BeanCreationException: Error
> > > creating bean with
> name 'org.apache.servicemix.jbi.container.ActivationSpec'
> > > defin
> > > D:\MAINFRAME\Install\aservicemix-3.0-M2-
> > > incubating\examples\test\servicemix.xml]: Error setting property values;
> > > nested exception is org.springframework.
> > > tablePropertyException: Invalid property 'type' of bean class
> > > [org.apache.servicemix.jbi.container.ActivationSpec]: Bean property 'type'
> is
> > > not writable
> > > valid setter method. Does the parameter type of the setter match the return
> > > type of the getter?
> > > org.springframework.beans.factory.BeanCreationException: Error creating
> bean
> > > with name 'org.apache.servicemix.jbi.container.ActivationSpec' defined in
> fi
> > > RAME\Install\aservicemix-3.0-M2-incubating\examples\test\servicemix.xml]:
> > > Error setting property values; nested exception is
> org.springframework.beans.No
> > > pertyException: Invalid property 'type' of bean class
> > > [org.apache.servicemix.jbi.container.ActivationSpec]: Bean property 'type'
> is
> > > not writable or has a
> > > tter method. Does the parameter type of the setter match the return type of
> > > the getter?
> > > Caused by: org.springframework.beans.NotWritablePropertyException: Invalid
> > > property 'type' of bean class
> [org.apache.servicemix.jbi.container.ActivationS
> > > roperty 'type' is not writable or has an invalid setter method. Does the
> > > parameter type of the setter match the return type of the getter?
> > >         at org.springframework.beans.BeanWrapperImpl.setPropertyValue
> > > (BeanWrapperImpl.java:699)
> > >         at org.springframework.beans.BeanWrapperImpl.setPropertyValue
> > > (BeanWrapperImpl.java:575)
> > >         at
> org.springframework.beans.AbstractPropertyAccessor.setPropertyValue
> > > (AbstractPropertyAccessor.java:49)
> > >         at
> org.springframework.beans.AbstractPropertyAccessor.setPropertyValues
> > > (AbstractPropertyAccessor.java:68)
> > >         at
> org.springframework.beans.AbstractPropertyAccessor.setPropertyValues
> > > (AbstractPropertyAccessor.java:57)
> > >         at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ap
> > > plyPropertyValues(AbstractAutowireCapableBeanFactory.java:813)
> > >         at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.po
> > > pulateBean(AbstractAutowireCapableBeanFactory.java:589)
> > >         at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cr
> > > eateBean(AbstractAutowireCapableBeanFactory.java:389)
> > >         at
> > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> > > (AbstractBeanFactory.java:256)
> > >         at
> > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> > > (AbstractBeanFactory.java:167)
> > >         at
> > >
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstant
> > > iateSingletons(DefaultListableBeanFactory.java:253)
> > >         at
> > > org.springframework.context.support.AbstractApplicationContext.refresh
> > > (AbstractApplicationContext.java:332)
> > >         at
> > > org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>
> > > (FileSystemXmlApplicationContext.java:150)
> > >         at
> > > org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>
> > > (FileSystemXmlApplicationContext.java:101)
> > >         at org.apache.servicemix.Main.main(Main.java:80)
> > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >         at sun.reflect.NativeMethodAccessorImpl.invoke
> > > (NativeMethodAccessorImpl.java:39)
> > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > (DelegatingMethodAccessorImpl.java:25)
> > >         at java.lang.reflect.Method.invoke(Method.java:585)
> > >         at org.codehaus.classworlds.Launcher.launchStandard
> (Launcher.java:410)
> > >         at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
> > >         at org.codehaus.classworlds.Launcher.main(Launcher.java:461)
> > >
> > >
> > >
> > >
> > >
> > >
> >
>
> hi Guillaume Nodet
>
> i am trying to give an input from this servicemix.xml to make a FTP server
> read files from local directory to an FTP server. My source is Readfiles.java
> with its corressponding packages. i don know where i have to specify that type
> and also what type....
>
> this is the input xml iam giving to the server.....
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns:sm="http://servicemix.apache.org/config/1.0">
>
>   <!-- the JBI container -->
>   <sm:container id="jbi"
>                 rootDir="./wdir"
>                 installationDirPath="./install"
>                 deploymentDirPath="./deploy"
>                 flowName="seda" >
> <sm:activationSpecs >
> <sm:activationSpec componentName="ReadFiles"
>                                 service="foo:ReadFiles"
> type="com.ReadFiles.ReadFiles">
>
>                                 <sm:component>
>                                      <bean class="com.ReadFiles.ReadFiles">
>                              <constructor-arg
> type="java.lang.String"><value>D:/ftp/FTP.log</value></constructor-arg>
>                              </bean>
>                                 </sm:component>
>
> </sm:activationSpec>
>
> </sm:activationSpecs>
>
>   </sm:container>
>
>   <!-- message broker -->
>
> </beans>
>
>
>
>
>


-- 
Cheers,
Guillaume Nodet

Re: Problem in Deployment.

Posted by Sivashankar <al...@aim.com>.
Guillaume Nodet <gn...@...> writes:

> 
> This error is caused by an invalid "type" attribute defined on the
> activationSpec.
> 
> On 8/18/06, Sivashankar <al...@...> wrote:
> > Hi i am working on deploying a component to servicemix ESB. My component is
> > working properly but it is executing twice. The second time it is throwing
> > exceptions but it is enough for me to run once.
> >
> > for example when i call a constructor once it is called by the server twice
> > and throwing error in the second time.
> >
> > Can any one help me out please.
> >
> > this is the error iam getting before execution of my component...
> >
> >
> > servicemix.bat: Ignoring predefined value for SERVICEMIX_HOME
> > Apache ServiceMix ESB: 3.0-M2-incubating
> >
> > Loading Apache ServiceMix from file: servicemix.xml
> > Into read files, readAll().......
> > Caught: org.springframework.beans.factory.BeanCreationException: Error
> > creating bean with 
name 'org.apache.servicemix.jbi.container.ActivationSpec'
> > defin
> > D:\MAINFRAME\Install\aservicemix-3.0-M2-
> > incubating\examples\test\servicemix.xml]: Error setting property values;
> > nested exception is org.springframework.
> > tablePropertyException: Invalid property 'type' of bean class
> > [org.apache.servicemix.jbi.container.ActivationSpec]: Bean property 'type' 
is
> > not writable
> > valid setter method. Does the parameter type of the setter match the return
> > type of the getter?
> > org.springframework.beans.factory.BeanCreationException: Error creating 
bean
> > with name 'org.apache.servicemix.jbi.container.ActivationSpec' defined in 
fi
> > RAME\Install\aservicemix-3.0-M2-incubating\examples\test\servicemix.xml]:
> > Error setting property values; nested exception is 
org.springframework.beans.No
> > pertyException: Invalid property 'type' of bean class
> > [org.apache.servicemix.jbi.container.ActivationSpec]: Bean property 'type' 
is
> > not writable or has a
> > tter method. Does the parameter type of the setter match the return type of
> > the getter?
> > Caused by: org.springframework.beans.NotWritablePropertyException: Invalid
> > property 'type' of bean class 
[org.apache.servicemix.jbi.container.ActivationS
> > roperty 'type' is not writable or has an invalid setter method. Does the
> > parameter type of the setter match the return type of the getter?
> >         at org.springframework.beans.BeanWrapperImpl.setPropertyValue
> > (BeanWrapperImpl.java:699)
> >         at org.springframework.beans.BeanWrapperImpl.setPropertyValue
> > (BeanWrapperImpl.java:575)
> >         at 
org.springframework.beans.AbstractPropertyAccessor.setPropertyValue
> > (AbstractPropertyAccessor.java:49)
> >         at 
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues
> > (AbstractPropertyAccessor.java:68)
> >         at 
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues
> > (AbstractPropertyAccessor.java:57)
> >         at
> > 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ap
> > plyPropertyValues(AbstractAutowireCapableBeanFactory.java:813)
> >         at
> > 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.po
> > pulateBean(AbstractAutowireCapableBeanFactory.java:589)
> >         at
> > 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cr
> > eateBean(AbstractAutowireCapableBeanFactory.java:389)
> >         at
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> > (AbstractBeanFactory.java:256)
> >         at
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> > (AbstractBeanFactory.java:167)
> >         at
> > 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstant
> > iateSingletons(DefaultListableBeanFactory.java:253)
> >         at
> > org.springframework.context.support.AbstractApplicationContext.refresh
> > (AbstractApplicationContext.java:332)
> >         at
> > org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>
> > (FileSystemXmlApplicationContext.java:150)
> >         at
> > org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>
> > (FileSystemXmlApplicationContext.java:101)
> >         at org.apache.servicemix.Main.main(Main.java:80)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke
> > (NativeMethodAccessorImpl.java:39)
> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > (DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at org.codehaus.classworlds.Launcher.launchStandard
(Launcher.java:410)
> >         at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
> >         at org.codehaus.classworlds.Launcher.main(Launcher.java:461)
> >
> >
> >
> >
> >
> >
> 

hi Guillaume Nodet 

i am trying to give an input from this servicemix.xml to make a FTP server 
read files from local directory to an FTP server. My source is Readfiles.java 
with its corressponding packages. i don know where i have to specify that type 
and also what type....

this is the input xml iam giving to the server.....

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0">

  <!-- the JBI container -->
  <sm:container id="jbi" 
                rootDir="./wdir" 
                installationDirPath="./install"
                deploymentDirPath="./deploy"
                flowName="seda" >
<sm:activationSpecs >
<sm:activationSpec componentName="ReadFiles"
				service="foo:ReadFiles" 
type="com.ReadFiles.ReadFiles">

				<sm:component>
				     <bean class="com.ReadFiles.ReadFiles">
                             <constructor-arg 
type="java.lang.String"><value>D:/ftp/FTP.log</value></constructor-arg> 
                             </bean>
				</sm:component>

</sm:activationSpec>

</sm:activationSpecs>

  </sm:container>

  <!-- message broker -->
  
</beans>





Re: Problem in Deployment.

Posted by Guillaume Nodet <gn...@gmail.com>.
This error is caused by an invalid "type" attribute defined on the
activationSpec.

On 8/18/06, Sivashankar <al...@aim.com> wrote:
> Hi i am working on deploying a component to servicemix ESB. My component is
> working properly but it is executing twice. The second time it is throwing
> exceptions but it is enough for me to run once.
>
> for example when i call a constructor once it is called by the server twice
> and throwing error in the second time.
>
> Can any one help me out please.
>
> this is the error iam getting before execution of my component...
>
>
> servicemix.bat: Ignoring predefined value for SERVICEMIX_HOME
> Apache ServiceMix ESB: 3.0-M2-incubating
>
> Loading Apache ServiceMix from file: servicemix.xml
> Into read files, readAll().......
> Caught: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'org.apache.servicemix.jbi.container.ActivationSpec'
> defin
> D:\MAINFRAME\Install\aservicemix-3.0-M2-
> incubating\examples\test\servicemix.xml]: Error setting property values;
> nested exception is org.springframework.
> tablePropertyException: Invalid property 'type' of bean class
> [org.apache.servicemix.jbi.container.ActivationSpec]: Bean property 'type' is
> not writable
> valid setter method. Does the parameter type of the setter match the return
> type of the getter?
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'org.apache.servicemix.jbi.container.ActivationSpec' defined in fi
> RAME\Install\aservicemix-3.0-M2-incubating\examples\test\servicemix.xml]:
> Error setting property values; nested exception is org.springframework.beans.No
> pertyException: Invalid property 'type' of bean class
> [org.apache.servicemix.jbi.container.ActivationSpec]: Bean property 'type' is
> not writable or has a
> tter method. Does the parameter type of the setter match the return type of
> the getter?
> Caused by: org.springframework.beans.NotWritablePropertyException: Invalid
> property 'type' of bean class [org.apache.servicemix.jbi.container.ActivationS
> roperty 'type' is not writable or has an invalid setter method. Does the
> parameter type of the setter match the return type of the getter?
>         at org.springframework.beans.BeanWrapperImpl.setPropertyValue
> (BeanWrapperImpl.java:699)
>         at org.springframework.beans.BeanWrapperImpl.setPropertyValue
> (BeanWrapperImpl.java:575)
>         at org.springframework.beans.AbstractPropertyAccessor.setPropertyValue
> (AbstractPropertyAccessor.java:49)
>         at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues
> (AbstractPropertyAccessor.java:68)
>         at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues
> (AbstractPropertyAccessor.java:57)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ap
> plyPropertyValues(AbstractAutowireCapableBeanFactory.java:813)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.po
> pulateBean(AbstractAutowireCapableBeanFactory.java:589)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cr
> eateBean(AbstractAutowireCapableBeanFactory.java:389)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> (AbstractBeanFactory.java:256)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> (AbstractBeanFactory.java:167)
>         at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstant
> iateSingletons(DefaultListableBeanFactory.java:253)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh
> (AbstractApplicationContext.java:332)
>         at
> org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>
> (FileSystemXmlApplicationContext.java:150)
>         at
> org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>
> (FileSystemXmlApplicationContext.java:101)
>         at org.apache.servicemix.Main.main(Main.java:80)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:461)
>
>
>
>
>
>


-- 
Cheers,
Guillaume Nodet

Re: Problem in Deployment.

Posted by Sivashankar <al...@aim.com>.
Hi i am working on deploying a component to servicemix ESB. My component is 
working properly but it is executing twice. The second time it is throwing 
exceptions but it is enough for me to run once.
 
for example when i call a constructor once it is called by the server twice 
and throwing error in the second time.

Can any one help me out please. 

this is the error iam getting before execution of my component...


servicemix.bat: Ignoring predefined value for SERVICEMIX_HOME
Apache ServiceMix ESB: 3.0-M2-incubating

Loading Apache ServiceMix from file: servicemix.xml
Into read files, readAll().......
Caught: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'org.apache.servicemix.jbi.container.ActivationSpec' 
defin
D:\MAINFRAME\Install\aservicemix-3.0-M2-
incubating\examples\test\servicemix.xml]: Error setting property values; 
nested exception is org.springframework.
tablePropertyException: Invalid property 'type' of bean class 
[org.apache.servicemix.jbi.container.ActivationSpec]: Bean property 'type' is 
not writable
valid setter method. Does the parameter type of the setter match the return 
type of the getter?
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.apache.servicemix.jbi.container.ActivationSpec' defined in fi
RAME\Install\aservicemix-3.0-M2-incubating\examples\test\servicemix.xml]: 
Error setting property values; nested exception is org.springframework.beans.No
pertyException: Invalid property 'type' of bean class 
[org.apache.servicemix.jbi.container.ActivationSpec]: Bean property 'type' is 
not writable or has a
tter method. Does the parameter type of the setter match the return type of 
the getter?
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid 
property 'type' of bean class [org.apache.servicemix.jbi.container.ActivationS
roperty 'type' is not writable or has an invalid setter method. Does the 
parameter type of the setter match the return type of the getter?
        at org.springframework.beans.BeanWrapperImpl.setPropertyValue
(BeanWrapperImpl.java:699)
        at org.springframework.beans.BeanWrapperImpl.setPropertyValue
(BeanWrapperImpl.java:575)
        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValue
(AbstractPropertyAccessor.java:49)
        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues
(AbstractPropertyAccessor.java:68)
        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues
(AbstractPropertyAccessor.java:57)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ap
plyPropertyValues(AbstractAutowireCapableBeanFactory.java:813)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.po
pulateBean(AbstractAutowireCapableBeanFactory.java:589)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cr
eateBean(AbstractAutowireCapableBeanFactory.java:389)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:256)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:167)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstant
iateSingletons(DefaultListableBeanFactory.java:253)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh
(AbstractApplicationContext.java:332)
        at 
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>
(FileSystemXmlApplicationContext.java:150)
        at 
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>
(FileSystemXmlApplicationContext.java:101)
        at org.apache.servicemix.Main.main(Main.java:80)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:461)






Re: Problem in Deployment.

Posted by Sivashankar <al...@aim.com>.
Hi i am working on deploying a component to servicemix ESB. My component is 
working properly but it is executing twice. The second time it is throwing 
exceptions but it is enough for me to run once.
 
for example when i call a constructor once it is called by the server twice 
and throwing error in the second time.

Can any one help me out please. 

this is the error iam getting before execution of my component...


servicemix.bat: Ignoring predefined value for SERVICEMIX_HOME
Apache ServiceMix ESB: 3.0-M2-incubating

Loading Apache ServiceMix from file: servicemix.xml
Into read files, readAll().......
Caught: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'org.apache.servicemix.jbi.container.ActivationSpec' 
defin
D:\MAINFRAME\Install\aservicemix-3.0-M2-
incubating\examples\test\servicemix.xml]: Error setting property values; 
nested exception is org.springframework.
tablePropertyException: Invalid property 'type' of bean class 
[org.apache.servicemix.jbi.container.ActivationSpec]: Bean property 'type' is 
not writable
valid setter method. Does the parameter type of the setter match the return 
type of the getter?
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.apache.servicemix.jbi.container.ActivationSpec' defined in fi
RAME\Install\aservicemix-3.0-M2-incubating\examples\test\servicemix.xml]: 
Error setting property values; nested exception is org.springframework.beans.No
pertyException: Invalid property 'type' of bean class 
[org.apache.servicemix.jbi.container.ActivationSpec]: Bean property 'type' is 
not writable or has a
tter method. Does the parameter type of the setter match the return type of 
the getter?
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid 
property 'type' of bean class [org.apache.servicemix.jbi.container.ActivationS
roperty 'type' is not writable or has an invalid setter method. Does the 
parameter type of the setter match the return type of the getter?
        at org.springframework.beans.BeanWrapperImpl.setPropertyValue
(BeanWrapperImpl.java:699)
        at org.springframework.beans.BeanWrapperImpl.setPropertyValue
(BeanWrapperImpl.java:575)
        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValue
(AbstractPropertyAccessor.java:49)
        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues
(AbstractPropertyAccessor.java:68)
        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues
(AbstractPropertyAccessor.java:57)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ap
plyPropertyValues(AbstractAutowireCapableBeanFactory.java:813)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.po
pulateBean(AbstractAutowireCapableBeanFactory.java:589)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cr
eateBean(AbstractAutowireCapableBeanFactory.java:389)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:256)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:167)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstant
iateSingletons(DefaultListableBeanFactory.java:253)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh
(AbstractApplicationContext.java:332)
        at 
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>
(FileSystemXmlApplicationContext.java:150)
        at 
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>
(FileSystemXmlApplicationContext.java:101)
        at org.apache.servicemix.Main.main(Main.java:80)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:461)