Parthasarathy balakrishnan

Greenhorn
+ Follow
since Apr 20, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Parthasarathy balakrishnan

Good Day,

Please follow this link.
if this also doesnot solve your problem.

attach your code i will fix for you.

next time please mention server,version of OS,runtime details, which i forget to ask you.
if it is IBM you have to have IBM patch for this.


LINK:

http://stackoverflow.com/questions/2490737/how-to-change-webservice-url-endpoint


Thanks,
Parthasarathy B
13 years ago
Good Day Malatesh Karabisti,


No need to regenerate the stub again.
you can modify the stub.


which artifacts do you use?


Thanks,
Parthasarathy Balakrishnan
13 years ago
Good Day Friends,

I am working in webservices JAXWS2.2.1-20100617 artifacts
Environment : IBM Websphere 6.1,
AIX 6.1,IBM Websphere Java

Calling Webservices i am getting following Error Logs :

[8/19/11 11:11:09:856 CDT] 00000045 SystemErr R java.lang.UnsupportedOperationException: TODO
[8/19/11 11:11:09:856 CDT] 00000045 SystemErr R at org.apache.axiom.om.impl.dom.AttrImpl.getSchemaTypeInfo(AttrImpl.java:407)
[8/19/11 11:11:09:856 CDT] 00000045 SystemErr R at org.apache.axis2.jaxws.message.util.impl.XMLStreamReaderFromDOM.getAttributeType(XMLStreamReaderFromDOM.java:310)
[8/19/11 11:11:09:856 CDT] 00000045 SystemErr R at org.apache.axis2.jaxws.message.util.Reader.getAttributeType(Reader.java:129)
[8/19/11 11:11:09:856 CDT] 00000045 SystemErr R at org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.getAttributeType(XMLStreamReaderWrapper.java:84)
[8/19/11 11:11:09:856 CDT] 00000045 SystemErr R at org.apache.axiom.om.impl.builder.StAXBuilder.processAttributes(StAXBuilder.java:234)
[8/19/11 11:11:09:856 CDT] 00000045 SystemErr R at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:343)
[8/19/11 11:11:09:856 CDT] 00000045 SystemErr R at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:252)
[8/19/11 11:11:09:856 CDT] 00000045 SystemErr R at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createNextOMElement(StAXSOAPModelBuilder.java:234)
[8/19/11 11:11:09:856 CDT] 00000045 SystemErr R at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:249)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:204)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.identifySOAPVersion(StAXSOAPModelBuilder.java:176)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:131)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:114)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at org.apache.axiom.soap.impl.builder.MTOMStAXSOAPModelBuilder.<init>(MTOMStAXSOAPModelBuilder.java:53)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at org.apache.axis2.jaxws.message.util.impl.SAAJConverterImpl.toOM(SAAJConverterImpl.java:141)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at org.apache.axis2.jaxws.message.impl.XMLPartImpl._convertSE2OM(XMLPartImpl.java:83)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at org.apache.axis2.jaxws.message.impl.XMLPartBase.getContentAsOMElement(XMLPartBase.java:209)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at org.apache.axis2.jaxws.message.impl.XMLPartBase.getAsOMElement(XMLPartBase.java:264)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at org.apache.axis2.jaxws.message.impl.MessageImpl.getAsOMElement(MessageImpl.java:483)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at org.apache.axis2.jaxws.message.util.MessageUtils.putMessageOnMessageContext(MessageUtils.java:197)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.prepareRequest(AxisInvocationController.java:364)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at org.apache.axis2.jaxws.core.controller.impl.InvocationControllerImpl.invoke(InvocationControllerImpl.java:81)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:317)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:159)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at $Proxy181.fxDealInq(Unknown Source)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at com.s1.ws.client.ConcreteFXDealInqWSClientService.getFxDealInq(ConcreteFXDealInqWSClientService.java:135)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at com.s1.fx.TradeFxMDBBeanBean.onMessage(TradeFxMDBBeanBean.java:82)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at com.ibm.ejs.container.MessageEndpointHandler.invokeMdbMethod(MessageEndpointHandler.java:1014)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at com.ibm.ejs.container.MessageEndpointHandler.invoke(MessageEndpointHandler.java:747)
[8/19/11 11:11:09:857 CDT] 00000045 SystemErr R at $Proxy166.onMessage(Unknown Source)
[8/19/11 11:11:09:858 CDT] 00000045 SystemErr R at com.ibm.ws.sib.api.jmsra.impl.JmsJcaEndpointInvokerImpl.invokeEndpoint(JmsJcaEndpointInvokerImpl.java:201)
[8/19/11 11:11:09:858 CDT] 00000045 SystemErr R at com.ibm.ws.sib.ra.inbound.impl.SibRaDispatcher.dispatch(SibRaDispatcher.java:780)
[8/19/11 11:11:09:858 CDT] 00000045 SystemErr R at com.ibm.ws.sib.ra.inbound.impl.SibRaSingleProcessListener$SibRaWork.run(SibRaSingleProcessListener.java:586)
[8/19/11 11:11:09:858 CDT] 00000045 SystemErr R at com.ibm.ejs.j2c.work.WorkProxy.run(WorkProxy.java:419)
[8/19/11 11:11:09:858 CDT] 00000045 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)


