Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Help with Java , JFileUpload


  • Please log in to reply

#1
Jay Worner

Jay Worner

    Member

  • Member
  • PipPip
  • 55 posts
Hi..

Im totally new to java.

I know little to nothing about Java, but I know how to follow direction and I appreciate any help anyone gives!

I currently use a document manager web software program called
Omnistar Drive that utilizes JFileUpload Version 2.0

On my home network, I have a 30mb dl internet connection, a linksys wrt54g router, connected to two PCs (1 vista 64bit, 1 xp sp3) and 1 laptop (windows vista 32bit).

It does not matter which machine I use, when I try to upload the files I need to , which are typically anywhere inbetween 20-55mb a piece, the connection times out within the first 3-10 chunks.
Here is the the last half of text from the console:

INFO: Split completed 11/40
Feb 16, 2009 8:31:50 PM jfileupload.transfer.client.http.HTTPUploadTransfer transfer
INFO: Upload (POST) started : C:\Users\Chad\Desktop\audits_feb_1_2_zipped\turningpointdebtsettlement.zip
Feb 16, 2009 8:31:56 PM jfileupload.transfer.client.http.HTTPUploadTransfer transfer
INFO: Upload Status code = 200
Feb 16, 2009 8:31:56 PM org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
Feb 16, 2009 8:31:56 PM jfileupload.transfer.client.http.HTTPUploadTransfer transfer
INFO: Upload completed
Feb 16, 2009 8:31:56 PM jfileupload.transfer.client.http.HTTPUploadTransfer splitAndTransfer
INFO: Split started 12/40
Feb 16, 2009 8:31:56 PM jfileupload.transfer.client.http.HTTPUploadTransfer splitAndTransfer
INFO: Split completed 12/40
Feb 16, 2009 8:31:56 PM jfileupload.transfer.client.http.HTTPUploadTransfer transfer
INFO: Upload (POST) started : C:\Users\Chad\Desktop\audits_feb_1_2_zipped\turningpointdebtsettlement.zip
Feb 16, 2009 8:32:01 PM jfileupload.transfer.client.http.HTTPUploadTransfer transfer
INFO: Upload Status code = 200
Feb 16, 2009 8:32:01 PM org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
Feb 16, 2009 8:32:01 PM jfileupload.transfer.client.http.HTTPUploadTransfer transfer
INFO: Upload completed
Feb 16, 2009 8:32:01 PM jfileupload.transfer.client.http.HTTPUploadTransfer splitAndTransfer
INFO: Split started 13/40
Feb 16, 2009 8:32:01 PM jfileupload.transfer.client.http.HTTPUploadTransfer splitAndTransfer
INFO: Split completed 13/40
Feb 16, 2009 8:32:01 PM jfileupload.transfer.client.http.HTTPUploadTransfer transfer
INFO: Upload (POST) started : C:\Users\Chad\Desktop\audits_feb_1_2_zipped\turningpointdebtsettlement.zip
Feb 16, 2009 8:32:22 PM jfileupload.transfer.client.http.HTTPUploadTransfer transfer
SEVERE: java.net.ConnectException: Connection timed out: connect
Feb 16, 2009 8:32:22 PM jfileupload.transfer.client.http.HTTPUploadTransfer splitAndTransfer
SEVERE: jfileupload.transfer.client.core.ClientException: java.net.ConnectException: Connection timed out: connect
Feb 16, 2009 8:32:22 PM jfileupload.transfer.client.http.HTTPUploadTransfer run
INFO: Upload failed



Furthermore, when I go to a friends house, the files upload just fine. I have contacted both my ISP and Lynksys as well as Omnistar to no prevail. Can anyone shed some light on this issue?
  • 0

Advertisements


#2
Metallica

Metallica

    Spyware Veteran

  • GeekU Moderator
  • 33,101 posts
Hi Jay,

I moved your question to a more appropriate forum.

Also I want to guess at the problem.
Your linksys router gets a reply on a different port then it expects and doesn't know where to send the reply.
As a consequence the JFileUpload program does not know how big the chunks are and advises to use getResponseBodyAsStream, because that allows for bigger chunks.
I found this in the Linksys manual:

7. I need to set up online game hosting or use other Internet applications.
If you want to play online games or use Internet applications, most will work without doing any port
forwarding or DMZ hosting. There may be cases when you want to host an online game or Internet
application. This would require you to set up the Router to deliver incoming packets or data to a specific
computer. This also applies to the Internet applications you are using. The best way to get the information on
what port services to use is to go to the website of the online game or application you want to use. Follow
these steps to set up online game hosting or use a certain Internet application:
1. Access the Router’s web interface by going to http://192.168.1.1 or the IP address of the Router. Go to
the Applications & Gaming => Port Range Forward tab.
2. Enter any name you want to use for the Application.
3. Enter the Start and End Port range of the service you are using. For example, if you want to host
Unreal Tournament (UT), you would enter the range 7777 to 27900.
4. Select the protocol(s) you will be using, TCP and/or UDP.
5. Enter the IP address of the PC or network device that you want the port server to go to. For example,
if the web server’s Ethernet adapter IP address is 192.168.1.100, you would enter 100 in the field
provided. Check “Appendix E: Finding the MAC Address and IP Address for Your Ethernet Adapter” for
details on getting an IP address.
6. Check the Enable option for the port services you want to use. Consider the example below:
When you have completed the configuration, click the Save Settings button.


I think you need to do something similar for this application. Omnistar should be able to tell you which port.
  • 0

#3
Jay Worner

Jay Worner

    Member

  • Topic Starter
  • Member
  • PipPip
  • 55 posts
Thank you so much for the help.

Omnistar is very slow in getting this issue resolved, but based on what you said:

I had already contacted lynksys, and they assured me that computers wired to my router, have no resctrictions and simply pass through directly to the modem as opposed to wirlessly.
Nevertheless, I get the same problem connecting directly to my modem bypassing the router.

On the jfileupload website, on their forum, a support guy suggests trying to edit the retry failed parameters, but I don't see this to be the problem. I dont have this file he mentions, unless it is packed in jupload.jar
and I do not know how to unpack that to get to the files within it.

I will call omnistar and try to get that port and give it a go anyway thank you!
  • 0

#4
Metallica

Metallica

    Spyware Veteran

  • GeekU Moderator
  • 33,101 posts
Keep us posted, because I think this is where it goes wrong initially:

WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.


If that works on your friends computer then the error has to be caused by reply packets being delivered wrong or not at all.
At least, that's the only thing I can think off.
  • 0

#5
Jay Worner

Jay Worner

    Member

  • Topic Starter
  • Member
  • PipPip
  • 55 posts
Could a faulty, lemon modem be the cuplrite...

Comcast did mention they found it very unusuall my modem was reseting itself sometimes. Its brand new, but who knows?

For the record, my i have no problems anywhere else. I can upload via FTP perfectly and run pages very quickly.

Do you know of another website, that I can try to use jfileupload to see if it works there.

Edited by Jay Worner, 18 February 2009 - 09:38 AM.

  • 0

#6
Metallica

Metallica

    Spyware Veteran

  • GeekU Moderator
  • 33,101 posts

Could a faulty, lemon modem be the cuplrite...

That is a possibility. A possible cause for packets not arriving, so..

Do you know of another website, that I can try to use jfileupload to see if it works there.


Sorry, no.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP