problem getting started with openamp

Stephen Jackson <[email protected]>
Newsgroups gmane.comp.java.openamf.user
Message-ID <1099626900.2655.25.camel@vaquero>
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>
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.