Products | Versions |
---|---|
TIBCO BusinessEvents Enterprise Edition | - |
Not Applicable | - |
Resolution:
Description:
==========
Accessing a contained concept array from a parent concept.
Environment:
==========
TIBCO BusinessEvents 5.1.x
All Operating Systems
Symptoms:
=========
Suppose there is a parent concept A which contains a contained concept B which can have multiple entries and hence is stored in an array on parent concept A.
Here "a" is an instance of parent concept and "b" is the property name of contained concept B inside "a" .
To access the contained concept array from the parent concept "a" let the assignment be as shown as follows:
B[] bArray = a.b
In TIBCO BusinessEvents 5.1.x there are no errors given during ear formation but during execution of the ear file the following error stack trace could be seen:
2013 Mar 07 17:51:11:517 GMT -8 abiswas-z210.na.tibco.com Fatal [main] - [container.standalone] null
java.lang.NullPointerException
at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.bind(RuleServiceProviderImpl.java:1034)
at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.startAll(RuleServiceProviderImpl.java:1011)
at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.configure(RuleServiceProviderImpl.java:225)
at com.tibco.cep.container.standalone.BEMain.jumpStart(SourceFile:155)
at com.tibco.cep.container.standalone.BEMain.main(SourceFile:69)
System exit requested by thread [main] with status: -1
System.exit(..) will be invoked now with status: -1
2013 Mar 07 17:51:11:522 GMT -8 abiswas-z210.na.tibco.com Info [CTRL-C] - [runtime.session] Shutting down service provider: abiswas-z210.na.tibco.com
com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl@1972929283<mailto:com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl@1972929283> is being shutdown by thread [CTRL-C]. Trace follows.
com.tibco.cep.runtime.session.RuleServiceProviderManager$ShutdownThread.run(RuleServiceProviderManager.java:274)
2013 Mar 07 17:51:11:522 GMT -8 abiswas-z210.na.tibco.com Info [CTRL-C] - [runtime.session] RuleServiceProvider abiswas-z210.na.tibco.com is shutting down.
2013 Mar 07 17:51:11:524 GMT -8 abiswas-z210.na.tibco.com Info [CTRL-C] - [runtime.session] Deactivating channels ...
2013 Mar 07 17:51:11:526 GMT -8 abiswas-z210.na.tibco.com Info [CTRL-C] - [runtime.session] Rule sessions shutdown successfully
2013 Mar 07 17:51:11:526 GMT -8 abiswas-z210.na.tibco.com Info [CTRL-C] - [runtime.session] Shutting down ChannelManager ...
2013 Mar 07 17:51:11:526 GMT -8 abiswas-z210.na.tibco.com Info [CTRL-C] - [runtime.channel] Stopping channel: /Channels/JMS
2013 Mar 07 17:51:11:526 GMT -8 abiswas-z210.na.tibco.com Info [CTRL-C] - [runtime.channel] Closing Channel: /Channels/JMS
2013 Mar 07 17:51:11:534 GMT -8 abiswas-z210.na.tibco.com Info [CTRL-C] - [runtime.session] Shutting down RuleAdministrator ...
2013 Mar 07 17:51:11:534 GMT -8 abiswas-z210.na.tibco.com Info [CTRL-C] - [runtime.session] Stopping services ...
2013 Mar 07 17:51:11:534 GMT -8 abiswas-z210.na.tibco.com Info [CTRL-C] - [runtime.session] Stopped services.
2013 Mar 07 17:51:11:534 GMT -8 abiswas-z210.na.tibco.com Info [CTRL-C] - [runtime.session] Closing Logger...
Cause:
======
The assignment between the contained concept property array and the contained concept array causes the java.lang.NullPointerException on running the ear file.
Resolution:
=========
To access the contained concept array from the parent concept "a" use the following:
A a = Instance.createInstance("xslt://");
B[] bArray = Instance.PropertyArray.toArrayConcept(a.b);
Here a is an instance of parent concept
b is the property name of contained concept B inside A .