Line 135 in : ConcreteFXDealInqWSClientService.java:135 - About calling webservices method with required parameters.

Request generates in the console perfectly during invocation:

[8/19/11 11:11:09:760 CDT] 00000045 IPSOAPHandler I Outbound new SOAPMessage:<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ems="http://schemas.dbs.com/icc/ems" xmlns:op="http://schemas.dbs.com/icc/TrsyProdSvc" xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/FXDealInq_30_v1.2.xsd"><soapenv:Header><ems:EMSDetail mustUnderstand="false"><ems:MsgVersion>3.0</ems:MsgVersion><ems:MsgUID>I3-1313770269740</ems:MsgUID><ems:SvcVersion>3.0</ems:SvcVersion></ems:EMSDetail><ems:Trace mustUnderstand="false"><ems:RqDateTime>2011-08-19T11:11:09.742-05:00</ems:RqDateTime><ems:RqClient><ems:RqClientId>CIBP</ems:RqClientId><ems:RqClientOrg>2006</ems:RqClientOrg><ems:RqClientCtry>TWD</ems:RqClientCtry></ems:RqClient><ems:Operator><ems:OpLoginId>00000007990938</ems:OpLoginId><ems:OpRole>SYSTEM</ems:OpRole></ems:Operator></ems:Trace></soapenv:Header><soapenv:Body><ns2:FXDealInq xmlns:ns2="http://schemas.dbs.com/icc/TrsyProdSvc"><ems:CommonRq><ems:OrgCode>2006</ems:OrgCode><ems:ChannelId>97</ems:ChannelId><ems:RqSysRef>13</ems:RqSysRef></ems:CommonRq><ns2:TrailDetl><ems:OpId>TZ440</ems:OpId><ems:OpDateTime>2011-08-19T11:11:02.710-05:00</ems:OpDateTime></ns2:TrailDetl><ems:CustInternalId>7990938</ems:CustInternalId><ns2:BuyValueDate>2011-08-19-05:00</ns2:BuyValueDate></ns2:FXDealInq></soapenv:Body></soapenv:Envelope>


but the same request is not hitting SoupUI.
Response also fails.

Can any one suggest what is going wrong here:
org.apache.axiom.om.impl.dom.AttrImpl.getSchemaTypeInfo(AttrImpl.java:407)

Please let me know in case of further details.


Thanks in advance :
Parthasarathy Balakrishnan.



13 years ago
Openings @ Fidelity (Chennai / Bangalore / Gurgaon / Mumbai )


Good Day Friends,


Recruitment Dated : 20 , August , 2010.

Please find the below mentioned Openings.



Send your profiles to me :

[email protected]



======================================================================================================================

Position : MAINFRAME Developer
(Tech Lead)
(Immediate Joinee)

Location : Chennai

Skills Details : Hands on exp in Cobol, VSAM, DB2, JCL, CICS.  3-8 years exp; Banking domain experience is highly desired

======================================================================================================================



Position : Performance Engg.( SSE/TL )
Location : Bangalore

Skills Details : 3-8 years exp System & application Perf engineering, Perf tuning, root cause analysis of Perf related production Problems, knowledge of windows, mainframe and/or Unix, knowledge of scripting packages (eg: Laod Runner, QTP, Rational), knowledge of perf metrix systems. knowledge of anyone (SAR, PERSMON, VMSTAT, TOP, STATSPACK).



======================================================================================================================

Position : Mainframe Support Professionals

Location : Chennai 2-3 yrs

Skills Details : production support experience

