syruss kumar

Ranch Hand
+ Follow
since Jul 23, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by syruss kumar

Hi All,

In our application we are migrating huge volume of data from teradata to Hive.
Need to validate the data between source and target.We are planning to do it using python & pandas dataframe.
My queries are
1.Will pandas data-frame can handle around 15 million of data ?
2.Is there any other way to do it ?

What is the best way to achieve the above using python ?

Thanks in advance
7 years ago

Hi All,

We are using Apache HTTP server to send & receive the request to third Party(on top of Apache server we have loadbalancer and proxy server.). We can successfully send the request to third party but while receiving the response from third part we are getting the below error.

We tried to forward the request to another server say Tomcat,we can successfully manipulate the request in that server and while POST/GET the request from Tomcat to Apache this proxy error has thrown.


Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /Domino/responseReceiver.jsp

Reason: Error reading from remote server

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


But the server is up and running,below is the error log when request hits Apache server

[Mon Aug 01 17:14:20 2016] [debug] mod_headers.c(756): headers: ap_headers_output_filter()
[Mon Aug 01 17:14:30 2016] [debug] mod_headers.c(756): headers: ap_headers_output_filter()
[Mon Aug 01 17:14:58 2016] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Mon Aug 01 17:14:58 2016] [notice] Apache/2.2.21 (Win32) configured -- resuming normal operations
[Mon Aug 01 17:14:58 2016] [notice] Server built: Sep  9 2011 10:26:10
[Mon Aug 01 17:14:58 2016] [notice] Parent: Created child process 5240
[Mon Aug 01 17:14:58 2016] [debug] mpm_winnt.c(477): Parent: Sent the scoreboard to the child
[Mon Aug 01 17:15:00 2016] [notice] Child 5240: Child process is running
[Mon Aug 01 17:15:00 2016] [debug] mpm_winnt.c(398): Child 5240: Retrieved our scoreboard from the parent.
[Mon Aug 01 17:15:00 2016] [info] Parent: Duplicating socket 232 and sending it to child process 5240
[Mon Aug 01 17:15:00 2016] [debug] mpm_winnt.c(595): Parent: Sent 1 listeners to child 5240
[Mon Aug 01 17:15:00 2016] [debug] mpm_winnt.c(554): Child 5240: retrieved 1 listeners from parent
[Mon Aug 01 17:15:00 2016] [debug] proxy_util.c(1818): proxy: grabbed scoreboard slot 8 in child 5240 for worker proxy:reverse
[Mon Aug 01 17:15:00 2016] [debug] proxy_util.c(1837): proxy: worker proxy:reverse already initialized
[Mon Aug 01 17:15:00 2016] [debug] proxy_util.c(1914): proxy: initialized worker 8 in child 5240 for (*) min=0 max=150 smax=150
[Mon Aug 01 17:15:00 2016] [debug] proxy_util.c(1818): proxy: grabbed scoreboard slot 7 in child 5240 for worker ajp://localhost:8009/Domino/
[Mon Aug 01 17:15:00 2016] [debug] proxy_util.c(1837): proxy: worker ajp://localhost:8009/Domino/ already initialized
[Mon Aug 01 17:15:00 2016] [debug] proxy_util.c(1914): proxy: initialized worker 7 in child 5240 for (localhost) min=0 max=150 smax=150
[Mon Aug 01 17:15:00 2016] [notice] Child 5240: Acquired the start mutex.
[Mon Aug 01 17:15:00 2016] [notice] Child 5240: Starting 150 worker threads.
[Mon Aug 01 17:15:01 2016] [notice] Child 5240: Starting thread to listen on port 80.
[Mon Aug 01 17:15:02 2016] [debug] mod_headers.c(756): headers: ap_headers_output_filter()



Please help us to resolve the issue.






8 years ago
Hi All,

Im new to SAML.I have generated the AuthN request and need to generate the Signature for that

Can anyone please suggest how to do it ?
I google and found OpenSAML is the library for that but couldnt get the complete tutorial for that.

Please suggest
8 years ago
Hi all,

I tried to pull out the signature element from a xml but the nodelist is null.



The document is

Please suggest me what went wrong .

Thanks in advance.


