Re: network is hindering my applet



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)

> 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.

> 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"

> 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.

.


Quantcast