So stupid i was.. i called that method within an object created by the constructor and not by lookup. Didn�t believe i spent several hours with this.
Tks
----- Original Message -----
Sent: Wednesday, September 15, 2004 11:33 AM
Subject: Excalibur+cocoon+NullPointerException

Sorry again. I�m stuck with some simple problem.
 
When the object is created, the var str is setted with the  value "test"  (configure method) and then i see in my log the size of that var (method initialize).
This is just testing, to be sure on what is going on. One thing i can�t understant is why when i invoke the processa() method  i get a NullPointerException. Ok,
is because the var str is Null, but is it supposed to be? This object is ThreadSafe, so  i have aways one instance with his values.
 
Tks in advance.
 
 
 
public class test implements HttpConnector, Startable, Configurable, ThreadSafe, Initializable, Composable, Component{

    public static String ROLE = "com.tha.test";
    public String str;   

  
 
 
  public void compose(ComponentManager componentManager) throws ComponentException {
 
  }
 
 public void configure(Configuration arg0) throws ConfigurationException {
    str = "test";
 }
 
 public void initialize() throws Exception {
       log.info(str.size());      
   }
 
 public void start() throws Exception {
  
 }
 

 public void stop() throws Exception {
    
 }
 
 public void processa() {
 
    log.info(str.size());
 
}


DISCLAIMER: This message may contain confidential information or privileged material and is intended only for the individual(s) named. If you are not a named addressee and mistakenly received this message you should not copy or otherwise dissimenate it: please delete this e-mail from your system and notify the sender immediately. E-mail transmissions are not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Therefore, the sender does not accept liability for any errors or omissions in the contents of this message that arise as a result of e-mail transmissions. Please request a hard-copy version if verification is required. Critical Software.



DISCLAIMER: This message may contain confidential information or privileged material and is intended only for the individual(s) named. If you are not a named addressee and mistakenly received this message you should not copy or otherwise dissimenate it: please delete this e-mail from your system and notify the sender immediately. E-mail transmissions are not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Therefore, the sender does not accept liability for any errors or omissions in the contents of this message that arise as a result of e-mail transmissions. Please request a hard-copy version if verification is required. Critical Software.

Reply via email to