[teiid-issues] [JBoss JIRA] Resolved: (TEIID-837) deleteVDBAndConnectorBindings gets NPE

Ramesh Reddy (JIRA) jira-events at lists.jboss.org
Thu Sep 17 17:23:49 EDT 2009


     [ https://jira.jboss.org/jira/browse/TEIID-837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ramesh Reddy resolved TEIID-837.
--------------------------------

    Resolution: Done


Underlying method to get the ConnectorBindings in given VDB is in the form

getConnectorBindingsInVDB(string id)

where "id" in previous version of "embedded" was any thing like "vdbName.version", where as with Server version the supplied id was "vdbName|version", thus the call would never get correct set of the bindings for the given VDB, and got a NULL object thus NPE.

since all the other VDB related methods use the explicit form the vdb identifiers, above admin API call is changed to 

  getConnectorBindingsInVDB(string name, string version)

thus no need to match any particular id format. This simplifies the API and fixes the above bug.

> deleteVDBAndConnectorBindings gets NPE
> --------------------------------------
>
>                 Key: TEIID-837
>                 URL: https://jira.jboss.org/jira/browse/TEIID-837
>             Project: Teiid
>          Issue Type: Bug
>          Components: AdminApi
>    Affects Versions: 6.2.0
>         Environment: fedora 10, Teiid 6.2 RC1
>            Reporter: Paul Nittel
>            Assignee: Ramesh Reddy
>             Fix For: 6.2.0
>
>
> Not too sure this method makes a lot of sense since the bindings are part of the VDB itself, but...
> When it's executed from AdminShell, the following is spewed forth:
> Identifier supplied can not be null and must adhere to the naming patterns; Please check the java docs for the proper naming patterns.
> // Error: // Uncaught Exception: Typed variable declaration : at Line: 1020 : in file: URL: jar:file:/home/pnittel/teiid62RC1/adminshell/lib/teiid-adminshell-6.2.0-SNAPSHOT.jar!/scripts/adminapi.bsh : connectorBindings .iterator ( ) 
> Target exception: java.lang.NullPointerException: Null Pointer in Method Invocation
> In this case, I'd given this command:
> deleteVDBAndConnectorBindings("NiapThing", "1");
> Good news is the VDB /is/ deleted when this is executed.

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

        


More information about the teiid-issues mailing list