Ponnusamy Gov

Greenhorn
+ Follow
since Feb 01, 2011
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 Ponnusamy Gov

Dear All,

I am having Standalone JAVA application(1.6) with Spring 2.5.6 framework and using ReloadableResourceBundleMessageSource for reloading the messages at run time. The issue is when it comes to Windows 7, it is working perfectly. If I am putting the same application into SUN Solaris Box, messageSource bean itself not taking the property data.

Bean config working in Windows 7:


Above configuration is not at all loaded while putting into Solaris OS, so I made the changes like


and property contents loaded but it is of no use since data is cached for ever. Please find the log also:

Windows 7 log:
DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:500] No properties file found for [file: D:\workspace\propfile_en_IN] - neither plain properties nor XML
DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:500] No properties file found for [file: D:\workspace\propfile_en] - neither plain properties nor XML
DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:544] Loading properties [propfile.properties]

Solaris log for error:

DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:500] No properties file found for [/opt/propfile] - neither plain properties nor XML
DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:500] No properties file found for [/opt/propfile] - neither plain properties nor XML
ERROR [com.TestReload:424] Exception : No message found under code '0' for locale 'null'.
org.springframework.context.NoSuchMessageException: No message found under code '0' for locale 'null'.
at org.springframework.context.support.AbstractMessageSource.getMessage(AbstractMessageSource.java:136)
at java.lang.Thread.run(Thread.java:619)

Solaris log after setting cacheSeconds value to -1:

DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:500] No properties file found for [file:/opt/propfile_en] - neither plain properties nor XML
DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:544] Loading properties [rtgs.properties]


Please help me out to get rid of this issue.

Thanks in advance,

Pons.
I have solved this issue by adding attribute bootclasspathref in javac by giving the path of rt.jar. But I am not sure whether this is permanent solution or temperary. Anyway thanks!!!
10 years ago
I am using ant build version 1.9.3 and compiling the java files. One of my java file is having import statement sun.reflect.misc.MethodUtil. During build I am getting exception "package sun.reflect.misc does not exist", but I am having rt.jar in the JDK lib where JAVA_HOME is referred. Please help to resolve this. Thanks is advance

Pons.
10 years ago
For example, If A,B and C are my applications servers and all the applications running on these servers need to send mail so that it will connect to mail server using SMTP host and port. This is common method. But my requirement is all A,B and C servers will connect to server D and D only will have connectivity to mail server. In this situation, normally TCP/IP communication will be happening via Port forwarding. But here what could be the method? Thanks in advance...........

Ponnusamy G
Thanks.

There is nothing special about one particular server, due to organizational security policy all the app servers shouldn't be opened to Email server communication, means 25 port will not be enabled except one server. So that I have asked this question.

Pons.
I have one separate Email server in which I have to configure IP and PORT from my application server to send the mails. I am having 10 Java /J2EE application servers in which only one server is having mail server communication. Sending mails from that only one server is obviously no issue. But if my java application send mails from remaining servers, what is the methodology, any PORT forwarding or Load balancing concept is available? Experts please provide me the answer.

Thanks,

Pons.
Dear All,

I am getting below exception when try to run dynamic report using iReport.
Version used:
DynamicJasper-4.0.3
jasperreports-5.0.4

