Tom Walsh

Greenhorn
+ Follow
since Jan 17, 2011
Merit badge: grant badges
For More
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 Tom Walsh

Hello, I have been given the following class for encrypting and decrypting password strings. I can encrypt ok but I receive errors when I try to decrypt. The error is as follows

EncryptionHelper.encrypt...byte array length: 18EncryptionHelper.encrypt...string interpretation: [B@b179c3 Encrypt len = 44 EncryptionHelper.encrypt...return value: [B@67ac19 String decoded = [B@53ba3d Lent=5 testt Controller.main...exception, illegal block size: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher
javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.AESCipher.engineDoFinal(DashoA13*..)
at javax.crypto.Cipher.doFinal(DashoA13*..)
at com.avaya.utility.updater.EncryptionHelper.decrypt(EncryptionHelper.java:60)
at com.avaya.utility.updater.Controller.main(Controller.java:90)

My class is as follows



The error occurs at the following line "byte[] recoveredBytes = cipher.doFinal(encryptionBytes);"

How can I confirm that "byte[] encryptionBytes" will be a multiple of 16?

Thanks!

12 years ago
I found the source of my problems in accessing the Weblogic Local server browser console. It was as a result of performing a “Custom” instead of “Standard” installation during my Oracle Workshop installation.
I had installed workshop and not all other Oracle Weblogic components. To get the weblogic local server web console to work a full “standard” installation was required. I can now access web services successfully on the local weblogic server.
13 years ago
Hi, thanks for the help.
I am on Operating System Windows XP Professional 5.1 Service Pack 3.

Cheers again!
13 years ago
Hi,

I have installed Weblogic Workbench 10.3. The installation also installs aspects of Weblogic web server. I have created a domain for my weblogic server and the server starts ok without any errors. I cannot access web page http://localhost:7001 though. I've tried http://localhost:7001/console also as well as deploying the "MailingListService.java" web service example as per http://download.oracle.com/docs/cd/E12840_01/wlw/docs103/guide/webservices/WSTutorial/tutWebSvcStep4.html and trying to access it also. I keep getting errors such as the following

"Error 404--Not Found
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.

If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address."

As I have only installed Weblogic for the first time it may just require an additional configuration to fix this, however I'm not sure what.

Does anyone have any suggestions on how to resolve this?

Thanks in advance!
13 years ago