narendra darlanka

Ranch Hand
+ Follow
since Jun 17, 2005
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 narendra darlanka

Hi ,
i am not sure if this is the problem but ,usually i will not have anything after the port .So it will be some thing like this


Also make sure that rmi server is actually running on 2809 by using telnet .Webpshere would keep increasing the port number for every new profile that you create .

Thanks
Narendra

The problem is in your client program,you are not calling the startServer method (line 08). Another problem you would have is , on the client side you are using an writeBytes() which would not add a terminating new line ,whereas you are expecting
newline terminate string by using readLine() . to fix it you can append the new line manually before writing to the output stream (line 25 "+"\n" )


Since you are dealing with just strings, i think an alternative better way to handle it would be to just use a PrintWriter



5 years ago
Hi,
You are closing the Socket in your client program as soon as you open it ,causing the Server side streams to close abruptly. Change your client code to write something to the stream .



This would cause the server to print the value and then throw the reset exception(since the client is terminated)
Also note that since you are using the readLine at the server, you must terminate the string at the client side with a new line

a good java trail for starting client server programming http://docs.oracle.com/javase/tutorial/networking/sockets/clientServer.html
5 years ago
Hi,
You are closing the Socket in your client program as soon as you open it ,causing the Server side streams to close abruptly. Change your client code to write something to the stream .



This would cause the server to print the value and then throw the reset exception(since the client is terminated)
Also note that since you are using the readLine() at the server, you must terminate the string at the client side with a new line

a good java trail for starting client server programming http://docs.oracle.com/javase/tutorial/networking/sockets/clientServer.html
5 years ago
Hi,
i think it can also be achieved by using the DistributedLockManagerin JGroups
Hi,
sorry for confusing .our solution was similar to the one suggested ulf,
we indexed the PDF's and then used the text highlighter in PDFbox to
generate the highlight XML .we passed this xml to acrobat as a
parameter.this works only with acrobat.http://www.pdfbox.org/userguide/highlighting.pdf
10 years ago
Hi,
we used Apache Lucene for search and text highlight with PDF's . i am not sure with ms word.

Hope it helps
10 years ago
hi,
i am trying to use ksoap for a midlet webservice Client.
for one of the webservices the input consists of a 2 dimensional String array , how do i set them in an SoapObject

my final soap request should be some thing similar as below

<?xml version="1.0" encoding="UTF-8" ?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <SOAP-ENV:Header>
- <sapsess:Session xmlns:sapsess="http://www.sap.com/webas/630/soap/features/session/">
<enableSession>true</enableSession>
</sapsess:Session>
</SOAP-ENV:Header>
- <SOAP-ENV:Body>
- <pns:createCrSORequest xmlns ns="urn:SFAAOAndDownloadsWSVi">
<pns:strUserId>USER000003</pns:strUserId>
<pns:strPassWord>mobileone</pns:strPassWord>
<pns:strRoleId>ROLE000003</pns:strRoleId>
<pns:strDeviceId>1000</pns:strDeviceId>
- <ns1:itemsStr xmlns:ns1="urn:SFAAOAndDownloadsWSVi" xmlns ns="urn:java/lang">
- <pns:String>
<pns:String>PK-100</pns:String>
<pns:String>12</pns:String>
<pns:String>12</pns:String>
</pns:String>
- <pns:String>
<pns:String>PK-101</pns:String>
<pns:String>11</pns:String>
<pns:String>11</pns:String>
</pns:String>
</ns1:itemsStr>
<pns:strSalesOrg>1000</pns:strSalesOrg>
<pns:strDistChan>10</pns:strDistChan>
<pns:strDivision>00</pns:strDivision>
<pns:strPartnerNo>0000000051</pns:strPartnerNo>
<pns:strPurchaseNo>1234</pns:strPurchaseNo>
<pns:strCreateDate>10.10.2007</pns:strCreateDate>
<pns:strReqDate>10.10.2020</pns:strReqDate>
</pns:createCrSORequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>



regards,
[ October 11, 2006: Message edited by: narendra darlanka ]
12 years ago
hi,
i too think that ksoap is the only solution for now and i have already started working on it. thanks for the reply

regards,
12 years ago
hi,

how can we call a webservice in an CDC application.i believe that it can be done through jsr172 implementation(j2me-ws.jar) . but it seems to work only with J2me Wireless ToolKit midlets.i tried to copy the stubs generated by the ToolKit and added them into my netbean CDC project along with the j2me-ws.jar
. its compiling well but at run time it gives an Security Exception stating that that package java.rmi is an proctected System package. is there any way to call a web service in CDC application .i am using netbean5.0 +CDC mobility pack + NOKIA 80's emulator/ SE m600 emulator
regards,
12 years ago
hi,
i have a entity bean with some finder methods,one of the method is throwing an

UndeclaredThrowableException.
i am getting "java.lang.Exception: Incorect Operation" as the cause of the

UndeclaredThrowableException . what could be the possible reason for this .

thanks in advance,
narendra
hi,
i have a j2ee web service that returns a large amount of data and i want to compress it to reduce network usage . i believe that this has to be done at http level by configuring the web server or are there any options that we could do at our web service level? we are using SAP WebAS

thanks,
[ June 06, 2006: Message edited by: narendra darlanka ]
13 years ago
hi
are there any known issues when jaxr is used with juddi.
i am getting an exception when i try to run the jwsdp1.6 jaxr sample programs against a local juddi setup butthe same code works fine with the public SAP test registry.

Exception in thread "main" java.lang.IllegalArgumentException
at com.sun.xml.registry.uddi.bindings_v2.impl.runtime.UnmarshallerImpl.unmarshal(Unknown Source)
at com.sun.xml.registry.common.util.MarshallerUtil.jaxbUnmarshalObject(Unknown Source)
at com.sun.xml.registry.uddi.Processor.processResponseJAXB(Unknown Source)
at com.sun.xml.registry.uddi.Processor.processRequestJAXB(Unknown Source)
at com.sun.xml.registry.uddi.UDDIMapper.findOrganizations(Unknown Source)
at com.sun.xml.registry.uddi.BusinessQueryManagerImpl.findOrganizations(Unknown Source)
at com.pass.BusinessQueryTest.executeQueryTest(BusinessQueryTest.java:65)
at com.pass.BusinessQueryTest.main(BusinessQueryTest.java:37)

i am able to successfully access the registry through UDDI4J. moreover
the JAXR-Browser from wsdp1.6 is unable to browse the juddi registry.
13 years ago
hi ,
i want to use xpath for getting the required information in an xml file.i tried to use xalan's xpath implementation but didnt find any sample java code using it . i would like to know any pointers to such sample code. ...
hi,
i have appeared for and successfully completed the "Sun Certified
Web Component Developer" on september 14 . according
to the certmanager site the welcome kit has been mailed on 09/18/2005
.more than one month has passed and i am yet to receive
it.is it normal to take this much time.the programmer kit took around just a week for delivery !.i mailed to them three days back but still got no response i am starting to really worry about its possible loss in
transit what can i do in that case? will sun resend the kit(atleast for some fee) ?
[ October 28, 2005: Message edited by: narendra darlanka ]
13 years ago