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 267923 - AssertionError: 5 tokens for org.netbeans.modules.javascript2.react|JavaScript2 JSX | React|0.1|0.2|
Summary: AssertionError: 5 tokens for org.netbeans.modules.javascript2.react|JavaScrip...
Status: STARTED
Alias: None
Product: platform
Classification: Unclassified
Component: Plugin Manager (show other bugs)
Version: 8.2
Hardware: All All
: P2 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-07 11:39 UTC by soldatov
Modified: 2017-06-27 19:34 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 196821


Attachments
stacktrace (2.34 KB, text/plain)
2016-09-07 11:40 UTC, soldatov
Details
stacktrace (2.34 KB, text/plain)
2016-09-12 19:03 UTC, muellermi
Details
stacktrace (2.34 KB, text/plain)
2016-09-13 18:57 UTC, muellermi
Details
stacktrace (2.34 KB, text/plain)
2016-09-27 12:19 UTC, Alexander Simon
Details
stacktrace (2.34 KB, text/plain)
2016-09-29 07:10 UTC, Alexander Simon
Details
stacktrace (2.34 KB, text/plain)
2016-10-07 11:22 UTC, Alexander Simon
Details
stacktrace (2.34 KB, text/plain)
2016-11-24 20:23 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2016-09-07 11:39:59 UTC
Build: NetBeans IDE Dev (Build 201609050002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.102-b14, Java(TM) SE Runtime Environment, 1.8.0_102-b14
OS: SunOS

User Comments:
GUEST: -------------------------------------------------------------------------------
>Log Session: Wednesday, September 7, 2016 1:05:44 PM JST
>System Info: 
  Product Version         = NetBeans IDE Dev (Build 201609060002) (#e7b5245f4d87)
  Operating System        = Windows 7 version 6.1 running on x86
  Java; VM; Vendor        = 1.8.0_102; Java HotSpot(TM) Client VM 25.102-b14; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.8.0_102-b14
  Java Home               = D:\jdk\jre
  System Locale; Encoding = ja_JP (nb); MS932
  Home Directory          = C:\Users\smt-ct048
  Current Directory       = D:\NetBeans\bin
  User Directory          = C:\Users\smt-ct048\AppData\Roaming\NetBeans\dev
  Cache Directory         = C:\Users\smt-ct048\AppData\Local\NetBeans\Cache\dev
  Installation            = D:\NetBeans\nb
                            D:\NetBeans\ide
                            D:\NetBeans\extide
                            D:\NetBeans\webcommon

GUEST: crashy, crashy

soldatov: I launched IDE only

GUEST: -------------------------------------------------------------------------------
>Log Session: Wednesday, September 7, 2016 9:43:20 AM JST
>System Info: 
  Product Version         = NetBeans IDE Dev (Build 201609060002) (#e7b5245f4d87)
  Operating System        = Windows 7 version 6.1 running on x86
  Java; VM; Vendor        = 1.8.0_102; Java HotSpot(TM) Client VM 25.102-b14; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.8.0_102-b14
  Java Home               = D:\jdk\jre
  System Locale; Encoding = ja_JP (nb); MS932
  Home Directory          = C:\Users\smt-ct048
  Current Directory       = D:\NetBeans\bin
  User Directory          = C:\Users\smt-ct048\AppData\Roaming\NetBeans\dev
  Cache Directory         = C:\Users\smt-ct048\AppData\Local\NetBeans\Cache\dev
  Installation            = D:\NetBeans\nb
                            D:\NetBeans\ide
                            D:\NetBeans\extide
                            D:\NetBeans\webcommon

GUEST: crashy, crashy

GUEST: Restarted Netbeans with 3 Web projects open

GUEST: Fat, drunk, and stupid is no way to go through development.

GUEST: Loaded

GUEST: ?

GUEST: dammit

GUEST: -------------------------------------------------------------------------------
>Log Session: Wednesday, September 7, 2016 6:24:11 PM JST
>System Info: 
  Product Version         = NetBeans IDE Dev (Build 201609060002) (#e7b5245f4d87)
  Operating System        = Windows 7 version 6.1 running on x86
  Java; VM; Vendor        = 1.8.0_102; Java HotSpot(TM) Client VM 25.102-b14; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.8.0_102-b14
  Java Home               = D:\jdk\jre
  System Locale; Encoding = ja_JP (nb); MS932
  Home Directory          = C:\Users\smt-ct048
  Current Directory       = D:\NetBeans\bin
  User Directory          = C:\Users\smt-ct048\AppData\Roaming\NetBeans\dev
  Cache Directory         = C:\Users\smt-ct048\AppData\Local\NetBeans\Cache\dev
  Installation            = D:\NetBeans\nb
                            D:\NetBeans\ide
                            D:\NetBeans\extide
                            D:\NetBeans\webcommon




Stacktrace: 
java.lang.AssertionError: 5 tokens for org.netbeans.modules.javascript2.react|JavaScript2 JSX | React|0.1|0.2| 
   at org.netbeans.modules.autoupdate.ui.wizards.LazyInstallUnitWizardIterator$LazyUnit.parseLazyUnit(LazyInstallUnitWizardIterator.java:226)
   at org.netbeans.modules.autoupdate.ui.wizards.LazyInstallUnitWizardIterator$LazyUnit.loadLazyUnits(LazyInstallUnitWizardIterator.java:178)
   at org.netbeans.modules.autoupdate.ui.actions.AutoupdateCheckScheduler$7.run(AutoupdateCheckScheduler.java:480)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
   at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
   at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
Comment 1 soldatov 2016-09-07 11:40:01 UTC
Created attachment 161944 [details]
stacktrace
Comment 2 soldatov 2016-09-07 11:47:03 UTC
Absolutely stable exception on my Solaris 11.3 machine. I use NetBeans 8.2 (Build 201609050002) and fresh userdir.
Comment 3 Petr Pisl 2016-09-09 12:53:56 UTC
I have tried to fix it by this : http://hg.netbeans.org/web-main/rev/02027e127832

Could you try next daily dev build and let me know, whether it helps?
Comment 4 Quality Engineering 2016-09-10 02:16:00 UTC
Integrated into 'main-silver', will be available in build *201609100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/02027e127832
User: Petr Pisl <ppisl@netbeans.org>
Log: #267923 - AssertionError: 5 tokens for org.netbeans.modules.javascript2.react|JavaScript2 JSX | React|0.1|0.2|
Comment 5 muellermi 2016-09-12 19:03:50 UTC
Created attachment 162015 [details]
stacktrace

started IDE
Comment 6 muellermi 2016-09-13 18:57:51 UTC
Created attachment 162034 [details]
stacktrace

started NB
Comment 7 Alexander Simon 2016-09-27 12:19:08 UTC
Created attachment 162241 [details]
stacktrace

strt IDE
Comment 8 Alexander Simon 2016-09-29 07:10:08 UTC
Created attachment 162264 [details]
stacktrace

start IDE
Comment 9 Petr Pisl 2016-10-03 08:40:08 UTC
The problem is in LazyInstallUnitWizardIterator$LazyUnit.parseLazyUnit() where is tokenized string and as delimiter is char '|'. If a code name or display name contains '|' then the parsing is broken. There is the assertion that checks whether after there is just 5 tokens. 

The workarround for this is simple. Just changing the display name of Javascript 2 JSX module to not contain char '|'. I pushed it to the web-main. http://hg.netbeans.org/web-main/rev/8a84f58d55a0

But the problem is still there. If somebody will use char '|' in module name or display module name, we will have still the same problem => leaving open and assigning back to Libor.
Comment 10 Petr Pisl 2016-10-03 08:41:59 UTC
Marking also as patch candidate.
Comment 11 Quality Engineering 2016-10-04 01:54:03 UTC
Integrated into 'main-silver', will be available in build *201610040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8a84f58d55a0
User: Petr Pisl <ppisl@netbeans.org>
Log: #267923 - AssertionError: 5 tokens for org.netbeans.modules.javascript2.react|JavaScript2 JSX | React|0.1|0.2|
Comment 12 Alexander Simon 2016-10-07 11:22:24 UTC
Created attachment 162390 [details]
stacktrace

start IDE
Comment 13 muellermi 2016-11-24 20:23:24 UTC
Created attachment 163020 [details]
stacktrace

starting NB