cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fernando Rodrigues" <>
Subject Excalibur+cocoon+NullPointerException
Date Wed, 15 Sep 2004 10:33:13 GMT
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 {;      
 public void start() throws Exception {

 public void stop() throws Exception {

 public void processa() {;

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 disseminate 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.

View raw message