Caused by: java.lang.NoSuchMethodError: net.sf.jasperreports.engine.design.JasperDesign.getTemplates()[Lnet/sf/jasperreports/engine/JRReportTemplate;
at ar.com.fdvs.dj.core.DJJRDesignHelper.downCast(DJJRDesignHelper.java:236)
at ar.com.fdvs.dj.core.DynamicJasperHelper.generateJasperDesign(DynamicJasperHelper.java:190)
at ar.com.fdvs.dj.core.DynamicJasperHelper.generateJasperReport(DynamicJasperHelper.java:550)
at ar.com.fdvs.dj.core.DynamicJasperHelper.generateJasperReport(DynamicJasperHelper.java:533)
at test.DynamicJasperTemplate.buildReport(DynamicJasperTemplate.java:98)



But above said method is very much available in jasperreports jar. Please help me out to resolve this.

Thanks in advance,
Pons.
10 years ago
Hi Bill,

Sorry for the incomplete trace. Please find the full log trace:

2013-01-30 21:01:00,798[user1]ERROR[com.test.FilterDispatcher:?] Exception in doFilter ---->
java.lang.IllegalStateException: Already value [org.springframework.orm.hibernate3.SessionHolder@1edeb03] for key [org.hibernate.impl.SessionFactoryImpl@1cd7e2c] bound to thread [TP-Processor10]
at org.springframework.transaction.support.TransactionSynchronizationManager.bindResource(TransactionSynchronizationManager.java:163)
at com.test.FilterDispatcher.callFilter(FilterDispatcher.java)
at com.test.FilterDispatcher.doFilter(FilterDispatcher.java)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:347)
at org.apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBinderValve.java:227)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:619)
2013-01-30 21:01:00,798[user1]WARN [com.test.FilterDispatcher:?] Unable to rollback transaction
java.lang.NullPointerException
at org.springframework.transaction.support.AbstractPlatformTransactionManager.rollback(AbstractPlatformTransactionManager.java:724)
at com.test.FilterDispatcher.callFilter(FilterDispatcher.java)
at com.test.FilterDispatcher.doFilter(FilterDispatcher.java)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:347)
at org.apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBinderValve.java:227)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:619)

11 years ago


Dear All,

Our web application built in struts 1.1, Hibernate3 and Spring framework technologies and it is running in tomcat application server version 6. Web server is Apache version 2. Till now request is directly handled by tomcat application server. Recently we have implemented the Apache web server using APJ connector protocol. Now we are getting the below error and we are unable to simulate the same. Please provide solution for this issue if anybody face this issue earlier.

java.lang.IllegalStateException: Already value [org.springframework.orm.hibernate3.SessionHolder@42966c] for key [org.hibernate.impl.SessionFactoryImpl@395573] bound to thread [TP-Processor2]



Thanks in advance,

Pons.
11 years ago
I have posted as a Info only. Anyway Thanks...
In Windows 7, I have tried from java to connect MS SQL 2008 server using jtds jar. I am having 2005 also in my machine. Here I was not able to connect 2008 server since 1433 port was assigned to 2005. So I have changed the port in my application to the port which is mentioned in SQL Server Configuration Manager ->SQL Server Network Configuration ->Protocols-> TCP/IP properties -> IP Addresses -> IP All(53033). It is connected!!!

Pons
Really helped me to solve my issue. Thanks Karel!!!

Pons.
Dear All,

We are using java socket connection to connect other server for business purpose for almost one decade. Application is running on Websphere Application server. Recently we have implemented Ajax call using DWR and calling socket connection method to read the response. Problem is we are able to read the response with in the connection time out period but after connection time out period, read timed out error written in log for that same request(request integrity is maintained using unique id). Sample code,

connection time out period is 10 sec.


Please let me know the reason for this error. Is anything I need to handle in Socket connection when it is executed from Ajax DWR request?

thanks in Advance!!!

Pons.


Dear All,

I am using tiles view and json view for viewing purpose in spring framework 2.5.6. But in some application servers i am getting below error.

0000007b servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet corporateuser in application corpuser_2404_war. Exception created : javax.servlet.ServletException: No Tiles definition found for name 'jsonView'
at org.springframework.web.servlet.view.tiles.TilesView.prepareForRendering(TilesView.java:104)
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:212)



Code to specify the json view:


xml configuration for json view:



Any one have any idea why this tiles error is coming since two views are configured properly.

thanks,
Pons
11 years ago
Dear All,

I am connecting other server using URLConnection and I am having 5 seconds of connection/read timeout. But my server not throwing exception after 5 secs. Here i smy piece of code:


what is the problem in this code?

Thanks in advance,

Pons