Re: problem getting started with openamp
Stephen Jackson <[email protected]>
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <1099801849.2630.9.camel@vaquero> |
Thanks for your reply, I misspelled the astranslator jar in my build.xml. I got the ClasssNotFoundException when I connected from flash. A browser hit did not give me the specific exception. On Sat, 2004-11-06 at 19:05, Stephen Jackson wrote: > I should not get this error when I test the gateway through the > browser, right? That is all I was doing to get the Exception. > > http://localhost:8080/<context>/gateway > > On Thu, 2004-11-04 at 23:44, Sebastien Blanc wrote: > > > Hi, > > most of the time it means you are sending a request to the AMF servlet > > that you should not be sending. > > like you are sending a LoadVars.send to an URL with the OpenAMF gateway > > when it should be to another servlet. > > any case, that means OpenAMF cannot unmarshall your request becoz it is > > not an AMF one over HTTP. > > seb. > > > > Stephen Jackson wrote: > > > > > I am using version 1.0RC10. > > > > > > This is the output in the log file. > > > > > > I have a Delegate class that I am calling defined in a service > > > tag(config file below). I have an empty method called testAMF(). > > > All I am doing is calling the gateway through a browser and getting > > > the following output. I have the logging set to debug, but not seeing > > > where to start debugging. > > > > > > Thanks in advance. > > > > > > ================= > > > SERVICE INVOKERS > > > ================= > > > Name: PageableRecordSet > > > Class Name: org.openamf.invoker.PageableResultSetServiceInvoker > > > Name: SessionControl > > > Class Name: org.openamf.invoker.SessionControlInvoker > > > Name: WebService > > > Class Name: org.openamf.invoker.WebServiceInvoker > > > Name: Java > > > Class Name: org.openamf.invoker.JavaServiceInvoker > > > > > > ======================= > > > CUSTOM CLASS MAPPINGS > > > ======================= > > > > > > ======================= > > > PageableRecordsetConfig > > > ======================= > > > initialDataRowCount: 20 > > > ======================= > > > AMFSerializerConfig > > > ======================= > > > forceLowerCaseKeys: false > > > ========= > > > SERVICES > > > ========= > > > > > > ************************** > > > Name: Delegate > > > Service Location: com.test.Delegate > > > Service Invoker Ref: Java > > > Service Invoker: > > > Java > > > ----------------- > > > METHODS > > > ----------------- > > > Name: testAMF > > > ----------------- > > > STATE BEANS > > > ----------------- > > > ----------------- > > > PARAMETERS > > > ----------------- > > > Type: * > > > ----------------- > > > RESULT FILTERS: > > > ----------------- > > > ----------------- > > > ACCESS CONSTRAINTS: > > > ----------------- > > > > > > ========= > > > STATE BEANS > > > ========= > > > > > > 22:30:31,571 INFO [AMFDeserializer] Deserializing Message, for more > > > info turn on debug level > > > 22:30:31,577 ERROR [DefaultGateway] Error in service > > > java.io.EOFException > > > at > > > java.io.DataInputStream.readUnsignedShort(DataInputStream.java:400) > > > at > > > org.openamf.io.AMFDeserializer.readHeaders(AMFDeserializer.java:98) > > > at > > > org.openamf.io.AMFDeserializer.<init>(AMFDeserializer.java:80) > > > at > > > org.openamf.DefaultGateway.deserializeAMFMessage(DefaultGateway.java:153) > > > > > > at org.openamf.DefaultGateway.service(DefaultGateway.java:84) > > > at > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:810) > > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) > > > > > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) > > > > > > //Config file > > > > > > > > > <config> > > > > > > <!-- > > > Configure behavior of outgoing AMF messages: > > > forceLowerCaseKeys - if true, the hash maps used to return custom > > > classes > > > will convert all keys to lower case; > > > set this to: > > > true if you're using ActionScript 1.0 on the client, > > > false if you're using ActionScript 2.0 (which is case-sensitive) > > > --> > > > <amf-serializer> > > > <force-lower-case-keys>false</force-lower-case-keys> > > > </amf-serializer> > > > > > > <!-- Required for DefaultGateway--> > > > <invoker> > > > <name>PageableRecordSet</name> > > > <class>org.openamf.invoker.PageableResultSetServiceInvoker</class> > > > </invoker> > > > <invoker> > > > <name>SessionControl</name> > > > <class>org.openamf.invoker.SessionControlInvoker</class> > > > </invoker> > > > <invoker> > > > <name>WebService</name> > > > <class>org.openamf.invoker.WebServiceInvoker</class> > > > </invoker> > > > <!--invoker> > > > <name>JMX</name> > > > <class>org.openamf.invoker.JMXServiceInvoker</class> > > > </invoker--> > > > > > > <invoker> > > > <name>Java</name> > > > <class>org.openamf.invoker.JavaServiceInvoker</class> > > > </invoker> > > > <pageable-recordset> > > > <initial-data-row-count>20</initial-data-row-count> > > > </pageable-recordset> > > > <!-- > > > <custom-class-mapping> > > > <java-class>org.openamf.examples.Person</java-class> > > > <custom-class>Person</custom-class> > > > </custom-class-mapping> > > > --> > > > <!-- Required for AdvancedGateway --> > > > <!-- > > > This allows you to declare infomation about your services, > > > instead of having the DefaultGateway guess > > > --> > > > <service> > > > <name>Delegate</name> > > > <service-location>com.test.Delegate</service-location> > > > <invoker-ref>Java</invoker-ref> > > > <method> > > > <!-- Operation's are matched by the name and parameters --> > > > <name>testAMF</name> > > > <parameter> > > > <!-- > > > type can be the the name of the class, > > > a * for any types, > > > or a ? any 1 type > > > --> > > > <type>*</type> > > > </parameter> > > > </method> > > > </service> > > > </config> > > > > > >