NPE when no version supplied when specifying a module in the modules section of 
the tc-config
---------------------------------------------------------------------------------------------

                 Key: CDV-635
                 URL: https://jira.terracotta.org/jira//browse/CDV-635
             Project: Community Development
          Issue Type: Bug
          Components: Build & Test
    Affects Versions: 2.5.2, 2.5.1, 2.5.0, 2.4.8, 2.4.5, 2.4.4, 2.4.3, 2.4.2, 
2.4.1, 2.4.0, 2.4-stable1, 2.4-stable0, 2.3, 2.3 EE, 2.3-stable1, 2.3-Stable0, 
2.2.1-Stable2, 2.2 Open Source
            Reporter: Juris Galang
            Assignee: Issue Review Board


An NPE occurs if the version attribute of a <module/> tag in the <modules/> 
section of a tc-config is not supplied. To recreate, in tc-config create a 
<modules/> section and configure a module to load:

  <modules>
     <module name="clustered-ehcache-1.3"/>
  </modules>

The error message when you attempt to run the client will be:

  'Unable to initialize modules runtime; null'

Which isn't very helpful. This is actually an NPE. A similar error will occur 
if the name attribute is omitted.
We can fix this by making the version and name attribute for the <module/> tag 
required in the terracotta configuration's XSD file [PREFERRED] - alternatively 
we can check for incoming null values in the Resolver.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.terracotta.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to