Re: problem getting started with openamp

Sebastien Blanc <[email protected]>
Newsgroups gmane.comp.java.openamf.user
Organization ALCATEL USA
Message-ID <[email protected]>
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>
>
>
Sebastien.Blanc.vcf (text/x-vcard, 713 B)
begin:vcard 
n:BLANC;SEBASTIEN
tel;fax:972 519 3781
tel;work:972 519 4880
x-mozilla-html:FALSE
org:Alcatel USA
adr:;;;;;;
version:2.1
email;internet:[email protected]
note;quoted-printable:THIS TRANSFER OF COMMODITIES, TECHNOLOGY OR SOFTWARE IF FROM THE UNITED=0D=0ASTATES IS AN EXPORT IN ACCORDANCE WITH THE U.S. EXPORT ADMINISTRATION=0D=0AREGULATIONS. DIVERSION CONTRARY TO U.S. LAW PROHIBITED. THE EXPORT OR=0D=0ARE-EXPORT (FURTHER TRANSFER) OF SUCH COMMODITIES, TECHNOLOGY, SOFTWARE=0D=0AOR PRODUCTS MADE FROM SUCH TECHNOLOGY, IS PROHIBITED WITHOUT PROPER=0D=0AAUTHORIZATION(S) FROM THE U.S. DEPARTMENT OF COMMERCE OR OTHER =0D=0AAPPROPRIATE U.S. GOVERNMENT AGENCY(S). 
fn:SEBASTIEN BLANC
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.