Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!

Battula lakshman

Greenhorn
+ Follow
since Apr 24, 2006
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 Battula lakshman

hi,
I fallowed the everystep mentioned in the Posting the problem was it was giving the fallowing Exception
java.lang.NoClassDefFoundError: java/security/a: Cannot create class in system package
I unable to resolve that Exception.
Can you please tell me the way to avoid that Exception.
Thanks for your reply
lakshman
16 years ago
hi all,
I have fallowed the steps you discussed in your postings. and i am unable to resolve the Exception i am getting. I did the obfuscation also still i am getting the same Exception.
can any body please tell me the way to resolve the Exception.
I am getting the fallowing Exception
java.lang.NoClassDefFoundError: java/security/SecureRandom: Cannot create class in system package
at org.bouncycastle.crypto.encodings.PKCS1Encoding.init(+35)
at Cryptor.doEncrypt(+64)
at BouncyTest$CryptCanvas.keyPressed(+45)
at javax.microedition.lcdui.Canvas.callKeyPressed(+19)
at javax.microedition.lcdui.Display$DisplayAccessor.keyEvent(+198)
at javax.microedition.lcdui.Display$DisplayManagerImpl.keyEvent(+11)
at com.sun.midp.lcdui.DefaultEventHandler.keyEvent(+121)
at com.sun.midp.lcdui.AutomatedEventHandler.keyEvent(+210)
at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+178)
Thanks in advance
lakshman
16 years ago
hi all,
I am using the proguard for obfuscation of the Application.AS obfuscator main goal was to decompile and removing the non using classes and including the classes the MIDlet needed.
As expected , i thought that Java.security.SecureRandom will include into the JAR after Obfuscation.
The Java.security.SecureRandom was available in the BouncyCastle, but it did not do anything instead, after running the application it was again giving the application which was little different from the previous one
java.lang.NoClassDefFoundError: java/security/a: Cannot create class in system package
at org.bouncycastle.crypto.encodings.a.a(+31)
at a.a(+64)
at b.keyPressed(+45)
at javax.microedition.lcdui.Canvas.callKeyPressed(+19)
at javax.microedition.lcdui.Display$DisplayAccessor.keyEvent(+198)
at javax.microedition.lcdui.Display$DisplayManagerImpl.keyEvent(+11)
at com.sun.midp.lcdui.DefaultEventHandler.keyEvent(+121)
at com.sun.midp.lcdui.AutomatedEventHandler.keyEvent(+210)
at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+178)
can you please tell me which will make the application to Encrypt the data by avoiding the Exception at present i am getting
Please rectify me, if i given any wrong information about obfuscators.
Thanks for your help
lakshman
16 years ago
hi all,
I am little novice in developing the Security application. I am devloping an application in which i was supposed to Encrypt the data in the MIDlet side.
I am getting the fallowing Exception
java.lang.NoClassDefFoundError: java/security/SecureRandom: Cannot create class in system package
at org.bouncycastle.crypto.encodings.PKCS1Encoding.init(+35)
at Cryptor.doEncrypt(+64)
at BouncyTest$CryptCanvas.keyPressed(+45)
at javax.microedition.lcdui.Canvas.callKeyPressed(+19)
at javax.microedition.lcdui.Display$DisplayAccessor.keyEvent(+198)
at javax.microedition.lcdui.Display$DisplayManagerImpl.keyEvent(+11)
at com.sun.midp.lcdui.DefaultEventHandler.keyEvent(+121)
at com.sun.midp.lcdui.AutomatedEventHandler.keyEvent(+210)
at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+178)
Can anybody please tell me how come to include the SecureRandom in this MIDlet.I am unable to find the solution for this.
Please help me in this...
lakshman
16 years ago
hi can you please post the ASP code please i am also facing the same problem in the SERVER side.
I am new to ASP
please help me
lakshman
16 years ago
hi all,
let me explain you the whole process i have fallowed that will make your job simpler.
In browser side and certification request
1. I got the certificate from the verisign it was an free certificate from verisign.
2. the certificate was imported into the iis.then it was giving one more warning in the security alert that the root was not in the trusted list.
3. I have downloaded the verisign intermediate trusted certificate Authority and i have imported into the IIS then with out any security alert i am getting the output.
Then i came to the MIDlet side
Before the Root certificate was installed into the MEKeytool i am getting the fallowing Exception
javax.microedition.pki.certificateException: certificate from unrecognized entity
1.The root CA was imported into the MEKeyTool with the help of
MEKeytool
2.The certificate was also imported into the MEKeytool with the help of
MEKeytool
Now the Exception was changed to
java.io.IOException: getNextMsg refill failed
I have serched in many forums and googled and i am not got any good information regarding this issue.
so I need help from all of you guys.
Please help me in resolving this
Thanks in advance
lakshman
16 years ago
hi all,
I have checked the process with the help of SSL diagnostics.it was giving the fallowing output in the probe SSL section
HTTP/1.1 302 object moved
As far as the certificate is concern there is no problem.
I imported the certificate into MEKeytool and the RootCA was also imported into the MEKeytool
can anybody please tell me, what went wrong in this configuration
Thanks in advance
lakshman
16 years ago
hi all,
I am facing problem in getting the response from ASP(HTTPS+IIS).I got the certificate from the verisign and the ceriticate.
The Asp file was working fine and giving the response in the browser.When the url was in the MIDlet application it was giving fallowing Exception
java.io.IOException:getNextMsg refill failed
Can anybody please tell me the way to resolve this Exception.I facing this HTTPS configuration problem in MIDlet from past one week.
Please help me
I am badly in need of your help
Thanks in advanvace
lakshman
16 years ago
hi all,
I am facing the problem in getting the ooutput from the IIS.I am using HTTPS connection for secure transaction.I have created the certificate with the help of makecert.exe(downloaded from Microsoft).
The certificate was stored in the mmc->personal.
The certificate was imported into the MEKeyTool.jar(which was responsible maintaining the certificates).Even then the condition was same i am getting the fallowing Exception
javax.microedition.pki.CertificateException: Certificate failed verification
Please help me in resolving this Exception.
Thanks in advance
lakshman
16 years ago