Hi all,

We need to validate a signed XML which is a SAML Response.We haven't used any API for SAML manipulation.We are trying to create our own framework for SAML manipulation.
The problem we are facing is we received an exception while read the certificate from the SAML response.

Can anyone suggest me the steps to validate the XML signature ?

Below are the exception we are getting

Exception in thread "main" java.security.cert.CertificateParsingException: invalid DER-encoded certificate data
at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1703)
at sun.security.x509.X509CertImpl.<init>(X509CertImpl.java:301)
at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:104)
at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:305)
at test.CertificateReader.test(CertificateReader.java:20)
at test.CertificateReader.main(CertificateReader.java:43)






Thanks in advance.
Sorry Paul Wrongly posted in this forum.

It should be in Java-XML Technology

Hi Rob,

Thanks a lot for your response.

I found the issue.

NodeList nodeLst=(NodeList) doc.getAttributes();

The above highlighted line should be as below

NodeList nodeLst=(NodeList) doc.getChildNodes();

Its working fine now.
Hi All,

I tried to create a XML document from the below


<Response xmlns="urn:oasis:names:tc:SAML:2.0:protocol" Destination="https://optus--PHUB.cs5.my.salesforce.com?so=00DO00000051q90" ID="_6f37234dfd47fbda1108f439b3d655f4e4b1" InResponseTo="_2CAAAAVGAV-1eME8wTzAwMDAwMDAwMDAyAAAAxliRspPZxIEJbTkJslk0pWeSau3ZcFcjP3Ivaecf68tjX6a_VIh1t80Augu1e-ADqFEV-htJFTTCXI_vjXQyVnN16tgQKjjYsjgkYNh9z1ekTG8xw1FssvDfkZ9nNfKZcojaxQAqugzr8aadXB8-66PoaYRCr7H7yhWG943xS0mBOZSBbho6AZl8Tv5ByMebhmWPhTVW8_JPJ4hAij-lS4-NtY8AsWtowPdjTceoJ9Ye7yTAE1Rpzrm2tVWy8_f9yQ" IssueInstant="2015-11-10T06:49:37Z" Version="2.0">
<ns1:Issuer xmlns:ns1="urn:oasis:names:tc:SAML:2.0:assertion" Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">https://st2.my.optus.com.au/SalesSSO</ns1:Issuer>;
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<ds:Reference URI="#_6f37234dfd47fbda1108f439b3d655f4e4b1">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds:DigestValue>wp3kgQ5QQnnBTbzowVRIMJwc8mU=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>
V5iQGUOBSqqkp/3dA7BnBnts4hcod4Blkk1i5Jq+SrtMC/wkf6wBAIZ6MMo08hQ8gz3LbCQ0RYGq
+WHisrHDpA==
</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>
MIIDXjCCAwigAwIBAgIJAMJDTkGxtyLcMA0GCSqGSIb3DQEBBQUAMIGoMQswCQYDVQQGEwJBVTEY
MBYGA1UECBMPTmV3IFNvdXRoIFdhbGVzMQ8wDQYDVQQHEwZTeWRuZXkxDjAMBgNVBAoTBU9wdHVz
MQwwCgYDVQQLEwNQRUkxHDAaBgNVBAMTE3N0Mi5teS5vcHR1cy5jb20uYXUxMjAwBgkqhkiG9w0B
CQEWI3N0Mi5teS5vcHR1cy5jb20uYXVAbXkub3B0dXMuY29tLmF1MB4XDTE1MDYyMjA3NDYwN1oX
DTI1MDYxOTA3NDYwN1owgagxCzAJBgNVBAYTAkFVMRgwFgYDVQQIEw9OZXcgU291dGggV2FsZXMx
DzANBgNVBAcTBlN5ZG5leTEOMAwGA1UEChMFT3B0dXMxDDAKBgNVBAsTA1BFSTEcMBoGA1UEAxMT
c3QyLm15Lm9wdHVzLmNvbS5hdTEyMDAGCSqGSIb3DQEJARYjc3QyLm15Lm9wdHVzLmNvbS5hdUBt
eS5vcHR1cy5jb20uYXUwXDANBgkqhkiG9w0BAQEFAANLADBIAkEAunh6W/ve6eaijMH8bTvvIe3Q
747gIN0yM4j6hOu19EbldA8dfNzr1kyiIeWH5jdB513dZESGtVpfa0P5RmG4/wIDAQABo4IBETCC
AQ0wHQYDVR0OBBYEFIgdg6n7ovadSVOyX/EH47WTVAkNMIHdBgNVHSMEgdUwgdKAFIgdg6n7ovad
SVOyX/EH47WTVAkNoYGupIGrMIGoMQswCQYDVQQGEwJBVTEYMBYGA1UECBMPTmV3IFNvdXRoIFdh
bGVzMQ8wDQYDVQQHEwZTeWRuZXkxDjAMBgNVBAoTBU9wdHVzMQwwCgYDVQQLEwNQRUkxHDAaBgNV
BAMTE3N0Mi5teS5vcHR1cy5jb20uYXUxMjAwBgkqhkiG9w0BCQEWI3N0Mi5teS5vcHR1cy5jb20u
YXVAbXkub3B0dXMuY29tLmF1ggkAwkNOQbG3ItwwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUF
AANBAGo5euaeArQz4GAXVUBsEQX5xhm9sXjdbfTwkqFfVoK1+f9kg7E83+8uRK07lIc1cW+Ayk6L
KJRhzoRF0C1IQMc=
</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
<Status>
<StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/>
</Status>
<ns2:Assertion xmlns:ns2="urn:oasis:names:tc:SAML:2.0:assertion" ID="_85912e208de500617d79e2f0d9a33954af65" IssueInstant="2015-11-10T06:49:37Z" Version="2.0">
<ns2:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">https://st2.my.optus.com.au/SalesSSO</ns2:Issuer><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<ds:Reference URI="#_85912e208de500617d79e2f0d9a33954af65">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds:DigestValue>shJheN2UhS/8VBXCcdBoMBwILgI=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>
NRG+4U2O52ZWHmUnE4FBSJbpDIg4wgxc6dltoPs9zVxKbgdZHOqUR+YF7Qi7kmDhXGBCkYNq47z6
JSNawtLMMQ==
</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>
MIIDXjCCAwigAwIBAgIJAMJDTkGxtyLcMA0GCSqGSIb3DQEBBQUAMIGoMQswCQYDVQQGEwJBVTEY
MBYGA1UECBMPTmV3IFNvdXRoIFdhbGVzMQ8wDQYDVQQHEwZTeWRuZXkxDjAMBgNVBAoTBU9wdHVz
MQwwCgYDVQQLEwNQRUkxHDAaBgNVBAMTE3N0Mi5teS5vcHR1cy5jb20uYXUxMjAwBgkqhkiG9w0B
CQEWI3N0Mi5teS5vcHR1cy5jb20uYXVAbXkub3B0dXMuY29tLmF1MB4XDTE1MDYyMjA3NDYwN1oX
DTI1MDYxOTA3NDYwN1owgagxCzAJBgNVBAYTAkFVMRgwFgYDVQQIEw9OZXcgU291dGggV2FsZXMx
DzANBgNVBAcTBlN5ZG5leTEOMAwGA1UEChMFT3B0dXMxDDAKBgNVBAsTA1BFSTEcMBoGA1UEAxMT
c3QyLm15Lm9wdHVzLmNvbS5hdTEyMDAGCSqGSIb3DQEJARYjc3QyLm15Lm9wdHVzLmNvbS5hdUBt
eS5vcHR1cy5jb20uYXUwXDANBgkqhkiG9w0BAQEFAANLADBIAkEAunh6W/ve6eaijMH8bTvvIe3Q
747gIN0yM4j6hOu19EbldA8dfNzr1kyiIeWH5jdB513dZESGtVpfa0P5RmG4/wIDAQABo4IBETCC
AQ0wHQYDVR0OBBYEFIgdg6n7ovadSVOyX/EH47WTVAkNMIHdBgNVHSMEgdUwgdKAFIgdg6n7ovad
SVOyX/EH47WTVAkNoYGupIGrMIGoMQswCQYDVQQGEwJBVTEYMBYGA1UECBMPTmV3IFNvdXRoIFdh
bGVzMQ8wDQYDVQQHEwZTeWRuZXkxDjAMBgNVBAoTBU9wdHVzMQwwCgYDVQQLEwNQRUkxHDAaBgNV
BAMTE3N0Mi5teS5vcHR1cy5jb20uYXUxMjAwBgkqhkiG9w0BCQEWI3N0Mi5teS5vcHR1cy5jb20u
YXVAbXkub3B0dXMuY29tLmF1ggkAwkNOQbG3ItwwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUF
AANBAGo5euaeArQz4GAXVUBsEQX5xhm9sXjdbfTwkqFfVoK1+f9kg7E83+8uRK07lIc1cW+Ayk6L
KJRhzoRF0C1IQMc=
</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
<ns2:Subject>
<ns2:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">User2</ns2:NameID>
<ns2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
<ns2:SubjectConfirmationData InResponseTo="_2CAAAAVGAV-1eME8wTzAwMDAwMDAwMDAyAAAAxliRspPZxIEJbTkJslk0pWeSau3ZcFcjP3Ivaecf68tjX6a_VIh1t80Augu1e-ADqFEV-htJFTTCXI_vjXQyVnN16tgQKjjYsjgkYNh9z1ekTG8xw1FssvDfkZ9nNfKZcojaxQAqugzr8aadXB8-66PoaYRCr7H7yhWG943xS0mBOZSBbho6AZl8Tv5ByMebhmWPhTVW8_JPJ4hAij-lS4-NtY8AsWtowPdjTceoJ9Ye7yTAE1Rpzrm2tVWy8_f9yQ" NotOnOrAfter="2015-11-10T06:51:07Z" Recipient="https://optus--PHUB.cs5.my.salesforce.com?so=00DO00000051q90"/>
</ns2:SubjectConfirmation>
</ns2:Subject>
<ns2:Conditions NotBefore="2015-11-10T06:49:07Z" NotOnOrAfter="2015-11-10T06:51:07Z">
<ns2:AudienceRestriction>
<ns2:Audience>https://optus--PHUB.cs5.my.salesforce.com</ns2:Audience>;
</ns2:AudienceRestriction>
</ns2:Conditions>
<ns2:AuthnStatement AuthnInstant="2015-11-10T06:49:36Z" SessionIndex="+6ZUXHQlDkZBYAzhni2erVnxn2E=WOO1OA==" SessionNotOnOrAfter="2015-11-10T06:51:07Z">
<ns2:AuthnContext>
<ns2:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:Password</ns2:AuthnContextClassRef>
</ns2:AuthnContext>
</ns2:AuthnStatement>
<ns2:AttributeStatement>
<ns2:Attribute Name="Application_Role" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified">
<ns2:AttributeValue>SOS</ns2:AttributeValue>
</ns2:Attribute>
<ns2:Attribute Name="LoginChannel" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified">
<ns2:AttributeValue>Internal</ns2:AttributeValue>
</ns2:Attribute>
</ns2:AttributeStatement>
</ns2:Assertion>
</Response>