======================================================================================================================



Position : Java Developer , SE/SSE

Location : Chennai

Skills Details : Mandatory: JSF 1.2, IBM  Websphere, oracle JDeveloper, Apache, WSDL 1.1, SOAP 1.1/1.2, HTTP, XML,  Oracle 10g
Experience : 3-5 yrs

======================================================================================================================

Position : MUMPS Dev SSE

Location : Bangalore

Skills Details : 3+ years exp in MUMP, Profile, with banking domain

======================================================================================================================

Position : Systematics Developer, SSE / TL

Location : Bangalore

Skills Details : Systematics, Cobol, VSAM, DB2, JCL, CICS 4-12 years exp

======================================================================================================================

Position : QA Lead, Tech Lead/Sr Tech Lead

Location : Gurgaon , 7- 10 yrs

Skills Details : Manual+ Automation(QTP)  QA Lead   . At least 2 years in Banking domain

======================================================================================================================

Position : Testing Lead

Location : Gurgaon

Skills Details : 6+ years of Software Testing experience, with at least 1+ years as a Lead.

======================================================================================================================


Position : SQL/DB2 - DBA 

Location : Bangalore

Skills Details : 4+ yrs Oracle/SQL/DB2 DBA

======================================================================================================================

Position : QA Engineer

Location : Mumbai

Skills Details : ·         2 Years minimum Testing Experience (Manual/UI )
·         1 – 2 Years minimum experience working with Financial Software (ACBS Experience a plus)
·         Experienced with or understanding Agile Process a plus

======================================================================================================================



Position : Mainframe Base 2000 Developers SE/SSE/ITS

Location : Gurgaon

Skills Details : Base 2000/Vision Plus  developers, 2-6 yrs experience

======================================================================================================================


Position : Java/J2EE Developer , SSE/ITS

Location : Gurgaon

Skills Details : 3+ Web application development in  J2EE with an Oracle backend.

======================================================================================================================


Position : DBA Manager

Location : Bangalore

Skills Details : Manager – Database Administration - Oracle/SQL/DB2

======================================================================================================================


Position : TP Dev – TL/STL

Location : Bangalore

Skills Details : 4+ yrs in J2EE, JSP, Servlets, Javascript HTML/CSS and AJAX, XML

======================================================================================================================

Position : Java Developer- SSE/TL/PL

Location : Chandigarh(Should be open to relocate to Gurgaon)

Skills Details : Java, JSP, Servlets, Struts, Hibernate, Spring, Oracle

======================================================================================================================

Position : Java Developer- SSE/TL/PL

Location : Gurgaon

Skills Details : Java, JSP, Servlets, EJB, Struts

======================================================================================================================

Position : Java Developer- SSE/TL/PL

Location : Gurgaon

Skills Details : Java, JSP, Servlets, Struts, XSL, XML, Web Services, Axis, Oracle SQL and PL/SQL is a plus.

======================================================================================================================

Position : QA Senior Technical Lead (Testing)

Location :  Gurgaon

Skills Details : 7+ yrs of Experience in Automation and Performance Testing

======================================================================================================================

Position : Testing Lead

Location : Chandigarh(Should be open to relocate to Gurgaon)

Skills Details : 6+ years of Software Testing experience, with at least 1+ years as a Lead.

======================================================================================================================

Position : Profile Framework Developer SSE/ITS/TL

Location : Bangalore

Skills Details : 4 – 8 yrs, Bangalore, C++ and Java and Mumps/cache and Oracle

======================================================================================================================

Position : QTP Testers, SSE/ITS

Location : Bangalore

Skills Details : should have 3 yrs exp in automation testing with QTP

======================================================================================================================


Position : Sr Tech Lead / Technical Architect / Tech Lead

Location : Gurgaon

Skills Details : Java, J2EE, Servlets, JSP, XML, SQL, Web services, Design pattern, UML.

======================================================================================================================       
  
Position : .Net Developer – SSE

Location : Gurgaon

Skills Details : Net, ASP.Net,HTML & MSVS

======================================================================================================================

Position : QA Manager

Location : Gurgaon

Skills Details : Having experience in Manual, Automation (Watir/Ruby and SILK) and Database testing

======================================================================================================================

Position : .Net Developer

Location : Bangalore

Skills Details : Good hands on experience in  .NET 2.0, C#, ASP.NET, Java Script, HTML

======================================================================================================================


