IgniteCheckedException

classic Classic list List threaded Threaded
2 messages Options
kay kay
Reply | Threaded
Open this post in threaded view
|

IgniteCheckedException

Hello, I start node using command

' sh ignite.sh ./config/config.xml &  ' 

It worked well before I added IgniteSpringBean.

After I add this code,


<bean id="mySpringBean" class="org.apache.ignite.IgniteSpringBean">
     <property name="configuration">
         <bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
             <property name="igniteInstanceName" value="mySpringGrid"/>
         </bean>
     </property>
 </bean>



2020-06-16T16:20:38,429][INFO ][main][G] Node started : [stage="Configure system pool" (53 ms),stage="Start managers" (187 ms),stage="Configure binary metadata" (41 ms),stage="Start processors" (623 ms),stage="Init metastore" (9 ms),stage="Finish recovery" (0 ms),stage="Join topology" (170 ms),stage="Await transition" (14 ms),stage="Await exchange" (379 ms),stage="Total time" (1476 ms)]
 class org.apache.ignite.IgniteException: Failed to find configuration in: file:./config/config.xml
         at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:1067)
         at org.apache.ignite.Ignition.start(Ignition.java:349)
         at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:300)
 Caused by: class org.apache.ignite.IgniteCheckedException: Failed to find configuration in: file:./config/config.xml
         at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:116)
         at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
         at org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:710)
         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:911)
         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:820)
         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:690)
         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:659)
         at org.apache.ignite.Ignition.start(Ignition.java:346)
         ... 1 more
 Failed to start grid: Failed to find configuration in: file:./config/config.xml



Node started and failed.

Is there any set up to use IgniteSpringBean??

Thank you  
ilya.kasnacheev ilya.kasnacheev
Reply | Threaded
Open this post in threaded view
|

Re: IgniteCheckedException

Hello!

Such spring XML config cannot be started by ignite.sh, it should be started as part of a Spring application.

Regards.
--
Ilya Kasnacheev


вт, 16 июн. 2020 г. в 10:43, kay bae <[hidden email]>:
Hello, I start node using command

' sh ignite.sh ./config/config.xml &  ' 

It worked well before I added IgniteSpringBean.

After I add this code,


<bean id="mySpringBean" class="org.apache.ignite.IgniteSpringBean">
     <property name="configuration">
         <bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
             <property name="igniteInstanceName" value="mySpringGrid"/>
         </bean>
     </property>
 </bean>



2020-06-16T16:20:38,429][INFO ][main][G] Node started : [stage="Configure system pool" (53 ms),stage="Start managers" (187 ms),stage="Configure binary metadata" (41 ms),stage="Start processors" (623 ms),stage="Init metastore" (9 ms),stage="Finish recovery" (0 ms),stage="Join topology" (170 ms),stage="Await transition" (14 ms),stage="Await exchange" (379 ms),stage="Total time" (1476 ms)]
 class org.apache.ignite.IgniteException: Failed to find configuration in: file:./config/config.xml
         at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:1067)
         at org.apache.ignite.Ignition.start(Ignition.java:349)
         at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:300)
 Caused by: class org.apache.ignite.IgniteCheckedException: Failed to find configuration in: file:./config/config.xml
         at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:116)
         at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
         at org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:710)
         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:911)
         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:820)
         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:690)
         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:659)
         at org.apache.ignite.Ignition.start(Ignition.java:346)
         ... 1 more
 Failed to start grid: Failed to find configuration in: file:./config/config.xml



Node started and failed.

Is there any set up to use IgniteSpringBean??

Thank you