Unknown component

Hi,

I am currently upgrading my version of CloverETL Engine to 2.8.0 jar file.
I am receiving this error when trying to start my graph:

ERROR [main] - Unknown component: FILTER class: FILTER
[java] java.lang.ClassNotFoundException: FILTER
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
[java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
[java] at java.lang.Class.forName0(Native Method)
[java] Exception in thread “main” java.lang.RuntimeException: Unknown component: FILTER class: FILTER
[java] at java.lang.Class.forName(Class.java:169)
[java] at org.jetel.component.ComponentFactory.getComponentClass(ComponentFactory.java:108)
[java] at org.jetel.component.ComponentFactory.getComponentClass(ComponentFactory.java:97)
[java] at org.jetel.component.ComponentFactory.createComponent(ComponentFactory.java:126)
[java] at org.jetel.component.ComponentFactory.createComponent(ComponentFactory.java:126)
[java] at org.jetel.graph.TransformationGraphXMLReaderWriter.instantiateNodes(TransformationGraphXMLReaderWriter.java:478)
[java] at org.jetel.graph.TransformationGraphXMLReaderWriter.instantiateNodes(TransformationGraphXMLReaderWriter.java:478)
[java] at org.jetel.graph.TransformationGraphXMLReaderWriter.instantiatePhases(TransformationGraphXMLReaderWriter.java:441)
[java] at org.jetel.graph.TransformationGraphXMLReaderWriter.instantiatePhases(TransformationGraphXMLReaderWriter.java:441)
[java] at org.jetel.graph.TransformationGraphXMLReaderWriter.read(TransformationGraphXMLReaderWriter.java:356)
[java] at org.jetel.graph.TransformationGraphXMLReaderWriter.read(TransformationGraphXMLReaderWriter.java:356)
[java] at org.jetel.graph.TransformationGraphXMLReaderWriter.read(TransformationGraphXMLReaderWriter.java:286)
[java] at org.jetel.graph.TransformationGraphXMLReaderWriter.read(TransformationGraphXMLReaderWriter.java:286)
[java] at org.jetel.graph.TransformationGraphXMLReaderWriter.loadGraph(TransformationGraphXMLReaderWriter.java:215)
[java] at org.jetel.graph.TransformationGraphXMLReaderWriter.loadGraph(TransformationGraphXMLReaderWriter.java:215)
[java] at org.jetel.main.runGraph.main(runGraph.java:334)
[java] at org.jetel.main.runGraph.main(runGraph.java:334)
[java] at com.tranme.guide.canadapostbatch.loadcd.CanadaPostLoadGraph.main(CanadaPostLoadGraph.java:8)
[java] at com.tranme.guide.canadapostbatch.loadcd.CanadaPostLoadGraph.main(CanadaPostLoadGraph.java:8)
[java] Caused by: java.lang.ClassNotFoundException: FILTER
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
[java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
[java] at java.lang.Class.forName0(Native Method)
[java] at java.lang.Class.forName(Class.java:169)
[java] at org.jetel.component.ComponentFactory.getComponentClass(ComponentFactory.java:97)
[java] … 8 more

How could I fix this ClassNotFoundException or maybe I need another version of CloverETL Engine. I am upgrading from 1.1.0 to 2.8.0 for performance reason and currently still using java 1.6 so I can’t go to the newest version.

Thank you for your time,
Matt

Hi,

I found my problem, I didn’t import the plugins of Clover Engine wich was causing the error.

But now I’m receiving this error about arguments

[java] Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 2
[java] at org.jetel.main.runGraph.main(runGraph.java:188)
[java] at com.tranme.guide.canadapostbatch.loadcd.CanadaPostLoadGraph.main(CanadaPostLoadGraph.java:8)

BUILD FAILED
/guide/domains/guiddev/batch/canadaPostBatch/build.xml:396: The following error occurred while executing this line:
/guide/domains/guiddev/batch/canadaPostBatch/build.xml:202: Java returned: 1

I currently have 2 arguments

<arg value="${canadapostdir}/metadata/CanadaPostADD.grf"/>	
			<arg value="-cfg ${canadapostdir}/dbConn.cfg"/>

I’m currently trying to see if I’m missing an argument any tips are welcome.

Thanks,
Matt

Hi,

You can have multiple versions (instances) of Java running simultaneously on a single machine. So if you install Java 1.7 ( or 1.8 ), you will be able to upgrade to version 4.x.x. However, these versions are using scripting language CTL2, so it is possible that you may need to rewrite your graphs to comply with this language.

Back to your question, I don’t really understand whether you are trying to execute a graph

I am receiving this error when trying to start my graph:

“mathsniki”

or build the CloverETL

BUILD FAILED
/guide/domains/guiddev/batch/canadaPostBatch/build.xml:396: The following error occurred while executing this line:
/guide/domains/guiddev/batch/canadaPostBatch/build.xml:202: Java returned: 1

“mathsniki”

If the latter is true, can you please explain what is the reason for building the application with those arguments? And how exactly are you upgrading the CloverETL Engine from 1.1.0 to 2.8.0? Please describe the process.

Also, I must inform you that versions prior to 4.x.x are no longer supported.

Best regards,

Hi,

Thanks for the reply, I was able to upgrade my CloverEngine and make it work Succefully!

But to clarify, I was using Ant build which was calling my java class which calls the runGraph method from CloverEngineETL 2.8.1.jar

I was able to upgrade CLoverEngineETL 1.1.0 to 2.8.1 by getting the source files from CloverEngineETL 2.8.1 and make it into a jar file to than upgrade my application to be able to work with CloverEngine 2.8.1.

Thanks for your time,

Matt