This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 131107 - [saas][delicious] inccorect properties name in authenticator class
Summary: [saas][delicious] inccorect properties name in authenticator class
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Manager (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Ayub Khan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-25 23:12 UTC by Lukas Jungmann
Modified: 2008-03-28 13:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2008-03-25 23:12:02 UTC
-d'n'd delicious -> all -> allPosts in java main class
-run it

=>
java.lang.NullPointerException
        at java.util.Properties$LineReader.readLine(Properties.java:418)
        at java.util.Properties.load0(Properties.java:337)
        at java.util.Properties.load(Properties.java:325)
        at
org.netbeans.saas.delicious.DeliciousBookmarkingServiceAuthenticator.<init>(DeliciousBookmarkingServiceAuthenticator.java:35)
        at org.netbeans.saas.delicious.DeliciousBookmarkingService.allPosts(DeliciousBookmarkingService.java:37)
        at javaapplication1.Main.main(Main.java:33)
BUILD SUCCESSFUL (total time: 0 seconds)

again issue with properties file - the code is looking for:
 private static final String PROP_FILE = DeliciousBookmarkingServiceAuthenticator.class.getSimpleName().toLowerCase() +
".properties";
but the name of the properties file with credentials is: deliciousbookmarkingserviceauthenticator.properties instead
Comment 1 Peter Liu 2008-03-25 23:24:23 UTC
working on this.

Comment 2 Peter Liu 2008-03-26 19:29:16 UTC
I've checked in brand new templates for supporting services such a delicious and twitter that use http-basic
authentication. The new templates should fix the issue reported here.  
http://hg.netbeans.org/main/rev/befeab1b9041

BTW, the new templates now support prompting the user for username and password if they are not set the properties file.
It  is up to the developer to decide whether to use application or user identity.

Passing this issue to Ayub who will work on getting this to generate correctly.
Comment 3 Ayub Khan 2008-03-27 04:29:02 UTC
Fixed for 6.1
Comment 4 Lukas Jungmann 2008-03-28 13:30:37 UTC
v.