AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

network is hindering my applet
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help
View previous topic :: View next topic  
Author Message
Redbeard
Guest





PostPosted: Sat Oct 29, 2005 2:29 am    Post subject: network is hindering my applet Reply with quote



I teach high school math. Over the last few years I have written some
applets that I use in my job. Three of those use data from files that
reside on the server with the applets. Two load data from text files,
while the third loads a picture.

The applets have worked for years. But over the summer, my IT
department did something to our servers and they no longer work. For
some reason, the applets no longer load the necessary files.

On a school budget, our IT dept. is severely limited. They are
strictly Microsoft. Nobody really knows anything about Java, so none
have any idea what they might have done which would lead to this?

I know that I'm grasping at straws, but does anyone have any ideas?

Back to top
Chris Smith
Guest





PostPosted: Sat Oct 29, 2005 3:53 am    Post subject: Re: network is hindering my applet Reply with quote



Redbeard <tom.cowdery (AT) bigfoot (DOT) com> wrote:
Quote:
The applets have worked for years. But over the summer, my IT
department did something to our servers and they no longer work. For
some reason, the applets no longer load the necessary files.

On a school budget, our IT dept. is severely limited. They are
strictly Microsoft. Nobody really knows anything about Java, so none
have any idea what they might have done which would lead to this?

I know that I'm grasping at straws, but does anyone have any ideas?

Nope, no ideas. If you tell us what you mean by "no longer work", it
might be helpful. Any error messages from the Java console would be
great.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation

Back to top
Hal Rosser
Guest





PostPosted: Sat Oct 29, 2005 5:54 am    Post subject: Re: network is hindering my applet Reply with quote




"Redbeard" <tom.cowdery (AT) bigfoot (DOT) com> wrote

Quote:
I teach high school math. Over the last few years I have written some
applets that I use in my job. Three of those use data from files that
reside on the server with the applets. Two load data from text files,
while the third loads a picture.

The applets have worked for years. But over the summer, my IT
department did something to our servers and they no longer work. For
some reason, the applets no longer load the necessary files.

On a school budget, our IT dept. is severely limited. They are
strictly Microsoft. Nobody really knows anything about Java, so none
have any idea what they might have done which would lead to this?

I know that I'm grasping at straws, but does anyone have any ideas?

Sounds like a permissions issue on the files being *not* accessed.




Back to top
Redbeard
Guest





PostPosted: Sat Oct 29, 2005 9:33 pm    Post subject: Re: network is hindering my applet Reply with quote

Quote:
Nope, no ideas. If you tell us what you mean by "no longer work", it
might be helpful. Any error messages from the Java console would be
great.
They don't load the files. I get a FileNotFoundException like the one

shown below.
IOException: java.io.FileNotFoundException:
http://www.district87.org/bhs/math/practice/Factor/basic.dsm

In this case, basic.dsm is a text file that contains data used by the
applet. In the example shown, the file is in the same folder as the
applet. One of the other applets (which I wrote later) stores the
datafiles in a subdirectory. But all of the data files are exactly
where they were last school year when the applets were working. In
fact, I demonstrated the applets to some colleagues from other schools
over the summer, and they were working fine.

But over the summer break our IT dept. brought in a hired gun from MS
to help upgrade our network. He's gone, and nobody is sure what he
might have changed that would have caused my applets to stop finding
their data files.


Back to top
andreas kinell
Guest





PostPosted: Sat Oct 29, 2005 11:43 pm    Post subject: Re: network is hindering my applet Reply with quote


"Redbeard" <tom.cowdery (AT) bigfoot (DOT) com> wrote:
news:1130621597.875424.276860 (AT) g14g2000cwa (DOT) googlegroups.com...
Quote:
Nope, no ideas. If you tell us what you mean by "no longer work", it
might be helpful. Any error messages from the Java console would be
great.
They don't load the files. I get a FileNotFoundException like the one
shown below.
IOException: java.io.FileNotFoundException:
http://www.district87.org/bhs/math/practice/Factor/basic.dsm

In this case, basic.dsm is a text file that contains data used by the
applet. In the example shown, the file is in the same folder as the
applet. One of the other applets (which I wrote later) stores the
datafiles in a subdirectory. But all of the data files are exactly
where they were last school year when the applets were working. In
fact, I demonstrated the applets to some colleagues from other schools
over the summer, and they were working fine.

But over the summer break our IT dept. brought in a hired gun from MS
to help upgrade our network. He's gone, and nobody is sure what he
might have changed that would have caused my applets to stop finding
their data files.


Well, when I click on your link I get an error "page not found".
Maybe the directory just changed?
In your case, the basic.dsm is in the same directory as the applet, so why
don't you refer to the file relatively?

"./basic.dsm"

the other applets use:

"<subdirectory_name>/<filename>"

to access the file. Don't specify the whole path just for the reason that it
will be broken easily when changing the directory structure.

