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 118357 - Ensure all configuration files provide correct FileEncodingQueryImpl
Summary: Ensure all configuration files provide correct FileEncodingQueryImpl
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-10 13:38 UTC by Erno Mononen
Modified: 2008-01-31 13:21 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 Erno Mononen 2007-10-10 13:38:20 UTC
Please see issue 117333 for additional info. I already fixed this for DD2beansDataObject in websvc/jaxrpcsupport, so if 
there are no other xml based data objects in the websvc modules you can just close this issue - at least I couldn't 
find any other ones under nb_all/websvc.

As for how to fix, you can use XmlFileEncodingQueryImplementation from xml/core. Basically you just need to add an 
instance of XmlFileEncodingQueryImplementation to the cookie set of a data object:

getCookieSet().assign(FileEncodingQueryImplementation.class, XmlFileEncodingQueryImpl.singleton());

and override the DataObject#getLookup() method:

    public Lookup getLookup() {
        return getCookieSet().getLookup();
    }
Comment 1 Milan Kuchtiak 2007-10-11 16:51:19 UTC
There are no other data objects in web services modules.
Thank You very much for the fix for DD2BeansDataObject.
Comment 2 Jaroslav Pospisil 2008-01-31 13:21:58 UTC
v.