Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

unexpected EOF on client side when Apache sends applet class

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


swsyah at yahoo

Oct 25, 2007, 10:24 AM

Post #1 of 10 (177 views)
Permalink
unexpected EOF on client side when Apache sends applet class

Apache 2.2.4 on Slax Linux, clients are win 2000 and win 98 with Mozilla an IE

I'm trying to get Apache on a Slax Linux machine to serve an applet to a browser on a Windows PC.

The html loads and displays; the applet is a simple 'hello world' app that runs in appletviewer fine. html and class are in the htdocs directory. hppd.conf was edited to allow to all.

The PC requests the html, Apache delivers, ack, ack etc. PC requests helloapp.class, Apache responds, but the PC shows errors in Java Console and the applet does not run (applet notinited).

errors:
load:class helloapp not found.
java.lang.ClassNotFoundException: helloapp
at ......
at ...
Caused by: java.io.IOException: unexpected EOF
at ...

The tcp packet returned by Apache is:

0000 ...v.".....e..E.
0010 .t*I[at].@.........
0020 ..P.(....C"..P.
0030 ..xv..HTTP/1.1.2
0040 00.OK..Date:.Thu
0050 ,.25.Oct.2007.10
0060 :16:04.GMT..Serv
0070 er:.Apache/2.2.4
0080 .(Unix).mod_ssl/
0090 2.2.4.OpenSSL/0.
00A0 9.8b.DAV/2..Last
00B0 -Modified:.Thu,.
00C0 25.Oct.2007.09:5
00D0 8:21.GMT..ETag:.
00E0 "220c-214-462de9
00F0 40"..Accept-Rang
0100 es:.bytes..Conte
0110 nt-Length:.532..
0120 Keep-Alive:.time
0130 out=5,.max=100..

The packet is 372 bytes but it says the Content-Length is 532

This and the error suggest that the actual applet class is not being included in the packet.

I'm new at this, so it may be something very simple. I did get it to work the other night after adding codebase="." to the <applet> part of of the html code. But now it's not helping. I feel I must have changed something in the Apache configuration.

I tried searching the archives, but it doesn't seem set up well for searching - am I missing a search link somewhere?






__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


michaelm at swplumb

Oct 25, 2007, 10:30 AM

Post #2 of 10 (176 views)
Permalink
Re: unexpected EOF on client side when Apache sends applet class [In reply to]

Can you wget the applet file?
> Apache 2.2.4 on Slax Linux, clients are win 2000 and win 98 with
> Mozilla an IE
>
> I'm trying to get Apache on a Slax Linux machine to serve an applet to
> a browser on a Windows PC.
>
> The html loads and displays; the applet is a simple 'hello world' app
> that runs in appletviewer fine. html and class are in the htdocs
> directory. hppd.conf was edited to allow to all.
>
> The PC requests the html, Apache delivers, ack, ack etc. PC requests
> helloapp.class, Apache responds, but the PC shows errors in Java
> Console and the applet does not run (applet notinited).
>
> errors:
> load:class helloapp not found.
> java.lang.ClassNotFoundException: helloapp
> at ......
> at ...
> Caused by: java.io.IOException: unexpected EOF
> at ...
>
> The tcp packet returned by Apache is:
>
> 0000 ...v.".....e..E.
> 0010 .t*I[at].@........
> 0020 ..P.(....C"..P.
> 0030 ..xv..HTTP/1.1.2
> 0040 00.OK..Date:.Thu
> 0050 ,.25.Oct.2007.10
> 0060 :16:04.GMT..Serv
> 0070 er:.Apache/2.2.4
> 0080 .(Unix).mod_ssl/
> 0090 2.2.4.OpenSSL/0.
> 00A0 9.8b.DAV/2..Last
> 00B0 -Modified:.Thu,.
> 00C0 25.Oct.2007.09:5
> 00D0 8:21.GMT..ETag:.
> 00E0 "220c-214-462de9
> 00F0 40"..Accept-Rang
> 0100 es:.bytes..Conte
> 0110 nt-Length:.532..
> 0120 Keep-Alive:.time
> 0130 out=5,.max=100..
>
> The packet is 372 bytes but it says the Content-Length is 532
>
> This and the error suggest that the actual applet class is not being
> included in the packet.
>
> I'm new at this, so it may be something very simple. I did get it to
> work the other night after adding codebase="." to the <applet> part of
> of the html code. But now it's not helping. I feel I must have changed
> something in the Apache configuration.
>
> I tried searching the archives, but it doesn't seem set up well for
> searching - am I missing a search link somewhere?

--
Michael McGlothlin
http://www.plumbersstock.com/


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


swsyah at yahoo

Oct 25, 2007, 11:15 AM

Post #3 of 10 (174 views)
Permalink
Re: unexpected EOF on client side when Apache sends applet class [In reply to]

Didn't know about wget, thanks!. I just downloaded it and tried it:

wget 192.168.1.159/helloapp.class

It tried many times without success - here are the last two:

Retrying.

--14:04:40-- http://192.168.1.159/helloapp.class
(try:19) => `helloapp.class.19'
Connecting to 192.168.1.159:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 532 [application/octet-stream]

0% [ ] 0 --.--K/s

14:04:40 (0.00 B/s) - Connection closed at byte 0. Retrying.

--14:04:40-- http://192.168.1.159/helloapp.class
(try:20) => `helloapp.class.19'
Connecting to 192.168.1.159:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 532 [application/octet-stream]
helloapp.class.19 has sprung into existence.
Giving up.

- The packets look like the ones I was getting with the html code. It seems to send back all the info except for the data.

I can upload other things in the directory. Ahhh - I made a small text file and named it 'test.class' to see if was a problem with the extension. That worked, but if I made the file larger - 475 bytes - it fails.

So I'm thinking it has a problem with files larger than a few hundred bytes. Is there a setting for max data length or packet size?

- Steve




Michael McGlothlin <michaelm[at]swplumb.com> wrote: Can you wget the applet file?
> Apache 2.2.4 on Slax Linux, clients are win 2000 and win 98 with
> Mozilla an IE
>
> I'm trying to get Apache on a Slax Linux machine to serve an applet to
> a browser on a Windows PC.
>
> The html loads and displays; the applet is a simple 'hello world' app
> that runs in appletviewer fine. html and class are in the htdocs
> directory. hppd.conf was edited to allow to all.
>
> The PC requests the html, Apache delivers, ack, ack etc. PC requests
> helloapp.class, Apache responds, but the PC shows errors in Java
> Console and the applet does not run (applet notinited).
>
> errors:
> load:class helloapp not found.
> java.lang.ClassNotFoundException: helloapp
> at ......
> at ...
> Caused by: java.io.IOException: unexpected EOF
> at ...
>
> The tcp packet returned by Apache is:
>
> 0000 ...v.".....e..E.
> 0010 .t*I[at].@........
> 0020 ..P.(....C"..P.
> 0030 ..xv..HTTP/1.1.2
> 0040 00.OK..Date:.Thu
> 0050 ,.25.Oct.2007.10
> 0060 :16:04.GMT..Serv
> 0070 er:.Apache/2.2.4
> 0080 .(Unix).mod_ssl/
> 0090 2.2.4.OpenSSL/0.
> 00A0 9.8b.DAV/2..Last
> 00B0 -Modified:.Thu,.
> 00C0 25.Oct.2007.09:5
> 00D0 8:21.GMT..ETag:.
> 00E0 "220c-214-462de9
> 00F0 40"..Accept-Rang
> 0100 es:.bytes..Conte
> 0110 nt-Length:.532..
> 0120 Keep-Alive:.time
> 0130 out=5,.max=100..
>
> The packet is 372 bytes but it says the Content-Length is 532
>
> This and the error suggest that the actual applet class is not being
> included in the packet.
>
> I'm new at this, so it may be something very simple. I did get it to
> work the other night after adding codebase="." to the part of
> of the html code. But now it's not helping. I feel I must have changed
> something in the Apache configuration.
>
> I tried searching the archives, but it doesn't seem set up well for
> searching - am I missing a search link somewhere?

--
Michael McGlothlin
http://www.plumbersstock.com/


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org



__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


michaelm at swplumb

Oct 25, 2007, 11:52 AM

Post #4 of 10 (174 views)
Permalink
Re: unexpected EOF on client side when Apache sends applet class [In reply to]

Are your timeout values set really low? I know I had an issue similar to
this some time back but I can't remember what my fix was.
> Didn't know about wget, thanks!. I just downloaded it and tried it:
>
> wget 192.168.1.159/helloapp.class
>
> It tried many times without success - here are the last two:
>
> Retrying.
>
> --14:04:40-- http://192.168.1.159/helloapp.class
> (try:19) => `helloapp.class.19'
> Connecting to 192.168.1.159:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 532 [application/octet-stream]
>
> 0% [ ] 0 --.--K/s
>
> 14:04:40 (0.00 B/s) - Connection closed at byte 0. Retrying.
>
> --14:04:40-- http://192.168.1.159/helloapp.class
> (try:20) => `helloapp.class.19'
> Connecting to 192.168.1.159:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 532 [application/octet-stream]
> helloapp.class.19 has sprung into existence.
> Giving up.
>
> - The packets look like the ones I was getting with the html code. It
> seems to send back all the info except for the data.
>
> I can upload other things in the directory. Ahhh - I made a small text
> file and named it 'test.class' to see if was a problem with the
> extension. That worked, but if I made the file larger - 475 bytes - it
> fails.
>
> So I'm thinking it has a problem with files larger than a few hundred
> bytes. Is there a setting for max data length or packet size?
>
> - Steve
>
>
>
>
> */Michael McGlothlin <michaelm[at]swplumb.com>/* wrote:
>
> Can you wget the applet file?
> > Apache 2.2.4 on Slax Linux, clients are win 2000 and win 98 with
> > Mozilla an IE
> >
> > I'm trying to get Apache on a Slax Linux machine to serve an
> applet to
> > a browser on a Windows PC.
> >
> > The html loads and displays; the applet is a simple 'hello
> world' app
> > that runs in appletviewer fine. html and class are in the htdocs
> > directory. hppd.conf was edited to allow to all.
> >
> > The PC requests the html, Apache delivers, ack, ack etc. PC
> requests
> > helloapp.class, Apache responds, but the PC shows errors in Java
> > Console and the applet does not run (applet notinited).
> >
> > errors:
> > load:class helloapp not found.
> > java.lang.ClassNotFoundException: helloapp
> > at ......
> > at ...
> > Caused by: java.io.IOException: unexpected EOF
> > at ...
> >
> > The tcp packet returned by Apache is:
> >
> > 0000 ...v.".....e..E.
> > 0010 .t*I[at].@........
> > 0020 ..P.(....C"..P.
> > 0030 ..xv..HTTP/1.1.2
> > 0040 00.OK..Date:.Thu
> > 0050 ,.25.Oct.2007.10
> > 0060 :16:04.GMT..Serv
> > 0070 er:.Apache/2.2.4
> > 0080 .(Unix).mod_ssl/
> > 0090 2.2.4.OpenSSL/0.
> > 00A0 9.8b.DAV/2..Last
> > 00B0 -Modified:.Thu,.
> > 00C0 25.Oct.2007.09:5
> > 00D0 8:21.GMT..ETag:.
> > 00E0 "220c-214-462de9
> > 00F0 40"..Accept-Rang
> > 0100 es:.bytes..Conte
> > 0110 nt-Length:.532..
> > 0120 Keep-Alive:.time
> > 0130 out=5,.max=100..
> >
> > The packet is 372 bytes but it says the Content-Length is 532
> >
> > This and the error suggest that the actual applet class is not
> being
> > included in the packet.
> >
> > I'm new at this, so it may be something very simple. I did get
> it to
> > work the other night after adding codebase="." to the part of
> > of the html code. But now it's not helping. I feel I must have
> changed
> > something in the Apache configuration.
> >
> > I tried searching the archives, but it doesn't seem set up well for
> > searching - am I missing a search link somewhere?
>
> --
> Michael McGlothlin
> http://www.plumbersstock.com/
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
> " from the digest: users-digest-unsubscribe[at]httpd.apache.org
> For additional commands, e-mail: users-help[at]httpd.apache.org
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>


--
Michael McGlothlin
Southwest Plumbing Supply


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


swsyah at yahoo

Oct 25, 2007, 12:05 PM

Post #5 of 10 (174 views)
Permalink
Re: unexpected EOF on client side when Apache sends applet class [In reply to]

I'll check into timeouts, any idea where they are set?

I verified it is due to data length, which could be time related. When the data part of the packet exceeds 256 bytes, it fails. If I simplify my applet class to get it down below 256 bytes (192) it loads. The 256 value makes me think it's a length problem, though it seems odd that the protocol doesn't deal with this. I guess I have more to learn...

It did work the other day though and I'm sure the data was over 256 bytes. Very strange.

- Steve


Michael McGlothlin <michaelm[at]swplumb.com> wrote: Are your timeout values set really low? I know I had an issue similar to
this some time back but I can't remember what my fix was.
> Didn't know about wget, thanks!. I just downloaded it and tried it:
>
> wget 192.168.1.159/helloapp.class
>
> It tried many times without success - here are the last two:
>
> Retrying.
>
> --14:04:40-- http://192.168.1.159/helloapp.class
> (try:19) => `helloapp.class.19'
> Connecting to 192.168.1.159:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 532 [application/octet-stream]
>
> 0% [ ] 0 --.--K/s
>
> 14:04:40 (0.00 B/s) - Connection closed at byte 0. Retrying.
>
> --14:04:40-- http://192.168.1.159/helloapp.class
> (try:20) => `helloapp.class.19'
> Connecting to 192.168.1.159:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 532 [application/octet-stream]
> helloapp.class.19 has sprung into existence.
> Giving up.
>
> - The packets look like the ones I was getting with the html code. It
> seems to send back all the info except for the data.
>
> I can upload other things in the directory. Ahhh - I made a small text
> file and named it 'test.class' to see if was a problem with the
> extension. That worked, but if I made the file larger - 475 bytes - it
> fails.
>
> So I'm thinking it has a problem with files larger than a few hundred
> bytes. Is there a setting for max data length or packet size?
>
> - Steve
>
>
>
>
> */Michael McGlothlin /* wrote:
>
> Can you wget the applet file?
> > Apache 2.2.4 on Slax Linux, clients are win 2000 and win 98 with
> > Mozilla an IE
> >
> > I'm trying to get Apache on a Slax Linux machine to serve an
> applet to
> > a browser on a Windows PC.
> >
> > The html loads and displays; the applet is a simple 'hello
> world' app
> > that runs in appletviewer fine. html and class are in the htdocs
> > directory. hppd.conf was edited to allow to all.
> >
> > The PC requests the html, Apache delivers, ack, ack etc. PC
> requests
> > helloapp.class, Apache responds, but the PC shows errors in Java
> > Console and the applet does not run (applet notinited).
> >
> > errors:
> > load:class helloapp not found.
> > java.lang.ClassNotFoundException: helloapp
> > at ......
> > at ...
> > Caused by: java.io.IOException: unexpected EOF
> > at ...
> >
> > The tcp packet returned by Apache is:
> >
> > 0000 ...v.".....e..E.
> > 0010 .t*I[at].@........
> > 0020 ..P.(....C"..P.
> > 0030 ..xv..HTTP/1.1.2
> > 0040 00.OK..Date:.Thu
> > 0050 ,.25.Oct.2007.10
> > 0060 :16:04.GMT..Serv
> > 0070 er:.Apache/2.2.4
> > 0080 .(Unix).mod_ssl/
> > 0090 2.2.4.OpenSSL/0.
> > 00A0 9.8b.DAV/2..Last
> > 00B0 -Modified:.Thu,.
> > 00C0 25.Oct.2007.09:5
> > 00D0 8:21.GMT..ETag:.
> > 00E0 "220c-214-462de9
> > 00F0 40"..Accept-Rang
> > 0100 es:.bytes..Conte
> > 0110 nt-Length:.532..
> > 0120 Keep-Alive:.time
> > 0130 out=5,.max=100..
> >
> > The packet is 372 bytes but it says the Content-Length is 532
> >
> > This and the error suggest that the actual applet class is not
> being
> > included in the packet.
> >
> > I'm new at this, so it may be something very simple. I did get
> it to
> > work the other night after adding codebase="." to the part of
> > of the html code. But now it's not helping. I feel I must have
> changed
> > something in the Apache configuration.
> >
> > I tried searching the archives, but it doesn't seem set up well for
> > searching - am I missing a search link somewhere?
>
> --
> Michael McGlothlin
> http://www.plumbersstock.com/
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
> " from the digest: users-digest-unsubscribe[at]httpd.apache.org
> For additional commands, e-mail: users-help[at]httpd.apache.org
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>


--
Michael McGlothlin
Southwest Plumbing Supply


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org



__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


michaelm at swplumb

Oct 25, 2007, 12:10 PM

Post #6 of 10 (174 views)
Permalink
Re: unexpected EOF on client side when Apache sends applet class [In reply to]

In httpd.conf searching for 'timeout' should find a couple. Usually the
main timeout should be set for 300. I also assume the system lets
non-http traffic of > 256 bytes through without problem? If you have a
non-applet will larger files transfer okay?
> I'll check into timeouts, any idea where they are set?
>
> I verified it is due to data length, which could be time related. When
> the data part of the packet exceeds 256 bytes, it fails. If I simplify
> my applet class to get it down below 256 bytes (192) it loads. The 256
> value makes me think it's a length problem, though it seems odd that
> the protocol doesn't deal with this. I guess I have more to learn...
>
> It did work the other day though and I'm sure the data was over 256
> bytes. Very strange.
>
> - Steve
>
>
> */Michael McGlothlin <michaelm[at]swplumb.com>/* wrote:
>
> Are your timeout values set really low? I know I had an issue
> similar to
> this some time back but I can't remember what my fix was.
> > Didn't know about wget, thanks!. I just downloaded it and tried it:
> >
> > wget 192.168.1.159/helloapp.class
> >
> > It tried many times without success - here are the last two:
> >
> > Retrying.
> >
> > --14:04:40-- http://192.168.1.159/helloapp.class
> > (try:19) => `helloapp.class.19'
> > Connecting to 192.168.1.159:80... connected.
> > HTTP request sent, awaiting response... 200 OK
> > Length: 532 [application/octet-stream]
> >
> > 0% [ ] 0 --.--K/s
> >
> > 14:04:40 (0.00 B/s) - Connection closed at byte 0. Retrying.
> >
> > --14:04:40-- http://192.168.1.159/helloapp.class
> > (try:20) => `helloapp.class.19'
> > Connecting to 192.168.1.159:80... connected.
> > HTTP request sent, awaiting response... 200 OK
> > Length: 532 [application/octet-stream]
> > helloapp.class.19 has sprung into existence.
> > Giving up.
> >
> > - The packets look like the ones I was getting with the html
> code. It
> > seems to send back all the info except for the data.
> >
> > I can upload other things in the directory. Ahhh - I made a
> small text
> > file and named it 'test.class' to see if was a problem with the
> > extension. That worked, but if I made the file larger - 475
> bytes - it
> > fails.
> >
> > So I'm thinking it has a problem with files larger than a few
> hundred
> > bytes. Is there a setting for max data length or packet size?
> >
> > - Steve
> >
> >
> >
> >
> > */Michael McGlothlin /* wrote:
> >
> > Can you wget the applet file?
> > > Apache 2.2.4 on Slax Linux, clients are win 2000 and win 98 with
> > > Mozilla an IE
> > >
> > > I'm trying to get Apache on a Slax Linux machine to serve an
> > applet to
> > > a browser on a Windows PC.
> > >
> > > The html loads and displays; the applet is a simple 'hello
> > world' app
> > > that runs in appletviewer fine. html and class are in the htdocs
> > > directory. hppd.conf was edited to allow to all.
> > >
> > > The PC requests the html, Apache delivers, ack, ack etc. PC
> > requests
> > > helloapp.class, Apache responds, but the PC shows errors in Java
> > > Console and the applet does not run (applet notinited).
> > >
> > > errors:
> > > load:class helloapp not found.
> > > java.lang.ClassNotFoundException: helloapp
> > > at ......
> > > at ...
> > > Caused by: java.io.IOException: unexpected EOF
> > > at ...
> > >
> > > The tcp packet returned by Apache is:
> > >
> > > 0000 ...v.".....e..E.
> > > 0010 .t*I[at].@........
> > > 0020 ..P.(....C"..P.
> > > 0030 ..xv..HTTP/1.1.2
> > > 0040 00.OK..Date:.Thu
> > > 0050 ,.25.Oct.2007.10
> > > 0060 :16:04.GMT..Serv
> > > 0070 er:.Apache/2.2.4
> > > 0080 .(Unix).mod_ssl/
> > > 0090 2.2.4.OpenSSL/0.
> > > 00A0 9.8b.DAV/2..Last
> > > 00B0 -Modified:.Thu,.
> > > 00C0 25.Oct.2007.09:5
> > > 00D0 8:21.GMT..ETag:.
> > > 00E0 "220c-214-462de9
> > > 00F0 40"..Accept-Rang
> > > 0100 es:.bytes..Conte
> > > 0110 nt-Length:.532..
> > > 0120 Keep-Alive:.time
> > > 0130 out=5,.max=100..
> > >
> > > The packet is 372 bytes but it says the Content-Length is 532
> > >
> > > This and the error suggest that the actual applet class is not
> > being
> > > included in the packet.
> > >
> > > I'm new at this, so it may be something very simple. I did get
> > it to
> > > work the other night after adding codebase="." to the part of
> > > of the html code. But now it's not helping. I feel I must have
> > changed
> > > something in the Apache configuration.
> > >
> > > I tried searching the archives, but it doesn't seem set up
> well for
> > > searching - am I missing a search link somewhere?
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


solprovider at apache

Oct 25, 2007, 12:19 PM

Post #7 of 10 (174 views)
Permalink
Re: unexpected EOF on client side when Apache sends applet class [In reply to]

How did you transfer the class file to the server? Did you use ASCII
mode FTP instead of binary mode? The unexpected file size may be
because the file has been corrupted. That would cause EOF errors.
Verify the class file on the server is correct -- maybe comparing MD5
checksums. Or transfer the source and compile on the server.

Check out PSCP from the putty suite of network tools for transferring
files from Windows to Linux (openssh). I have a batch file in the
SendTo directory so I can right-click/send any file to my Linux home
directory.

solprovider

On 10/25/07, steve sawtelle <swsyah[at]yahoo.com> wrote:
> Didn't know about wget, thanks!. I just downloaded it and tried it:
> wget 192.168.1.159/helloapp.class
> It tried many times without success - here are the last two:
> Retrying.
> --14:04:40-- http://192.168.1.159/helloapp.class
> (try:19) => `helloapp.class.19'
> Connecting to 192.168.1.159:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 532 [application/octet-stream]
>
> 0% [ ] 0
> --.--K/s
>
> 14:04:40 (0.00 B/s) - Connection closed at byte 0. Retrying.
>
> --14:04:40-- http://192.168.1.159/helloapp.class
> (try:20) => `helloapp.class.19'
> Connecting to 192.168.1.159:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 532 [application/octet-stream]
> helloapp.class.19 has sprung into existence.
> Giving up.
>
> - The packets look like the ones I was getting with the html code. It seems
> to send back all the info except for the data.
>
> I can upload other things in the directory. Ahhh - I made a small text file
> and named it 'test.class' to see if was a problem with the extension. That
> worked, but if I made the file larger - 475 bytes - it fails.
>
> So I'm thinking it has a problem with files larger than a few hundred bytes.
> Is there a setting for max data length or packet size?
>
> - Steve
>
> Michael McGlothlin <michaelm[at]swplumb.com> wrote:
> Can you wget the applet file?
> > Apache 2.2.4 on Slax Linux, clients are win 2000 and win 98 with
> > Mozilla an IE
> >
> > I'm trying to get Apache on a Slax Linux machine to serve an applet to
> > a browser on a Windows PC.
> >
> > The html loads and displays; the applet is a simple 'hello world' app
> > that runs in appletviewer fine. html and class are in the htdocs
> > directory. hppd.conf was edited to allow to all.
> >
> > The PC requests the html, Apache delivers, ack, ack etc. PC requests
> > helloapp.class, Apache responds, but the PC shows errors in Java
> > Console and the applet does not run (applet notinited).
> >
> > errors:
> > load:class helloapp not found.
> > java.lang.ClassNotFoundException: helloapp
> > at ......
> > at ...
> > Caused by: java.io.IOException: unexpected EOF
> > at ...
> >
> > The tcp packet returned by Apache is:
> >
HTTP/1.1 200.OK..
Date: Thu, 25 Oct 2007 10:16:04 GMT
Server: Apache/2.2.4.(Unix) mod_ssl/2.2.4 OpenSSL/0.9.8b.DAV/2
Last-Modified: Thu, 25 Oct 2007 09:58:21.GMT
ETag: "220c-214-462de940"
Accept-Ranges: bytes
Content-Length: 532
Keep-Alive: timeout=5, max=100
> >
> > The packet is 372 bytes but it says the Content-Length is 532
> >
> > This and the error suggest that the actual applet class is not being
> > included in the packet.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


swsyah at yahoo

Oct 25, 2007, 4:36 PM

Post #8 of 10 (166 views)
Permalink
Re: unexpected EOF on client side when Apache sends applet class [In reply to]

In response to solprovider:

I'm compiling on the server, so that should not be a problem?

and to Michael:

"In httpd.conf searching for 'timeout' should find a couple. Usually the
main timeout should be set for 300. "

I need to check that tomorrow.

"I also assume the system lets non-http traffic of > 256 bytes through
without problem? If you have a non-applet will larger files transfer okay?"

I actually tested the problem with text files using wget, so FTP transfers are affected as well.
I then verified the problem by making an empty applet to get it's size below
256 bytes and that transferred via the browser fine.

I'm pretty certain this problem is due to data over 256 bytes. Is there anything in Apache that would
create that limit? Or isn't there a mechanism in the server to break a large file up into several packets?



solprovider[at]apache.org wrote: How did you transfer the class file to the server? Did you use ASCII
mode FTP instead of binary mode? The unexpected file size may be
because the file has been corrupted. That would cause EOF errors.
Verify the class file on the server is correct -- maybe comparing MD5
checksums. Or transfer the source and compile on the server.

Check out PSCP from the putty suite of network tools for transferring
files from Windows to Linux (openssh). I have a batch file in the
SendTo directory so I can right-click/send any file to my Linux home
directory.

solprovider

On 10/25/07, steve sawtelle wrote:
> Didn't know about wget, thanks!. I just downloaded it and tried it:
> wget 192.168.1.159/helloapp.class
> It tried many times without success - here are the last two:
> Retrying.
> --14:04:40-- http://192.168.1.159/helloapp.class
> (try:19) => `helloapp.class.19'
> Connecting to 192.168.1.159:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 532 [application/octet-stream]
>
> 0% [ ] 0
> --.--K/s
>
> 14:04:40 (0.00 B/s) - Connection closed at byte 0. Retrying.
>
> --14:04:40-- http://192.168.1.159/helloapp.class
> (try:20) => `helloapp.class.19'
> Connecting to 192.168.1.159:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 532 [application/octet-stream]
> helloapp.class.19 has sprung into existence.
> Giving up.
>
> - The packets look like the ones I was getting with the html code. It seems
> to send back all the info except for the data.
>
> I can upload other things in the directory. Ahhh - I made a small text file
> and named it 'test.class' to see if was a problem with the extension. That
> worked, but if I made the file larger - 475 bytes - it fails.
>
> So I'm thinking it has a problem with files larger than a few hundred bytes.
> Is there a setting for max data length or packet size?
>
> - Steve
>
> Michael McGlothlin wrote:
> Can you wget the applet file?
> > Apache 2.2.4 on Slax Linux, clients are win 2000 and win 98 with
> > Mozilla an IE
> >
> > I'm trying to get Apache on a Slax Linux machine to serve an applet to
> > a browser on a Windows PC.
> >
> > The html loads and displays; the applet is a simple 'hello world' app
> > that runs in appletviewer fine. html and class are in the htdocs
> > directory. hppd.conf was edited to allow to all.
> >
> > The PC requests the html, Apache delivers, ack, ack etc. PC requests
> > helloapp.class, Apache responds, but the PC shows errors in Java
> > Console and the applet does not run (applet notinited).
> >
> > errors:
> > load:class helloapp not found.
> > java.lang.ClassNotFoundException: helloapp
> > at ......
> > at ...
> > Caused by: java.io.IOException: unexpected EOF
> > at ...
> >
> > The tcp packet returned by Apache is:
> >
HTTP/1.1 200.OK..
Date: Thu, 25 Oct 2007 10:16:04 GMT
Server: Apache/2.2.4.(Unix) mod_ssl/2.2.4 OpenSSL/0.9.8b.DAV/2
Last-Modified: Thu, 25 Oct 2007 09:58:21.GMT
ETag: "220c-214-462de940"
Accept-Ranges: bytes
Content-Length: 532
Keep-Alive: timeout=5, max=100
> >
> > The packet is 372 bytes but it says the Content-Length is 532
> >
> > This and the error suggest that the actual applet class is not being
> > included in the packet.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org



__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


solprovider at apache

Oct 26, 2007, 12:33 PM

Post #9 of 10 (164 views)
Permalink
Re: unexpected EOF on client side when Apache sends applet class [In reply to]

This problem affects multiple files and affects all files larger than
256 bytes. This proves the problem is not the class file. Even if
Apache httpd has a setting to limit the size of outbound transfers, I
doubt you accidentally configured it.

This issue sounds like a network problem, usually bad hardware -- a
network card, switch, or router is broken. This can also be caused by
bad drivers, especially when binding network cards. Since WGET
failed from the server, the problem must be in the server (eliminating
external switches and routers.)

Slax is a small live-CD Linux distribution based on Slackware. Even
though a "server" edition exits, small size is the priority. You
might try a more full-sized server distro with more drivers.

The next troubleshooting step is to prove the problem is or is not
with Apache httpd. Test with another server program such as Tomcat or
Jetty. I recommend jetty-6.1.5 because jetty-6.1.6rc0 is broken and
Tomcat is larger. Just download from:
http://dist.codehaus.org/jetty/
Unzip the download, copy your class file to the test directory, and:
wget http://localhost:8080/test/helloapp.class

solprovider

On 10/25/07, steve sawtelle <swsyah[at]yahoo.com> wrote:
> In response to solprovider:
> I'm compiling on the server, so that should not be a problem?
>
> and to Michael:
> "In httpd.conf searching for 'timeout' should find a couple. Usually the
> main timeout should be set for 300. "
>
> I need to check that tomorrow.
> "I also assume the system lets non-http traffic of > 256 bytes through
> without problem? If you have a non-applet will larger files transfer okay?"
>
> I actually tested the problem with text files using wget, so FTP transfers
> are affected as well.
> I then verified the problem by making an empty applet to get it's size below
> 256 bytes and that transferred via the browser fine.
>
> I'm pretty certain this problem is due to data over 256 bytes. Is there
> anything in Apache that would
> create that limit? Or isn't there a mechanism in the server to break a large
> file up into several packets?
> On 10/25/07, steve sawtelle wrote:
> > Didn't know about wget, thanks!. I just downloaded it and tried it:
> > wget 192.168.1.159/helloapp.class
> > It tried many times without success - here are the last two:
> > Retrying.
> > --14:04:40-- http://192.168.1.159/helloapp.class
> > (try:19) => `helloapp.class.19'
> > Connecting to 192.168.1.159:80... connected.
> > HTTP request sent, awaiting response... 200 OK
> > Length: 532 [application/octet-stream]
> >
> > 0% [ ] 0
> > --.--K/s
> >
> > 14:04:40 (0.00 B/s) - Connection closed at byte 0. Retrying.
> >
> > --14:04:40-- http://192.168.1.159/helloapp.class
> > (try:20) => `helloapp.class.19'
> > Connecting to 192.168.1.159:80... connected.
> > HTTP request sent, awaiting response... 200 OK
> > Length: 532 [application/octet-stream]
> > helloapp.class.19 has sprung into existence.
> > Giving up.
> >
> > - The packets look like the ones I was getting with the html code. It
> seems
> > to send back all the info except for the data.
> >
> > I can upload other things in the directory. Ahhh - I made a small text
> file
> > and named it 'test.class' to see if was a problem with the extension. That
> > worked, but if I made the file larger - 475 bytes - it fails.
> >
> > So I'm thinking it has a problem with files larger than a few hundred
> bytes.
> > Is there a setting for max data length or packet size?
> >
> > - Steve
> >
> > Michael McGlothlin wrote:
> > Can you wget the applet file?
> > > Apache 2.2.4 on Slax Linux, clients are win 2000 and win 98 with
> > > Mozilla an IE
> > >
> > > I'm trying to get Apache on a Slax Linux machine to serve an applet to
> > > a browser on a Windows PC.
> > >
> > > The html loads and displays; the applet is a simple 'hello world' app
> > > that runs in appletviewer fine. html and class are in the htdocs
> > > directory. hppd.conf was edited to allow to all.
> > >
> > > The PC requests the html, Apache delivers, ack, ack etc. PC requests
> > > helloapp.class, Apache responds, but the PC shows errors in Java
> > > Console and the applet does not run (applet notinited).
> > >
> > > errors:
> > > load:class helloapp not found.
> > > java.lang.ClassNotFoundException: helloapp
> > > at ......
> > > at ...
> > > Caused by: java.io.IOException: unexpected EOF
> > > at ...
> > >
> > > The tcp packet returned by Apache is:
> > >
> HTTP/1.1 200.OK..
> Date: Thu, 25 Oct 2007 10:16:04 GMT
> Server: Apache/2.2.4.(Unix) mod_ssl/2.2.4 OpenSSL/0.9.8b.DAV/2
> Last-Modified: Thu, 25 Oct 2007 09:58:21.GMT
> ETag: "220c-214-462de940"
> Accept-Ranges: bytes
> Content-Length: 532
> Keep-Alive: timeout=5, max=100
> > >
> > > The packet is 372 bytes but it says the Content-Length is 532
> > >
> > > This and the error suggest that the actual applet class is not being
> > > included in the packet.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


swsyah at yahoo

Oct 26, 2007, 7:42 PM

Post #10 of 10 (164 views)
Permalink
Re: unexpected EOF on client side when Apache sends applet class [In reply to]

I have some more information on this problem. I tried running the applet on Slax Server which uses 2.04 Apache rather than the 2.2.4 I was running on standard Slax. It worked fine there. I also found the same problem mentioned on another forum that was fixed by using the earlier Apache, also on a Debian Linux system:

http://www.unixadmintalk.com/f44/problem-running-apache-2-2-4-debian-linux-3-0-a-260280/

Thanks all for the help, I think I'll use the 2.04 version and see how that works out.



__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.