Re: -Error in service

Venura Perera <[email protected]> Tue, 11 Jul 2006 06:14:51 +0100 (BST)
Newsgroups gmane.comp.java.openamf.user
Message-ID <[email protected]>
Hi Todd,
   
  I've tried to run the given HelloWorld example from the flash player (flash-8).
   
  I got the "Successfully created Service" in the log but no results shown on the flash
  screen.
   
  I tried even putting trace(myService.sayHello()); on the flash script but the only string it gives is "undefined".
   
  Could you let me know what's the problem here.
   
  Thank you very much for the given support.
   
  - Regds
  - Venura
   
   
  Todd Hivnor <[email protected]> wrote:
  This is normal behavior.

Venura is making an empty HTTP GET
request to the OpenAMF servlet. But the OpenAMF
servlet is designed to respond to Remoting requests.
It is trying to parse a Remoting requests that
just isn't there.

I would personally prefer that DefaultGateway
detect empty HTTP requests, and respond with a
simple text message like "Welcome to the OpenAMF Gateway"
or some such. This would let you test your
configuration, to confirm that OpenAMF is
installed at the specified gateway location.
But as it stands, the servlet is assuming
that it is getting a Remoting request,
trying to parse it, and getting and an
end-of-file exception.

Venura: you need to make your request 
from Flash.


Sean Sullivan wrote:
> 1) What version of OpenAMF?
> 2) What version of the JDK?
> 3) What version of the Flash Player?
> 4) Have you tried upgrading to Tomcat 5.5.x?
>
>
> Venura Perera wrote:
> 
>> Hi all,
>>
>> I'm trying to configure openamf with tomcat-5.0.28.I can deploy
>> openamf as a war file
>> successfully without any error on tocat server console, but when I try
>> to access http://localhost:8080/openamf/gateway link following error
>> appears in on the tomcat
>> server console.
>> I've tried with many ways to solve this but all in vain.So any help
>> highly appreciated.
>>
>> - Server startup in 14875 ms
>> - Deserializing Message, for more info turn on debug level
>> - Error in service
>> java.io.EOFException
>> at
>> java.io.DataInputStream.readUnsignedShort(DataInputStream.java:400)
>> at
>> org.openamf.io.AMFDeserializer.readHeaders(AMFDeserializer.java:100)
>> at org.openamf.io.AMFDeserializer.(AMFDeserializer.java:80)
>> at
>> org.openamf.DefaultGateway.deserializeAMFMessage(DefaultGateway.java:
>> 155)
>> at org.openamf.DefaultGateway.service(DefaultGateway.java:86)
>> 


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Openamf-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openamf-user


 		
---------------------------------
 Try the all-new Yahoo! Mail . "The New Version is radically easier to use" – The Wall Street Journal


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Openamf-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openamf-user