When i tried to get the NodeList it throws me null pointer exception.

Please suggest me where i have mistaken.

Thanks in advance.

Hi All,

At last we have found the solution and done the implementation.

Meta data is just a piece of information passed between the two entities.
We have manually created the meta data by reading metadata SAML 2.0 specification.

We haven't used any frameworks or API but we achieved the same by using servlets.
8 years ago
Hi All,

How to generate SAML. Metadata for IDP ?.

We haven't used any framework or tool for SP.We have done the below steps to implement SAML.

1.We created a servlet which is responsible for SAML request creation and redirection to IDP.
2.In the same way we have created a servlet which receives the response from IDP and manipulate the request.

I have googled and found OpenSAML is an API for SAML implementation in java but the problem is there is no proper documentation available.

Please suggest me how to achieve the above.

Thanks in advance.
8 years ago
Hi All,

I have created a service using axis2 and deployed in tomcat 7 but getting the below exception while trying to invoke the service.The service is deployed successfully and listed out in the service list.

[ERROR] Exception occurred while trying to invoke service method notifyQueryAddr
ess
org.apache.axis2.AxisFault
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObject
Supplier.java:47)
at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java
:421)
at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java
:470)
at org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.ja
va:827)
at org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.j
ava:746)
at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java
:655)
at org.apache.axis2.rpc.receivers.RPCUtil.processRequest(RPCUtil.java:15
3)
at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.jav
a:206)
at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
(RPCMessageReceiver.java:117)
at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusines
sLogic(AbstractInOutMessageReceiver.java:40)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMe
ssageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
uest(HTTPTransportUtils.java:172)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1
46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
947)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp
11Processor.java:1009)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
AbstractProtocol.java:589)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoin
t.java:1852)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.InstantiationException
at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance
(InstantiationExceptionConstructorAccessorImpl.java:48)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:374)
at java.lang.Class.newInstance(Class.java:327)
at org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObject
Supplier.java:42)
... 31 more


