Praveen Chadichal

Greenhorn
+ Follow
since Apr 07, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Praveen Chadichal

Hi,
Anton Melumad can you please help me in undersanding the setting in getting the xml file out of the CSV file. I tried to look for the getting started link of this but could not understand on it. It would be of great help if you can give me some insite on this. If you can give me a demo project also would help in great amount.


Thanks in advance,
Praveen
Hi,
Can anyone help me to knw how to decode a JCAPS generated OTD meta file. I am using this for a migration purpose. My meta file looks something like this below:
*******************************************
# This is the OTD metadata, generated by FogMeta.
# Format: @index id info display-name Java-name class
# Id is parent-node key + '.' + child-index.
# Info is type-letter + optional info flags.
# Flags: '*'=repeat, '?'=optional, '<'=read, '>'=write.
# --------------------------------
@0 54.0.0 n?=<> 0 - +fileInputOTD +Fileinputotd +ud1.fileInputOTD_34597888.Env1.Fileinputotd
@1 54.1.0 n=<> 0 - +inputElem +Inputelem +ud1.fileInputOTD_34597888.Env1.Inputelem
@2 54.2.0 o=<> 0 - +CustID +Custid -
@3 54.2.1 o=<> 1 - +Fname +Fname -
@4 54.2.2 o=<> 2 - +Lname +Lname -
@5 54.2.3 o=<> 3 - +minSalary +Minsalary -
@6 54.2.4 o=<> 4 - +incentive +Incentive -
# Fileinputotd = 0
%54.0.0 0 1 1 -
%54.1.0 1 5 2 3 4 5 6 -
*******************************************
and my decoding code as below:
File file = new File("D:/FileTransfer_otdEmployeeInfo/ud1/otdEmployeeInfo329435304/otd.meta");
FileInputStream in = new FileInputStream(file);
FileChannel channel = in.getChannel();
ByteBuffer byteBuffer = channel.map(FileChannel.MapMode.READ_ONLY, 0, file.length());
Charset charset = Charset.forName("iso-8859-1");
CharsetDecoder decoder = charset.newDecoder();
CharBuffer charBuffer = decoder.decode(byteBuffer);
channel.close();
String s = charBuffer.toString();
System.out.println(s);
My above code prints the same file content as the encoded one meaning the meta data. .
Can anyone help how can i achieve in getting decoded content? Your immediate response is deeply appreciated
12 years ago
Not working means i said rite "Even though i mock this class it still continues to call the static method code.". The mock of the static class is not created while running in netBeans. But the same code run perfectly well by creating mock in ECLIPSE
14 years ago
I am working on netBeans6.7 IDE, I have class that has static methods, which is called by a non static class. i am trying to create a Junit test case for this non static class. But i am unable to mock the static class. Even though i mock this class it still continues to call the static method code. I am not understanding the behaviour. I tried using PowerMock & other mock creation jars for the static classes but its not working in netBeans , If i run the same with the same jars in Eclipse it works. I have tried looking into the code of all the possible websites on creating the mock for static class but no use . Can anyone please help me on this. Quick response is deeply appreciated.
14 years ago
Is it a good practice to use ".anyTimes()" instead of the "times()" for the Junit test methods. If yes/no please provide me the link that confirms this practice.
14 years ago
Here in the below code my A table is "ApplicationEventInstance" & the table B is "EbizAppEvent" into which it is inserted.


The "convertEventInstanceToAppEvent" method will convert the ApplicationEventInstance pojo to EbizAppEvent pojo object..... here its as below:

Can you help me out on this please ?
Hi,
I have something teadious issue, i donno how is this happening, The problem is i have overall 4 tables(say A,B,C,D) in which i need to manipulate the data. The thing is i only fetch data from table A insert into table B, then fetch data from B and insert into table C & D. The issue what am facing is that a UPDATE query is getting fired for the table A which actually should not happen atall since i only fetch from this table. Its something that breaking my head. M unable to get why is this happening. Can any one help me on this. I am using hibernate to do this, is it that am missing anything in the hibernate configuration. have anyone came across this issue. quick help is deeply appreciated!
Thanks in advance.
Hi Thanks for reply,
I got it now! The problem was that the class file loading path was given wrongly, means it was pointing outside the WEB-INF folder. I chanegd the path now the files are loaded properly.
Thanks for all your help.
Hi ,
Can anyone help onthis? I am getting the following error.. I googled through around this error found that adding the cascade="all" will solve this, but am still able to get this error. I am using hibernate to connect to DB. Actually there is a table called say-"ABC1" from which i take data and put into ABC2 table, the ABC2 table has a nullable reference to ABC3 table, when i run the application am able to fetch from ABC1 & generate the PK for the ABC2 table , when the hibernate is unable to commit this to DB and throwing this error. Can anyone please help me on this ? Quick response is deeply appreciated.

org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: com.gfs.ebiz.rm.common.domain.RmCustAttribute
at org.hibernate.engine.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:219)
at org.hibernate.type.EntityType.getIdentifier(EntityType.java:397)
at org.hibernate.type.ManyToOneType.isDirty(ManyToOneType.java:242)
at org.hibernate.type.TypeFactory.findDirty(TypeFactory.java:597)
at org.hibernate.persister.entity.AbstractEntityPersister.findDirty(AbstractEntityPersister.java:3123)
at org.hibernate.event.def.DefaultFlushEntityEventListener.dirtyCheck(DefaultFlushEntityEventListener.java:479)
at org.hibernate.event.def.DefaultFlushEntityEventListener.isUpdateNecessary(DefaultFlushEntityEventListener.java:204)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:127)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:196)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:35)
at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:969)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1114)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at com.gfs.ebiz.rm.dao.impl.HibernateCustRecipeDAO.getCustomersList(HibernateCustRecipeDAO.java:416)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy6.getCustomersList(Unknown Source)
at com.gfs.ebiz.rm.service.impl.SpringUsageAggregationService.populateUsageAggregation(SpringUsageAggregationService.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy12.populateUsageAggregation(Unknown Source)
at com.gfs.ebiz.rm.usage.RMUsageAggregation.generateUsageAggregation(RMUsageAggregation.java:93)
at com.gfs.ebiz.rm.usage.RMUsageAggregation.main(RMUsageAggregation.java:62)
Hi,
Can anyone please help me why the class files are not getting loaded. Actually whenever you run a java project all the .java files get converted into the respective .class files and are loaded in the Web-INF classes folder, but i don't know because of what reason the class files are not getting loaded. I am using MyEclipse5.1 for the project. And due to which the project is throwing the class file not found error. Is it that i am missing any jar file or any setting is to be made.

This is the following error i am getting just when i start my tomcat server:
SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
Source Document: jndi:/localhost/rmWeb/WEB-INF/faces-config.xml
Cause: Unable to find class 'com.gfs.ebiz.rm.app.util.SetFocusListener'
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:212)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:195)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: com.sun.faces.config.ConfigurationException:
Source Document: jndi:/localhost/rmWeb/WEB-INF/faces-config.xml
Cause: Unable to find class 'com.gfs.ebiz.rm.app.util.SetFocusListener'
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:248)
at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:141)
at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:114)
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:132)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:202)
... 25 more
Jun 12, 2009 8:40:12 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
0 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:/appCtx-common-rmWeb.xml]
Offending resource: ServletContext resource [/WEB-INF/appCtx-corporate-rmWeb.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [appCtx-common-rmWeb.xml]; nested exception is java.io.FileNotFoundException: class path resource [appCtx-common-rmWeb.xml] cannot be opened because it does not exist
at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:182)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:147)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [appCtx-common-rmWeb.xml]; nested exception is java.io.FileNotFoundException: class path resource [appCtx-common-rmWeb.xml] cannot be opened because it does not exist
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:174)
... 42 more
Caused by: java.io.FileNotFoundException: class path resource [appCtx-common-rmWeb.xml] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:142)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
... 46 more
Jun 12, 2009 8:40:13 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:/appCtx-common-rmWeb.xml]
Offending resource: ServletContext resource [/WEB-INF/appCtx-corporate-rmWeb.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [appCtx-common-rmWeb.xml]; nested exception is java.io.FileNotFoundException: class path resource [appCtx-common-rmWeb.xml] cannot be opened because it does not exist
at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:182)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:147)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [appCtx-common-rmWeb.xml]; nested exception is java.io.FileNotFoundException: class path resource [appCtx-common-rmWeb.xml] cannot be opened because it does not exist
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:174)
... 42 more
Caused by: java.io.FileNotFoundException: class path resource [appCtx-common-rmWeb.xml] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:142)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
... 46 more
Jun 12, 2009 8:40:13 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 12, 2009 8:40:13 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/rmWeb] startup failed due to previous errors
Jun 12, 2009 8:40:13 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Jun 12, 2009 8:40:14 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 12, 2009 8:40:14 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jun 12, 2009 8:40:14 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/124 config=null
Jun 12, 2009 8:40:14 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 15776 ms


