This Java program is supposed to work. But it doesn’t. From what I can figure, the problem has something to do with the springframework package. I’m a beginner java programmer so I don’t really know where to start so I’m simply including the whole project file which can be downloaded from herecabio.zip
This program conducts a simple cancer research project using CaBIO . CaBio is an ant project which has 3 folders (conf, lib, src) and a build file and according to CaBIo we need to link the lib and conf folder with my project so I created a new project(cabio) in jcreator and added the two directories project>add Existing Directory.
I’ve also added the batik-swing.jar (batik-swing.jar in project>project setting>required libraries because it was used in one of the files.
I’m using JDK 1.5.0.14 because it’s recommended with the CaBIO and JCreator pro 4.50.010.
I can build the project. When I want to run the project, that is run the swingCaBio.java the program starts. From the GUIwhenever I try to access the search options of any of the 4 tabs for example, clinical trail>search text> if I put “skin cancer” I get the following exceptions.
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError at SearchEngine.processSearch(SearchEngine.java:16) at SwingCaBio$1.run(SwingCaBio.java:341) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [application-config-client.xml]; nested exception is java.io.FileNotFoundException: class path resource [application-config-client.xml] cannot be opened because it does not exist at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:173) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:112) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:79) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:100) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:298) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65) at gov.nih.nci.system.client.ApplicationServiceProvider.<clinit>(ApplicationServiceProvider.java:29) ... 9 more Caused by: java.io.FileNotFoundException: class path resource [application-config-client.xml] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:135) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:297) ... 21 more
I dont really know what I'm doing so I’ll really appreciate is someone can take the time and tell me how to solve these exceptions.


LinkBack URL
About LinkBacks
Reply With Quote