Ashish Kirpan

Greenhorn
+ Follow
since Jan 24, 2011
Ashish likes ...
Java
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 Ashish Kirpan

Hi
I m going to appear for scbcd(ocbcd) exam. I want to know whether this exam contain any question of ejb3.0? As I only worked on ejb2.0 spec, and I have no idea ofejb3.0.
Thanks in advance.
Hi
I created the web service, when I am trying to access the URL with
http://localhost:8080/services/Calculator?wsdl
It gives me proper XML, but when I am trying withour "?wsdl" it gives me axis default page with default msg ike below

Calculator
Hi there, this is an AXIS service!

Perhaps there will be a form for invoking the service here...

I think there shoud be some setting to remove this default page.
Can anyone tell me how to remove this page.

Thanks in Advance.
4 years ago
Hi,

I created the webservice client and setting some header value in it, below is sample

<RequestorCredentials xmlns="https://paysecure/merchant.soap.header/" soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<Token soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">9EB53237-1BF4-4E35-B70B-C703D41EA74F</Token>
<Version soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">1.0.0.0</Version>
<CallerID soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">720261</CallerID>
<UserCredentials soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0">
<UserID soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">UBITEST</UserID>
<Password soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">ubitest@123</Password>
</UserCredentials>
</RequestorCredentials>

but when I form the header request, it contains some extra attributes are appended by default

soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"

I want to remove this attributes as web service rejecting my request due to these extra parameters.

Here is sample code which i used to form the header request

---------------------------------------
SOAPHeaderElement requestorCredentials = new SOAPHeaderElement(new QName("RequestorCredentials"));
requestorCredentials.setAttribute("xmlns", "https://paysecure/merchant.soap.header/");

SOAPHeaderElement eleToken = new SOAPHeaderElement(new QName("Token"));
eleToken.setValue(this.token);

SOAPHeaderElement eleVersion = new SOAPHeaderElement(new QName("Version"));
eleVersion.setValue(this.version);

SOAPHeaderElement eleCallerID = new SOAPHeaderElement(new QName("CallerID"));
eleCallerID.setValue(this.callerId);

requestorCredentials.addChild(eleToken);
requestorCredentials.addChild(eleVersion);
requestorCredentials.addChild(eleCallerID);

SOAPHeaderElement eleUserCred = new SOAPHeaderElement(new QName("UserCredentials"));

SOAPHeaderElement eleUserID = new SOAPHeaderElement(new QName("UserID"));
eleUserID.setValue(this.userId);

SOAPHeaderElement elePassword = new SOAPHeaderElement(new QName("Password"));
elePassword.setValue(this.password);

eleUserCred.addChild(eleUserID);
eleUserCred.addChild(elePassword);
requestorCredentials.addChild(eleUserCred);

System.out.println("XML : "+requestorCredentials.getAsString());

((org.apache.axis.client.Stub)portType).setHeader(requestorCredentials);
---------------------------------------
If anybody has idea of such kind of situation,please help.
5 years ago
Hi Anayonkar,

Thank you very much for such valuable information.

Hi Anayonkar,

I read in book (SCJD Exam with J2SE 5, Second Edition by Andrew Monkhouse and Terry Camerlengo) that essay exam consist of 4 questions.
I would like to know that, are these question only about code we written in our assignment project?
And if not please provide some details.

Thanks in advance.
Hi Anayonkar

My questions are...

1. As Mark says, is everyone has to undergo a compulsory training for OCMJD? Can't we do the self study for OCMJD?

2. Please give us some brief description about essay writing.

Thanks in advance.
Hi Mark,
here are answers for your question

1. After OCPJP is it the right choice on my part to appear for OCMJD certification exam? Or should I appear for some other Java certification before I appear for OCMJD?
Ans : You can appear for OCMJD only after passing OCPJP(SCJP). If you have lot of interest in CORE JAVA then go for OCMJD. But if you recently completed the OCPJP then I suggest you
to not go for OCMJD. Because for OCMJD need lots of core java knowledge. Rather you go for OCWCD(Servlets and JSP) which is quite easy and helpful if you doing it for job perspective.


2. Does OCMJD consists ALL THE JAVA TOPICS like swings/servlets/applets/JDBC? As you all know OCPJP does not contain Swings/Servlets/Applets and various other topics and to be honest I just know a little bit of Swings only. So is it like a person who knows every topic of java only he should appear for this certification?
Ans : Of course anybody(Who already completed OCPJP) can appear for this certification. OCMJD topic consist of swings/networking/Threading, but it mostly depends on the Project requirement.

3. Is OCMJD exam like a project that is given to an individual to complete in a span of weeks and even months?
Ans : You are right! OCMJD consist of 2 parts 1. Project Assignment 2. Essay Writing
You have to complete Project Assignment within 6 months from assignment purchase.


I also needs more expert advice for OCMJD. If you still interested in OCMJD, I will let you know as get some enough information.


Hi Rob,
your fourth option is correct, our IP was blocked.
Thanks.
Hi All,
Now I able to send multiple request without exception.
I used MultithrededHttpConnectionHandler class to accomplish this.
Thanks.
Hi
I am planning to prepare the OCJD(Oracle Certified Java Developer) Certification.
I search lot about OCJD on oracle web site.
I still need some expert suggession on this.
If anyone having idea about OCJD, please let me know.

Thanks in advance.
I am using ibm jdk1.4, while hashing i stuck here
java.security.NoSuchAlgorithmException: MessageDigest HMAC-SHA-1 implementation not found
i am sharing sample code, please help if anyone having any idea about this.

MessageDigest hmac_sha1 = MessageDigest.getInstance("HMAC-SHA-1", "CryptixCrypto");
sha1key = Hex.fromString(astrKey);
tmp = hmac_sha1.digest(astrData.getBytes());
output = Hex.toString(tmp);
6 years ago
JSP
Please find the detail stack trace. this exception come frequently(somtimes).
please anyone help

org.apache.jasper.JasperException: Index: 0, Size: 0
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:207)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:720)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:628)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:383)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:307)
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:391)
at org.apache.jsp.ACSAuthReqEntry_jsp._jspService(ACSAuthReqEntry_jsp.java:216)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:720)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:720)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:199)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:145)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:139)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:198)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2460)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:119)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:545)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:157)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)

6 years ago
JSP
my application is running on tomcat4.1 but i get this exception .
I dont understand why this happen.
org.apache.jasper.jasperexception index 0 size 0 occur sometimes and application get stuck.
any help is appreciated.
Thanks in advance
6 years ago
JSP
Thanks Greg.
7 years ago
I want to use Ciphers Suites in java program.
If you having any idea regarding how to add cipher suites in java sample java program then please help me.

Here is the actual scenario

I am using org.apache.commons.httpclient.HttpClient class to send the request to server over HTTPS connection.
The Client(My java program) must support below cipher suites for handshake
TLS_RSA_WITH_3DES_EDE_CBC_SHA (TLS) and SSL_RSA_WITH_3DES_EDE_CBC_SHA (SSL Version 3) .
Right now i am able to set only one cipher suite i.e. SSL_RSA_WITH_3DES_EDE_CBC_SHA (SSL Version 3)
but i dont know how to set TLS_RSA_WITH_3DES_EDE_CBC_SHA (TLS).

any help is appreciated
7 years ago