[ 
https://issues.apache.org/jira/browse/NETBEANS-5772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17361529#comment-17361529
 ] 

Jens Hofschröer commented on NETBEANS-5772:
-------------------------------------------

If I try to install the Bundle from "downloaded" tab the "same" error message 
occurs

 

java.lang.IllegalArgumentException: Malformed dot-separated identifier: 
org.apache.commons.commons-csv
 at org.openide.modules.Dependency.checkCodeName(Dependency.java:176)
 at org.openide.modules.Dependency.create(Dependency.java:254)
 at 
org.netbeans.modules.autoupdate.updateprovider.DummyModuleInfo.parseDeps(DummyModuleInfo.java:176)
 at 
org.netbeans.modules.autoupdate.updateprovider.DummyModuleInfo.<init>(DummyModuleInfo.java:97)
 at 
org.netbeans.modules.autoupdate.updateprovider.ModuleItem.getModuleInfo(ModuleItem.java:150)
[catch] at 
org.netbeans.modules.autoupdate.services.UpdateUnitFactory.appendUpdateItems(UpdateUnitFactory.java:169)
 at 
org.netbeans.modules.autoupdate.services.UpdateUnitFactory.getUpdateUnits(UpdateUnitFactory.java:131)
 at 
org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getUpdateUnits(UpdateManagerImpl.java:92)
 at 
org.netbeans.modules.autoupdate.services.UpdateUnitProviderImpl.getUpdateUnits(UpdateUnitProviderImpl.java:148)
 at 
org.netbeans.api.autoupdate.UpdateUnitProvider.getUpdateUnits(UpdateUnitProvider.java:158)
 at 
org.netbeans.modules.autoupdate.ui.LocalDownloadSupport.createUpdateUnitFromNBM(LocalDownloadSupport.java:255)
 at 
org.netbeans.modules.autoupdate.ui.LocalDownloadSupport.addUpdateUnits(LocalDownloadSupport.java:133)
 at 
org.netbeans.modules.autoupdate.ui.LocalDownloadSupport.chooseNbmFiles(LocalDownloadSupport.java:97)
 at 
org.netbeans.modules.autoupdate.ui.UnitTab$AddLocallyDownloadedAction.performerImpl(UnitTab.java:2285)
 at 
org.netbeans.modules.autoupdate.ui.UnitTab$TabAction.actionPerformed(UnitTab.java:1094)
 at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
 at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown 
Source)
 at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown 
Source)

> OSGi Bundles with dash in Bundle-Symbolic-Name are not installable or 
> updatable
> -------------------------------------------------------------------------------
>
>                 Key: NETBEANS-5772
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5772
>             Project: NetBeans
>          Issue Type: Bug
>          Components: platform - Module System
>    Affects Versions: 12.3
>            Reporter: Jens Hofschröer
>            Priority: Major
>
> The NetBeans Module System is based on "Code-Name-Base" module names. These 
> names are formatted the same way as Java packages. OSGi uses "Symbolic Names" 
> that are "mostly" like Java Packages, but the OSGi specification allows also 
> a dash and an underscore to be part of that "symbolic-name" [1] and [2].
> In org.openide.modules.Dependency#checkCodeName() the check is that only a 
> NetBeans CNB/Java package is a valid identifier. This will prevent modules to 
> be installed or updated if they depend on these OSGi Bundles:
> java.lang.IllegalArgumentException: Malformed dot-separated identifier: 
> org.apache.commons.commons-csv
>  at org.openide.modules.Dependency.checkCodeName(Dependency.java:176)
>  at org.openide.modules.Dependency.create(Dependency.java:254)
>  at 
> org.netbeans.modules.autoupdate.updateprovider.DummyModuleInfo.parseDeps(DummyModuleInfo.java:176)
>  at 
> org.netbeans.modules.autoupdate.updateprovider.DummyModuleInfo.<init>(DummyModuleInfo.java:97)
>  at 
> org.netbeans.modules.autoupdate.updateprovider.ModuleItem.getModuleInfo(ModuleItem.java:150)
> [catch] at 
> org.netbeans.modules.autoupdate.services.UpdateUnitFactory.appendUpdateItems(UpdateUnitFactory.java:169)
>  at 
> org.netbeans.modules.autoupdate.services.UpdateUnitFactory.getUpdateUnits(UpdateUnitFactory.java:118)
>  at 
> org.netbeans.modules.autoupdate.services.UpdateManagerImpl$Cache.<init>(UpdateManagerImpl.java:267)
>  at 
> org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getCache(UpdateManagerImpl.java:227)
>  at 
> org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getUpdateUnits(UpdateManagerImpl.java:96)
>  at 
> org.netbeans.api.autoupdate.UpdateManager.getUpdateUnits(UpdateManager.java:78)
>  at 
> org.netbeans.modules.autoupdate.ui.PluginManagerUI.updateUnitsChanged(PluginManagerUI.java:656)
>  at 
> org.netbeans.modules.autoupdate.ui.UnitTab$3.updateUnitsChanged(UnitTab.java:168)
>  at 
> org.netbeans.modules.autoupdate.ui.UnitCategoryTableModel.fireUpdataUnitChange(UnitCategoryTableModel.java:261)
>  at 
> org.netbeans.modules.autoupdate.ui.UnitTab.fireUpdataUnitChange(UnitTab.java:619)
>  at org.netbeans.modules.autoupdate.ui.UnitTab$14$1.run(UnitTab.java:790)
>  at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source) 
>  
> [1] 
> [http://docs.osgi.org/specification/osgi.core/7.0.0/framework.module.html#framework.module.bsn]
> [2] 
> [http://docs.osgi.org/specification/osgi.core/7.0.0/ch01.html#framework.general.syntax]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to