please suggest me to resolve this
Thanks in advance
9 years ago
Hi All,

I have created a SOAP client and initiate the transaction using proxy objects.Need to log the raw SOAP request/response XML message.

PaymentsAppServiceProxy proxy=new PaymentsAppServiceProxy();
QueryTransactionRequest request=new QueryTransactionRequest();


//Need to print the actual XML from the request


try {
QueryTransactionResponse response=proxy.queryTransaction(request);

//Need to print the actual XML from the response

} catch (RemoteException e) {
e.printStackTrace();
}



Thanks in advance.

9 years ago

Hi All,

I have generated a web service client using axis & eclipse.The problem occurs when i integrate with the existing system,the existing one is running in java1.4.The below exception thrown while accessing the web service.

Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Access restriction: The constructor QName(String, String) is not accessible due to restriction on required library C:\Program Files\Java\jdk1.7.0_40\jre\lib\rt.jar.


I have googled it and read some articles which states that its due license issue?


Please suggest why this occurs and how to resolve this.

Hi All ,

I found what causing the problem here.

Here is the mistake


if(addChNode.getNodeName().equals("addressSummary")){
NodeList summaryNodes=addChNode.getChildNodes();
for(int j = 0; j < addChildLst.getLength(); j++){
Node summaryNode=summaryNodes.item(j);
Node subAddNode=getSubAddress(summaryNode);
if(subAddNode==null){
continue;
}
NodeList subAddNodes= subAddNode.getChildNodes();
for (int k = 0; k < subAddNodes.getLength(); k++) {
Node subNode=subAddNodes.item(k);
if(subNode.getNodeName().equals(nodeName)){
nodeValue=subNode.getTextContent();
break;
}
}
}
}



