Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Rajni Patel

Ranch Hand
+ Follow
since Sep 03, 2009
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 Rajni Patel

hi,

We've application that pulls response from MQ every 30 seconds. Whenever recycle occurred on MQ server side, we're getting error as below.

Message: MQJE001: Completion Code '2', Reason '2009'.
Stack Trace: com.ibm.mq.MQDestination.getInt(MQDestination.java:683)
com.ibm.mq.MQDestination.get(MQDestination.java:473)


This client application runs in windows and whenever MQ server recycle, error comes but after sometime application starts to pull response and error stops. BUT, we've moved this client application to the Linux server. and in this Linux server, whenever error starts to come it never stops until I recycle my application. I am getting above error every 30 seconds pull .




What can be solution?


thanks,



4 years ago
Hi,

I have same requirement as posted here. Please can you post code if you have it? or please can you guide me how to unpack packed field created by mainfram comp-3?

Thanks.
7 years ago
Hi,

I have created project in EJB which is now in already production which is in UNIX platform. I want to change some properties in property file and xml file and but i can not build appllication again.
Is there any possibilies, which i can change my property class and xml file (configuration file) ?

Thanks in advance.
Hi,

I have created application. I have already build application. Application is in UAT. now I have to change value of <javaee:env-entry-value> in ejb-jar.xml.
I can not build my application again. So is it any ways to change ejb-jar.xml from weblogic directory after deployment?

Help would be appreciate.

Thanks.
I have used BigDecimal. But now when I enter String value for Ex: "dsfdsf" then below error is coming. I am using struts1.1. when i click on save then even its not going in validate method in form. Please advice.

Thanks.



Error 500--Internal Server Error
javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:475)
at org.apache.struts.chain.commands.servlet.PopulateActionForm.populate(PopulateActionForm.java:50)
at org.apache.struts.chain.commands.AbstractPopulateActionForm.execute(AbstractPopulateActionForm.java:60)
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.cibc.ibcs.fmca.was.filter.SessionTimeoutFilter.doFilter(SessionTimeoutFilter.java:46)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: org.apache.commons.beanutils.ConversionException: Error converting from 'String' to 'BigDecimal' null
at org.apache.commons.beanutils.converters.AbstractConverter.handleError(AbstractConverter.java:267)
at org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:164)
at org.apache.commons.beanutils.converters.ConverterFacade.convert(ConverterFacade.java:60)
at org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java:470)
at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1006)
at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:830)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:433)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:473)
... 26 more
Caused by: java.lang.NumberFormatException
at java.math.BigDecimal.(BigDecimal.java:368)
at java.math.BigDecimal.(BigDecimal.java:647)
at org.apache.commons.beanutils.converters.NumberConverter.toNumber(NumberConverter.java:448)
at org.apache.commons.beanutils.converters.NumberConverter.convertToType(NumberConverter.java:268)
at org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:156)
... 32 more

9 years ago
can I use String?
9 years ago
Hi,

I have use double datatype for transaction amount field. If i enter 9999999.99 then it is ok but if i enter more then this no. then it give me infinite number. so when i save then i am validating this amount and in validate method, i am checking if value contains 0-9 or . then return true or false. so in validate method it give error if amount is more then 9999999.99.

Please any body can guide me, how can i solve this problem.
9 years ago
Hi,


I am working in struts 1.1. I have validate() method in form. I have some conditions in validate() method. If there is error then in one condition, I want to forward x.jsp and in another condition , want to forward y.jsp. There is only 1 form and 1 action for both jsp. How can i forward on different jsp up on condition?

thanks,
9 years ago
Hi,

I have use the AJAX call in my application which is in struts. I am using IE8. In my local AJAX call is working fine. But when I try my application in DIT/SIT, AJAX call is not working. In DIT weblogic is in unix box. for ex: if I give https:/11.3.4.111/myapplication (which is provided me for DIT) then only AJAX call is not working but if I give https:/11.3.4.111:212121/myapplication then it is working. Please can you guide me what should problem can have?

thanks,
I have one form for 2 jsps and one action class for same 2 jsps.

I have did this because there is same field in both jsps and almost same vlidation logic.
If i don't use 2 jsps then it is more complecation for some button.
its big application. this is just example.
9 years ago
Hi,

I am working in struts1.1. I have 2 jsps (main.jsp and main1.jsp) and only one form (form1.java). only one action(MainAction.java).
I have created only one form and action because validation and business logic are almost same.
so in struts-config.xml

<action name="form1" input="main.jsp" path="/mainAction" type="com.action.MainAction" scope="session" parameter="operation">
<forward name="newTransaction" path="main.jsp" redirect="no"/>
<forward name="updatedTransaction" path="main1.jsp" redirect="no"/>
</action>

Now, when i am in main1.jsp and i submit page then if validate() method from form1 raise error then it opens main.jsp not main1.jsp.
I want to open main.jsp.
and this problem is coming because of input="main.jsp" I have written in action tag.

Please can you advice, what can i do?

thanks in advance
9 years ago
Thanks for reply.

there is DB field char(11) so in db there is 11 size for that field.

so I have write querey like this.

select empname from emp where trim(empno)= '101';

now its working.

thanks again.
Thanks for reply.

My query is like this:

sql = "select empname from employ where empno = ?";


Here empno is char(11) in DB.

and then I set value

ps.setString(1,"101");

Originally, there is record which has empno=101 in DB. but in my case there is no data fetch from DB and also not any error is coming.

Thanks
Hi,

I have a field in Database which is of CHAR(11) type. I am using
prepared statement to set parameter value in this field in Java in DAO class. I used
setString method of prepared statement for this purpose but i didnt get
any success in it.

Can any one help me which prepared statement method should I use to set
parameter in this field.

thanks
Thanks for reply.

in code how can i find coder has used container managed transaction?

thanks in advance.