• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: java.io.IOException: No serializer found for class...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java.io.IOException: No serializer found for class...


  • Subject: Re: java.io.IOException: No serializer found for class...
  • From: Tony Becker <email@hidden>
  • Date: Mon, 12 Apr 2004 10:09:51 -0400

Ok. Let me try this again.
I haven't actually done this with WO yet, so it will be at a high level.
Serialization is the process of converting an object's data to a
universal form, in this case XML.
WebObjects uses Axis (http://ws.apache.org/axis/), as does WebSphere
and JBoss, which I have used successfully.
Axis is supposed to be smart about serialization/de-serialization as
long as you follow the JavaBean pattern using setter/getters.
So, try:


public class Student implements java.io.Serializable {		String f_name;
	String l_name;
	int age;
	int studentID;

	public void setF_name(String n) {
		f_name = n;
	}

	public String getF_name() {
		return f_name;
	}

	...

}





On Apr 8, 2004, at 12:08 PM, Ismael Nass-Duce wrote:

> Hi Tony,
>
> Tried your suggestion,
>
> public class Student implements java.io.Serializable {
> 		String f_name;
> 		String l_name;
> 		int age;
> 		int studentID;
> }
>
> but got the same error message!
>
> java.io.IOException: No serializer found for class Student in registry
> org.apache.axis.encoding.TypeMappingImpl@c27ce4
>
>
> On Apr 8, 2004, at 6:36 AM, Tony Becker wrote:
>
>> Off the top of my head, that should be public class Student
>> implements java.io.Serializable { ...
>>
>>
>> On Apr 8, 2004, at 2:14 AM, Ismael Nass-Duce wrote:
>>
>>> Hi,
>>> Created a test web service with one operation
>>> that expects a Student object. The Student class
>>> contains four fields:
>>>
>>> public class Student {
>>>
>>> 		String f_name;
>>> 		String l_name;
>>> 		int age;
>>> 		int studentID;
>>> }
>>>
>>> When I invoked the registerStudent(Student) operation
>>> on the test web service, I got the error
>>> listed below. When I used a String instead of
>>> the Student object, the operation invocation
>>> succeeded.
>>>
>>> What is the easiest way to solve this issue
>>> in WebObjects?
>>>
>>>
>>> Regards,
>>>
>>> Ismael
>>>
>>> Error:
>>>   java.io.IOException: No serializer found for class Student in
>>> registry
>>> org.apache.axis.encoding.TypeMappingImpl@333004
>>>
>>>   Reason:
>>>   ; nested exception is: java.io.IOException: No serializer found for
>>> class Student in registry
>>> org.apache.axis.encoding.TypeMappingImpl@333004
>>> _______________________________________________
>>> webobjects-dev mailing list | email@hidden
>>> Help/Unsubscribe/Archives:
>>> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>>> Do not post admin requests to the list. They will be ignored.
>>>
>>>
>> Tony Becker
>> Cell: 727 460 1891
>>
>> 'There are two distinct possibilities: either we are alone in the
>> Universe, or we are not. Both are equally terrifying.' - Arthur C.
>> Clarke
>>
Tony Becker
Cell: 727 460 1891

"Physics is like sex. Sure, it may give some practical results, but
that's not why we do it." -Richard Feynma
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >java.io.IOException: No serializer found for class... (From: Ismael Nass-Duce <email@hidden>)
 >Re: java.io.IOException: No serializer found for class... (From: Tony Becker <email@hidden>)
 >Re: java.io.IOException: No serializer found for class... (From: Ismael Nass-Duce <email@hidden>)

  • Prev by Date: Re: Need to perform another fetch?
  • Next by Date: Moving projects between machines
  • Previous by thread: Re: WO Direct to Java Client Application questions
  • Next by thread: EOF Design Questions
  • Index(es):
    • Date
    • Thread