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 270913 - ClassCastException: java.lang.String cannot be cast to java.util.Properties
Summary: ClassCastException: java.lang.String cannot be cast to java.util.Properties
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: matthias42
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-20 08:22 UTC by ggghhhjjj
Modified: 2017-09-12 01:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 209962


Attachments
stacktrace (3.61 KB, text/plain)
2017-06-20 08:22 UTC, ggghhhjjj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ggghhhjjj 2017-06-20 08:22:45 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.121-b13, Java(TM) SE Runtime Environment, 1.8.0_121-b13
OS: Windows 7

User Comments:
GUEST: Connect to Microsft SQL Server

GUEST: <Please provide a description of the problem or the steps to reproduce>
ClassCastException: java.lang.String cannot be cast to java.util.Properties

GUEST: I dont know

GUEST: <???????????????>dingding

GUEST: <Forne
Comment 1 ggghhhjjj 2017-06-20 08:22:46 UTC
Created attachment 164577 [details]
stacktrace
Comment 2 matthias42 2017-08-06 01:49:58 UTC
It's unclear where the String value comes from. The fix is implemented by preventing non-Properties values from being set on the property editor.

The fix is pushed as:

http://hg.netbeans.org/core-main/rev/c8756543e816
Comment 3 Quality Engineering 2017-09-12 01:58:18 UTC
Integrated into 'main-silver', will be available in build *201709120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c8756543e816
User: Matthias Blaesing <matthias42@netbeans.org>
Log: #270913: Prevent PropertiesEditor from being set to a non Propeties value (apart from NULL)