14 years ago
thanks for correcting me.

you are right that
var x; // alone will give undefined.

but any how he is going to assign an value to x will not send blank value's to server

whenever there will be the submit button there we have to write an code for
overiding this x value.

x=document.getElementById("XXXamount").value;
submit();

right?
var x; //is an string variable in javascript
var x=0; //is an integer variable in javascript

any how when you are passing in to database as string/int it will accept both the case to store.

but the problem will occure while when your page get's the value from the database to the front end.


better to implement your code in java side in DAO LAYER to get the values in actual format

below methods returns actual value from 'E' format amt

strAmt is actual value cmg from database as 'E' value and number of decimal points eg [xxx.00 if it is 2]

File name : XXX.class
public static String convertToAmount(String strAmt, int noOfDecimal) {
String ret = strAmt;
if (strAmt == null || strAmt.trim().equals(""))
return strAmt;
try {
double d = Double.valueOf(strAmt).doubleValue();
NumberFormat nf = NumberFormat.getInstance();
nf.setMinimumFractionDigits(noOfDecimal);
nf.setMaximumFractionDigits(noOfDecimal);
ret = nf.format(d);
} catch (NumberFormatException nfe) {}

return ret;
}


eg: IN JSP IMPLEMENTATION
import the XXX.class file and get the method like given below
<jsp irective.page import="XXX.class"/>
var ival = '<%=XXX.convertToAmount(String.valueOf(Value),2)%>';


correct me if i am wrong.
please implement and see.
it is working for me.

hi Yathamshetti ramchander ,

change your code and work it out

PreparedStatement pst=con.prepareStatement("insert into <<tablename>> values(?,?)");
pst.setNull(1,java.sql.Types.INTEGER); //invalid column name
pst.setString(2,"john");
pst.executeUpdate();


example can be view in :

http://www.java2s.com/Code/Java/Database-SQL-JDBC/DemoPreparedStatementSetNullforintvaluecolumn.htm



by
when i try to get Name1 like this
String Name1=resultset.getString("Name1");
it will return Name1 with out any problems
but when i try to get Name2 like this
String Name2=resultset.getString("Name2");

it will return null although name2 is contain "essam" in DB

from your code i can suggest
that:

check for the following changes:

1.check for the column name in the database that it is like
Same us you have give in the getString method();

2.else do not struck with that please put the code
rs.getString(2) if you want the value of 2nd column

example code:
System.out.println(rs.getString(1) +"\t"+rs.getString(2));

by,
hi ,


i could not able to come to conclution with your question

please send the code :

and error which you have obtained

Originally posted by kumar:
Hi Everybody,


I have 2 diffrent check boxes i need to get the status of those checkboxes.

Here the below code

Javascript