andreas



Back to top
Roedy Green
Guest





PostPosted: Sun Oct 30, 2005 4:54 am    Post subject: Re: network is hindering my applet Reply with quote

On 28 Oct 2005 19:29:39 -0700, "Redbeard" <tom.cowdery (AT) bigfoot (DOT) com>
wrote, quoted or indirectly quoted someone who said :

Quote:
On a school budget, our IT dept. is severely limited. They are
strictly Microsoft. Nobody really knows anything about Java, so none
have any idea what they might have done which would lead to this?

Look at the console stack traces for hints.

I suspect you are getting in trouble with some sort of security
violation.

You must put the datafiles "downstream" of the webpages that have
applets in them that read them. In other words in the same directory
or in a child or grandchild directory of that directory.

Otherwise you must sign the applet.

In many cases the easy way out of this is to bundle the datafiles as
resources in the jar and get at them with getResourceAsStream.

See http://mindprod.com/jgloss/applet.html
http://mindprod.com/jgloss/signedapplets.html
http://mindprod.com/jgloss/console.html
http://mindprod.com/jgloss/resource.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Back to top
Roedy Green
Guest





PostPosted: Sun Oct 30, 2005 4:55 am    Post subject: Re: network is hindering my applet Reply with quote

On Sat, 29 Oct 2005 01:54:10 -0400, "Hal Rosser"
<hmrosser (AT) bellsouth (DOT) net> wrote, quoted or indirectly quoted someone
who said :

Quote:
Sounds like a permissions issue on the files being *not* accessed.
try downloading the file with the browser. Case sensitive.

--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Back to top
Redbeard
Guest





PostPosted: Sun Oct 30, 2005 11:11 pm    Post subject: Re: network is hindering my applet Reply with quote

andreas kinell wrote:
Quote:
"Redbeard" <tom.cowdery (AT) bigfoot (DOT) com> wrote:
news:1130621597.875424.276860 (AT) g14g2000cwa (DOT) googlegroups.com...
Nope, no ideas. If you tell us what you mean by "no longer work", it
might be helpful. Any error messages from the Java console would be
great.
They don't load the files. I get a FileNotFoundException like the one
shown below.
IOException: java.io.FileNotFoundException:
http://www.district87.org/bhs/math/practice/Factor/basic.dsm

In this case, basic.dsm is a text file that contains data used by the
applet. In the example shown, the file is in the same folder as the
applet. One of the other applets (which I wrote later) stores the
datafiles in a subdirectory. But all of the data files are exactly
where they were last school year when the applets were working. In
fact, I demonstrated the applets to some colleagues from other schools
over the summer, and they were working fine.

But over the summer break our IT dept. brought in a hired gun from MS
to help upgrade our network. He's gone, and nobody is sure what he
might have changed that would have caused my applets to stop finding
their data files.


Well, when I click on your link I get an error "page not found".
Maybe the directory just changed?
I hadn't tried that myself. I got a message "The request is not

supported". When I tried to list the directory, I got the message
"This Virtual Directory does not allow contents to be listed."

I'm absolutely certain the files are there, as I have opened up the
website in Frontpage and checked the contents. Any idea what a
"virtual directory" is, or if it could be the root of my problem?

Quote:
In your case, the basic.dsm is in the same directory as the applet, so why
don't you refer to the file relatively?

"./basic.dsm"
That is how I access the files.


Quote:
the other applets use:

"<subdirectory_name>/<filename>"
ditto. This is how it is done.


Quote:
to access the file. Don't specify the whole path just for the reason that it
will be broken easily when changing the directory structure.
I don't use absolute URL's. That is why I'm so puzzled by this

problem. Over the years, they have switched servers before for various
reasons (reorganization, overcrowding, one crashed and burned, etc.)
and my applets have continued to work just fine. But whatever they did
this time is making impossible for the applet to find the files even
though I'm certain that they are there.


Back to top
Redbeard
Guest





PostPosted: Sun Oct 30, 2005 11:20 pm    Post subject: Re: network is hindering my applet Reply with quote

Here is the whole stack. I don't see anything in there security
related - do you?
IOException: java.io.FileNotFoundException:
http://www.district87.org/bhs/math/practice/Factor/basic.dsm
Exception in thread "AWT-EventQueue-3" java.lang.NullPointerException
at PracticeProblems.getRandomProblem(PracticeProblems.java:62)
at FactorProblems.selectProblem(FactorProblems.java:138)
at FactorProblems.getSimplifiedPolynomial(FactorProblems.java:122)
at FactorProblems.nextProblemButtonPushed(FactorProblems.java:260)
at FactorProblems.start(FactorProblems.java:115)
at Factor$StartButtonActions.actionPerformed(Factor.java:209)
at java.awt.Button.processActionEvent(Unknown Source)
at java.awt.Button.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Quote:
You must put the datafiles "downstream" of the webpages that have
applets in them that read them. In other words in the same directory
or in a child or grandchild directory of that directory.
That is where they are. This one has the files right in the directory

