?
Solved

Problem in deserializing an Object over URLConnection , when Object is different on receiving side

Posted on 2003-11-25
6
Medium Priority
?
279 Views
Last Modified: 2013-12-10
Hi,
        I have application W deployed on WebLogic. This app W has one Java object JO which is serializable. I have application A on ATG. app W and app A are same except java object JO is not serializable on ATG and is having less attributes than JO on Weblogic.
        I am sending JO from app W to app A by HttpURLConnection. But when I receive it in app A( from input stream of the Connection) and try to cast the object received to JO on ATG, it throws me error, which is normal, as the classes are not same.
        Is there any way by which I can send object to ATG without modifying the class on ATG. I can create new classes on WebLogic, but not on ATG.

Any suggestion is most Welcome.
Thanks in Advance
Animesh
0
Comment
Question by:animExp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 9

Expert Comment

by:vzilka
ID: 9823088
What if you try to create the same object in W (same attributes), but with the Serializable interface, and send it? Does it work?
0
 
LVL 4

Accepted Solution

by:
boxy73 earned 2000 total points
ID: 9823120
Try creating a class as in Weblogic as it exists in ATG and then create a new one, serializable if you need it, that extends that first class, and send it using HttpURLConnection.

If the class in weblogic has less attributes than in TAG, create it with those att in W too, although you're not going to use them.

0
 
LVL 9

Expert Comment

by:vzilka
ID: 11074721
boxy73 answer is both complete and accurate.
0

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question