MM BlackBoard example with OpenAMF
"Darryl L. Miles" <[email protected]>
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I am trying to get Macromedia's BlackBoard example working. I'm using
Tomcat 5.5.9.
I'm expecting OpenAMF to serialize the POJO class
"macromedia.mxExamples.groupManagement.Course" which contains 3
HashMap's each with further POJOs made up of primitive java types. I
have tried also adding a customClassName to map the fill java name down
to the simple "course" name I can see in the client FLA file. The POJOs
all have "implements Serializable" set and no implementation specific
serializer methods, but I don' think that should cause a problem with
this example as its my understanding that the standard java datatypes
used can be converted to x-amf wire protocol.
From the tcpdump it appears that the HTTP request comes in ok, and the
response looks something like this:
0x0030: 2fd0 0b5d 4854 5450 2f31 2e31 2032 3030 /..]HTTP/1.1.200
0x0040: 204f 4b0d 0a53 6572 7665 723a 2041 7061 .OK..Server:.Apa
0x0050: 6368 652d 436f 796f 7465 2f31 2e31 0d0a che-Coyote/1.1..
0x0060: 5365 742d 436f 6f6b 6965 3a20 4a53 4553 Set-Cookie:.JSES
0x0070: 5349 4f4e 4944 3d31 4246 4138 4434 4631 SIONID=1BFA8D4F1
0x0080: 3841 4137 3238 4331 4635 3032 3337 3944 8AA728C1F502379D
0x0090: 3733 4339 4435 363b 2050 6174 683d 2f74 73C9D56;.Path=/t
0x00a0: 6f6d 6361 7473 6b65 6c0d 0a43 6f6e 7465 omcatskel..Conte
0x00b0: 6e74 2d54 7970 653a 2061 7070 6c69 6361 nt-Type:.applica
0x00c0: 7469 6f6e 2f78 2d61 6d66 0d0a 436f 6e74 tion/x-amf..Cont
0x00d0: 656e 742d 4c65 6e67 7468 3a20 3431 0d0a ent-Length:.41..
0x00e0: 4461 7465 3a20 5475 652c 2031 3820 4f63 Date:.Tue,.18.Oc
0x00f0: 7420 3230 3035 2031 303a 3433 3a30 3420 t.2005.10:43:04.
0x0100: 474d 540d 0a0d 0a00 0000 0000 0100 0b2f GMT............/
0x0110: 312f 6f6e 5265 7375 6c74 0004 6e75 6c6c 1/onResult..null
0x0120: ffff ffff 1000 0663 6f75 7273 6500 0009 .......course...
As you can see there is no serialisation of the data, the code that
populates the "Course" class is being run as the log entry proves it.
This is my first use of MM remoting and OpenAMX. Your help to would be
greatfully appreciated.
Here are some entries in the servlet logging, the "response=null,
type=UNKNOWN" in the RESPONSE part concerns me:
DEBUG 11:43:03,748 (AMFDeserializer.java:<init>:84) -readBody
DEBUG 11:43:03,750 (DefaultGateway.java:service:89) -REQUEST:
[AMFMessage: {version=0, headers={[AMFHeader: {key=amf_server_debug, required=true, value={amfheaders=false, httpheaders=false, coldfusion=true, m_debug=true, recordset=true, trace=true, amf=false, error=true}}]}, bodies={[AMFBody: {serviceName=macromedia.mxExamples.groupManagement.BBGMFacadeDevelopmentImpl, serviceMethodName=getCourse, response=/1, type=ARRAY, value=[_383_1]}]}}]
DEBUG 11:43:03,833 (JavaServiceInvoker.java:supports:165) -check supports macromedia.mxExamples.groupManagement.BBGMFacadeDevelopmentImpl
DEBUG 11:43:03,865 (JavaServiceInvoker.java:getServiceMethod:122) -REQUESTED methodName: getCourse
...SNIP...
INFO 11:43:04,186 (JavaServiceInvoker.java:getServiceMethod:137) -topRankedMethod: name=getCourse rank=100.0
DEBUG 11:43:04,198 (BBGMFacadeDevelopmentImpl.java:getCourse:95) -getCourse("_383_1");
DEBUG 11:43:04,224 (DefaultGateway.java:service:98) -RESPONSE:
[AMFMessage: {version=0, headers={}, bodies={[AMFBody: {serviceName=null, serviceMethodName=null, response=null, type=UNKNOWN, value=macromedia.mxExamples.groupManagement.Course@1fa269b}]}}]
INFO 11:43:04,272 (AMFSerializer.java:serializeMessage:82) -Serializing Message, for more info turn on debug level
DEBUG 11:43:04,274 (AMFSerializer.java:writeObject:219) -Writing object, class = class macromedia.mxExamples.groupManagement.Course
DEBUG 11:43:04,278 (AMFSerializer.java:writeObject:229) -customClassName : course
Regards,
Darryl
--
Darryl L. Miles
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl