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 270106

Summary: java.util.ConcurrentModificationException at java.util.ArrayList.sort
Product: connecteddeveloper Reporter: muellermi <muellermi>
Component: Issuetracking FrameworkAssignee: Tomas Stupka <tstupka>
Status: NEW ---    
Severity: normal CC: ddeka352, heixiaowu
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 216477
Attachments: stacktrace

Description muellermi 2017-03-17 09:24:57 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.112-b15, Java(TM) SE Runtime Environment, 1.8.0_112-b15
OS: Windows 7

User Comments:
muellermi: ???

ddeka352: Solve it

heixiaowu: execute_request(HttpRequestMethod::Post, function() use($action) {
    $salecountData = request_object();
    if ($action == 1) {
        $salecount = new P_Salecount();
        $salecount->set_field_from_array($salecountData);

        $salecount->set_addtime("now");
        $customer = new P_Customerrecord();    //???debug error(???????????????)
        $update_finish_sql = "";
        $close_status_sql = "";
        $update_all_status_sql = "";

        //0:????   1???   2???    3:???
        $customer->set_where_and(P_Customerrecord::$field_status, SqlOperator::Equals, 1);
        $customer->set_custom_where(' and toplimit > finish ');
        $db = create_pdo();
        $customerres = Model::query_list($db, $customer, NULL, true);
        $models = Model::list_to_array($customerres['models']);

        $count = $customerres['count'];
        if ($customerres['count'] != 0) {
            $user = $models[0];
            $userid = $user['userid'];
            $toplimit = $user['topli




Stacktrace: 
java.util.ConcurrentModificationException
   at java.util.ArrayList.sort(ArrayList.java:1456)
   at java.util.Collections.sort(Collections.java:141)
   at org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler.initializeNewTaskDataAttributes(BugzillaTaskDataHandler.java:551)
   at org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler.initializeTaskData(BugzillaTaskDataHandler.java:468)
   at org.netbeans.modules.mylyn.util.MylynSupport.createTask(MylynSupport.java:361)
   at org.netbeans.modules.bugzilla.repository.BugzillaRepository.createIssue(BugzillaRepository.java:182)
Comment 1 muellermi 2017-03-17 09:25:00 UTC
Created attachment 163874 [details]
stacktrace