that should be summaryNodes.getLength() then it will work as expected.

Hi Paul,

Thanks for responding for my query.

Here is the mess.If i try to iterate all the elements in "addresssummary" it fetch the elements till FACSRealm and subaddress is not fetching in the nodelist.

if i print the node inside that method it has subaddress.

My question is why its not fetching subaddress? am i did any wrong here ?

Please suggest me .

Thanks a lot in advance
Hi all,

I have tried to iterate all the elements inside a elements but its not fetching all the nodes





Below is the Node


<primaryAddress>
<postcode>6059</postcode>
<state>WA</state>
<locality>DIANELLA</locality>
<streetName>BERTRAM</streetName>
<streetType>ST</streetType>
<test>57</test>
<addressSummary>
<addressId>200608819</addressId>
<confirmedFlag>Y</confirmedFlag>
<propertyName>MORLEY</propertyName>
<propertyNumberFrom>14</propertyNumberFrom>
<propertyNumberFromSuffix>B</propertyNumberFromSuffix>
<ESA>MLEY</ESA>
<FACSRealm>57</FACSRealm>
<test>421155</test>
<subAddress>
<subAddress>
<addressId>418868686</addressId>
<parentAddressId>262118498</parentAddressId>
<confirmedFlag>N</confirmedFlag>
<subAddressType>Ground Floor</subAddressType>
<subAddress>
<subAddressNumber>012457</subAddressNumber>
<subAddressType>Unit</subAddressType>
</subAddress>
</subAddress>
</subAddress>
</addressSummary>
</primaryAddress>



Please suggest me how to proceed this .

Thanks in advance