Can anyone please help me on this? Quick response is deeply appreciated.
Thanks in advance.
Wow Rob excellent, thanks it worked.. Thanks a millions!
14 years ago
Hi Rob,
I dint get you exactly? what did you meant by "You should call that long before the button click, right after you've created the table. ".
You have ask to call it before button click, actually where did you refer? the code that you gave , where should it be called?
The table will be created as the page loads & on entering a value in the cell i directly hit the DONE button and so the value must be populated, but thats not happening.
14 years ago
Hi Rob,
Thanks for your reply, i tried the same what you said, following is the image for how the page looks: {If image is not visible pelase refer the attachment}
So when i enter the in the 3rd column of the table and click on the DONE button the value in this cell should be printed(for now). But still the value is coming empty.
Following is the code for the button action:
private void DoneButtonActionPerformed(java.awt.event.ActionEvent evt) {
PaymentsTable.putClientProperty("terminateEditOnFocusLost", false);
System.out.println("=====>"+PaymentsTable.getModel().getValueAt(0, 2));
}

Can you please help me on this?
14 years ago
Hi,
Can anyone help me on how to get the jtable cell value(s) on click of a button. The button is outside the jtable. Once i enter the value in the cell & click on the button the value should be available. I tried too much on this but the value is everytime empty. Quick response is deeply appreciated. Thanks
14 years ago
Hi,
I have one small issue on the SQL query..
I am trying to execute the following query , but its throwing error saying “Invalid column name”.
QUERY:
SELECT extractValue(aei.EVENT_DETAIL_XML,'/RMEvent/PricingCustomerID') as CustId, count(*) from APPLICATION_EVENT_INSTANCE aei
WHERE aei.ACTION_NAME =’CUSTOMER_LOGIN’
AND extractValue(aei.EVENT_DETAIL_XML,'/RMEvent/PricingCustomerID') is not null
AND aei.EVENT_TMSTMP BETWEEN to_date(‘3/1/2009’,'mm/dd/yyyy')
AND to_date(‘5/15/2009’,'mm/dd/yyyy')
GROUP BY extractValue(aei.EVENT_DETAIL_XML,'/RMEvent/PricingCustomerID')

The same query works well in the TOAD but when I run in eclipse its shows the following error:
ERROR:
Hibernate: SELECT extractValue(aei.EVENT_DETAIL_XML,'/RMEvent/PricingCustomerID') as CustId, count(*) from APPLICATION_EVENT_INSTANCE aei
WHERE aei.ACTION_NAME =?
AND extractValue(aei.EVENT_DETAIL_XML,'/RMEvent/PricingCustomerID') is not null
AND aei.EVENT_TMSTMP BETWEEN to_date(?,'mm/dd/yyyy')
AND to_date(?,'mm/dd/yyyy')
GROUP BY extractValue(aei.EVENT_DETAIL_XML,'/RMEvent/PricingCustomerID')
0 [main] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 17006, SQLState: null
0 [main] ERROR org.hibernate.util.JDBCExceptionReporter - Invalid column name
0 [main] FATAL com.gfs.ebiz.rm.usage.RMUsageAggregation - Exception occured while running UsageAggreagation Process

I am using hibernate to execute queries & this query is in one of the .hbm file, What I guess is its not identifying the “extractValue(aei.EVENT_DETAIL_XML,'/RMEvent/PricingCustomerID')” as a query column, could you please help on this? Earlier help is deeply appreciated.