Bug 452525 - JNLP PersitenceService does not trigger FileNotFoundException as the documented on the API
JNLP PersitenceService does not trigger FileNotFoundException as the document...
Product: Fedora
Classification: Fedora
Component: java-1.6.0-openjdk (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Joshua Sumali
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-06-23 11:12 EDT by Robert Marcano
Modified: 2008-07-15 11:52 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-07-15 11:52:41 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Robert Marcano 2008-06-23 11:12:48 EDT
Description of problem:

The JNLP javadoc says that when retrieving the contents of a file, it must
trigger a FileNotFoundException if the store is not found, the current NetX
implementation return a dummy FileContents that later trigger the
FileNotFoundException when calling getInputStream(). This cause problems with
code that check if the store is created with the PersitenceService>>get() method
before calling getInputStream()


Version-Release number of selected component (if applicable):

Steps to Reproduce:
1.Clear all netx cache and .netx directory
2.Call PersistenceService>>get()
3.It must signal a FileNotFoundException because never has been created a
persistence store
Actual results:
No exception is thrown calling PersistenceService>>get(), only after calling

Caused by: java.io.FileNotFoundException: [path to file here] (No such file or
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:137)
	... 20 more

Expected results:
FileNotFoundException when calling PersistenceService>>get() if the store has
not been created
Comment 1 Joshua Sumali 2008-06-27 13:05:03 EDT

Thanks for reporting this bug. It has been fixed in the IcedTea repository.
Comment 2 Robert Marcano 2008-06-27 13:45:46 EDT
thanks to you for the fix, I still have a few other bugs that I am investigating
workarounds in our application. I will report them after developing a few testcases
Comment 3 Lillian Angel 2008-07-15 11:52:41 EDT
Updated in rawhide, will be in soon.

Note You need to log in before you can comment on or make changes to this bug.