|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
FMC00113E Container member not set |
« View previous topic :: View next topic » |
Author |
Message
|
kutulu2000 |
Posted: Thu Dec 15, 2005 1:36 pm Post subject: FMC00113E Container member not set |
|
|
 Acolyte
Joined: 08 Nov 2005 Posts: 63 Location: Mexico
|
Hi, and thanx for your time.
I have developed a program to extract all the information into a workitem. I take this information (owner, data structure, etc) and I place it into a new diagram using the following code
//arregloInfoWorkItem is an ArrayList where I save the workitems.
ReadOnlyContainer cont = (ReadOnlyContainer) arregloInfoWorkItem.get(i);
ReadWriteContainer contenedor = ProcessTemplate.initialInContainer();
ContainerElement[] arrayElementosContainer = cont.leaves();
for( int j = 0; j < arrayElementosContainer.length; j++ ){
System.out.println( j + ".- " + arrayElementosContainer[j].name() + " - " + arrayElementosContainer[j].getString() );
contenedor.setString( arrayElementosContainer[j].name(),
arrayElementosContainer[j].getString());
}
But at this point, I have the exception"FMC00113E Container member not set".
I appreciate so much any suggestion.
Thanx. |
|
Back to top |
|
 |
Ratan |
Posted: Thu Dec 15, 2005 3:02 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
check if the container member is not null before getting the value. _________________ -Ratan |
|
Back to top |
|
 |
jmac |
Posted: Thu Dec 15, 2005 4:06 pm Post subject: Re: FMC00113E Container member not set |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
kutulu2000 wrote: |
But at this point, I have the exception"FMC00113E Container member not set". |
It is my opinion that anytime you deal with reading from containers you must deal with the MEMBER NOT SET condition. Generally when I am writing code similar to what you are doing I will catch that exception and provide a value of "Member Not Set" for the member being accessed _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
kutulu2000 |
Posted: Fri Dec 16, 2005 10:29 am Post subject: |
|
|
 Acolyte
Joined: 08 Nov 2005 Posts: 63 Location: Mexico
|
Hi, thank you so much.
Mi code looks laike this;
ContainerElement [] contenedorInfoOT = datosOT.leaves();
for( int i = 0; i < contenedorInfoOT.length ; i++ ){
try {
nombreDato = contenedorInfoOT[i].name();
valor = contenedorInfoOT[i].getString();
pw.println( nombreDato + " - " + valor );
} catch (FmcException e) {
datosOT.asReadWriteContainer().setString(nombreDato, "NULL");
}
And it works.
Thank you so much. _________________ #10 |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|