function ClickRows(obj)
{
var i=0;
var chxbox1=document.getElementsByName("CheckBox1");
var chxbox2=document.getElementsByName("CheckBox2");

if (obj.checked==true)
{
chxbox1[i].checked=true;
chxbox2[i].checked=true;

}
else
{
chxbox1[i].checked=true;
chxbox2[i].checked=true;
}


JSP

"& lt;"INPUT type="CHECKBOX" name="CheckBox1"& lt;"%=i%"& lt;""
value="Y" "Rows_Click(this)" "& lt;"

"& lt;"INPUT type="CHECKBOX" name="CheckBox2"& lt;"%=i%"& lt;""
value="Y" "Rows_Click(this)"

It's giving as

"undefined is null not an object"

Please help me out.

Thanks in advance.



-----------------------------------

I have R&D over your code and reached the result:

code:



function ClickRows(obj)
{
alert(" the value of the check box is"+obj.checked);//this will return the status of the check box
alert(" the value of the check box is"+obj.name);//this will give the name of the check box
var i=0;
//var chxbox1=document.getElementsByName("CheckBox1");
//var chxbox2=document.getElementsByName("CheckBox2");
var chxbox1=chxbox1[0].checked;
var chxbox2=chxbox2[0].checked;
alert(" The value of first checkBox"+chxbox1+"The value of the second ChecKBox"+chxbox2);
alert("the value of the first checkbox "+chxbox1[0].checked+" And the checkbox2"+chxbox2[0].checked);
if (obj.checked==true)
{
chxbox1[i].checked=true;
chxbox2[i].checked=true;

}
else
{
chxbox1[i].checked=true;
chxbox2[i].checked=true;
}
}


I have not attached the HTML CODE because gave some error in javaranch


by

Originally posted by Jan Cumps:
I would still say that Parthasarathy Balakrishnan did give a great reply. Reading your initial question, he could not have foreseen that you already knew how the bridge works.
Regards, Jan

[ April 21, 2007: Message edited by: Jan Cumps ]





hi Keerthi Sagar Yanagudda
& Jan Cumps ,


sorry friends that the link is not seen clearly to you both
its my fault that the link name changed.

please refer in the same picture above one link is there
do click on it will get all details about the connectivity query
answers....



by,

Originally posted by Davy Kelly:
Hey everyone,

I have got a small test class working with MS Access.

I can create a table, insert columns and values to the table & drop the table.

But I am looking for a little bit of info.

I want to be able to create the table if it is not there, but use it if it is there, I was going to use an if statement for this:


How can I do this? how do I find the table is there or not?
I have searched google endlessly.

davy

[ April 22, 2007: Message edited by: Davy Kelly ]






hi,

i have seen you query...


Interesting one yaar
i have work with it....

here is the example please put the needed code...
-----------------------------------------------------------------
/**
* @(#)TableSearch.java
*
*
* @Parthasarathy.B
* @version 1.00 2007/4/23
*/

import java.sql.*;
public class TableSearch {
public static void main(String args[]){
Connection con; /*The Connection Interface*/
Statement st; /*The Statement Interface*/
ResultSet rs; /*The ResultSet InterFace*/
PreparedStatement ps=null;
boolean exists=false;
boolean Table_Creation=false;
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");/*loading of the Driver*/
con=DriverManager.getConnection("Jdbc:Odbc:TestConn","","");/*Establishing The Connection*/
st=con.createStatement();/*Statemnet Creation*/
//System.out.println("the value of before the boolean executed");
try{
//exists=st.execute("select * from +"ARGUMENT_TABLE_NAME"+");/* put your Table argument here And Comment Next Line*/
exists=st.execute("select * from TableCreate");
}catch(Exception e1){}
//System.out.println("the value of boolean is"+exists);
if(exists){
System.out.println("Table Name Already Exists "+exists);

}

if(exists==false){
System.out.println("Table Name Does Not Exists"+exists);
st.execute("create table TableCreate(name varchar(20),place varchar(20))");
System.out.println("Table Created");
}

}catch(Exception e){
e.printStackTrace(System.out);
System.out.println("The Exception is in ==>"+e.getMessage());
}
}
}


Note:

1.Please get the argument of the table name and put in "ARGUMENT_TABLE_NAME"
which i have mentioned in the comment area
2.Another familiar error all will make is
varchar2(20) ---> it will work in oracle database not in access

In Access
varchar(20) has to b given...


3.change the 2 line in the code:

a).//exists=st.execute("select * from +"ARGUMENT_TABLE_NAME"+");/* put your Table argument here And Comment Next Line*/

b).//st.execute("create table +"ARGUMENT_TABLE_NAME"+(name varchar(20),place varchar(20))");/*Pass your argument here*/
---------------------------------------------------------------------------

If any doubt regaurding this contact :
In Bangalore:
08066596116.
Type 1: A JDBC-ODBC Bridge (not the Easysoft JDBC-ODBC Bridge)



JDBC:ODBC Driver

Type 1 JDBC Driver architecture

Type 1 JDBC drivers are always written in platform-specific code and thus limit the potential of the application for cross-platform deployment.

This simple JDBC driver is provided by Sun with the Java Development Kit and implements the JDBC API by making ODBC calls, allowing connection to any ODBC data source available on the local machine.

[ April 21, 2007: Message edited by: David O'Meara ]
[ April 21, 2007: Message edited by: David O'Meara ]

Originally posted by Jeanne Boyarsky:
Amar,
You are currently running:
create table 'emp_id'('date' varchar2 (20),'status' varchar2 (10))

The first thing I see is that usually the table name is not in quotes. Try running the query directly at the database command line.






-------------------------------------------------------------------------
System.out.println("Before The table creation");
String q="create table partha1(date1 varchar(20),place varchar(10))";
int i=st.executeUpdate(q);
System.out.println("Table Updated"+i);


Me partha found two errors in the code

1.in access datatype has to b changed from varchar2(20) to varchar(20)
access supports varchar(20)

2.date is the datatype in database it can'nt b used as column name
so change the date as date1