with the applet. One of the others stores them in a child folder.

Again, these applets worked fine for years and I haven't changed
anything. I just found out a few days ago that they aren't loading
those text files any more. The last time I'd used them, they were
working.

Quote:
try downloading the file with the browser. Case sensitive.
As mentioned in my other reply, I get a message that says "The request

is not supported"

Quote:
In many cases the easy way out of this is to bundle the datafiles as
resources in the jar and get at them with getResourceAsStream.
Thanks for the suggestion. If nothing else works, I'll have to

consider that.


Back to top
Andrew Thompson
Guest





PostPosted: Mon Oct 31, 2005 4:19 am    Post subject: Re: network is hindering my applet Reply with quote

Redbeard wrote:

Quote:
Here is the whole stack. I don't see anything in there security
related - do you?
IOException: java.io.FileNotFoundException:
http://www.district87.org/bhs/math/practice/Factor/basic.dsm

This is completely unastounding.


As other posters have noted THAT FILE IS MISSING.
It produces a '404' - not found.

Try the directory itself and you get a 403 - Forbidden.

Back to top
Roedy Green
Guest





PostPosted: Mon Oct 31, 2005 4:35 am    Post subject: Re: network is hindering my applet Reply with quote

On 30 Oct 2005 15:20:35 -0800, "Redbeard" <tom.cowdery (AT) bigfoot (DOT) com>
wrote, quoted or indirectly quoted someone who said :

Quote:
http://www.district87.org/bhs/math/practice/Factor/basic.dsm

When I put this into my browser I got:
"The request is not supported."

So it sounds as if your server is refusing to serve "dsm" files.

Ask your administrator to add support for them, telling him the MIME
to use.

See http://mindprod.com/jgloss/mime.html
http://mindprod.com/jgloss/htaccess.html


If he says "no", ask what extensions does he recommend for a raw byte
stream. e.g. .dat. then change the filenames in your code and on the
server.

If he stares at you blankly, revert to plan B. Put the files as
resources in the jar.




--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Back to top
Redbeard
Guest





PostPosted: Mon Oct 31, 2005 1:37 pm    Post subject: Re: network is hindering my applet Reply with quote


Andrew Thompson wrote:
Quote:
Redbeard wrote:

Here is the whole stack. I don't see anything in there security
related - do you?
IOException: java.io.FileNotFoundException:
http://www.district87.org/bhs/math/practice/Factor/basic.dsm

This is completely unastounding.


As other posters have noted THAT FILE IS MISSING.
It produces a '404' - not found.

But it is NOT missing - that is what puzzles me. I can open up the
website in Frontpage and see it there.

However, I find it interesting that you are getting a '404' error. I
don't. I get "The request is not supported.".


Back to top
Redbeard
Guest





PostPosted: Mon Oct 31, 2005 1:41 pm    Post subject: Re: network is hindering my applet Reply with quote

Thanks for the suggestion.

The .dsm extention is essentially meaningless - they are my wife's
initials from her maiden name. I used them just for the heck of it.
So it I have to change them back to .txt, it is no big deal.

Back to top
Chris Smith
Guest





PostPosted: Mon Oct 31, 2005 3:06 pm    Post subject: Re: network is hindering my applet Reply with quote

Redbeard <tom.cowdery (AT) bigfoot (DOT) com> wrote:
Quote:
I hadn't tried that myself. I got a message "The request is not
supported".

That's the 404 error message that someone configured for that web site.
The problem is that basic.dsm doesn't exist.

Quote:
When I tried to list the directory, I got the message
"This Virtual Directory does not allow contents to be listed."

This is fairly normal. The obscurity camp of security concerns doesn't
like enabling directory listings on web sites. Chances are that this
has either been this way for a long time, or the Microsoft guy changed
it as an "obvious" security fix.

Quote:
I'm absolutely certain the files are there, as I have opened up the
website in Frontpage and checked the contents.

Maybe you should back up, then, and check your assumptions. Perhaps the
files are there in your local copy of the site via FrontPage, but are
not being uploaded to the server for some reason.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation

Back to top
Redbeard
Guest





PostPosted: Mon Oct 31, 2005 8:03 pm    Post subject: Re: network is hindering my applet Reply with quote

I appreciate your help.

I had considered that possibility, but the desktop machine that I am
assigned was was wiped clean over the summer while they upgraded every
machine in the school to WinXP from Win2K. I doubt that it is even the
same CPU that I had last fall. So there is no way that a local copy is
on this machine. I do have a backup on my USB thumb drive, but I don't
have it connected.

So I can't see any way that what I am looking at is anything BUT the
copy on the server. And the file in question is there - plain as day.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.