This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 178971 - NullPointerException: The fo parameter cannot be null
Summary: NullPointerException: The fo parameter cannot be null
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Petr Jiricka
URL:
Keywords:
Depends on:
Blocks: 182220
  Show dependency tree
 
Reported: 2009-12-22 05:54 UTC by asif436
Modified: 2010-03-17 15:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 159974


Attachments
stacktrace (899 bytes, text/plain)
2009-12-22 05:54 UTC, asif436
Details

Note You need to log in before you can comment on or make changes to this bug.
Description asif436 2009-12-22 05:54:48 UTC
Build: NetBeans IDE 6.8 (Build 200912041610)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04
OS: Linux, 2.6.18-128.el5xen, amd64

User Comments:
eaili: Tried to use a EE Bean

asif436: netbeans 6.8
centos 5.3 64 bit

Created maven enterprise application with two module,, web and ejb

right click in the test controller class , pick "call enterprise bean"
pick the bean from ejb module and  choose local interface... click done

I get this message : the fo paramet cannot be null


code is given below

package com.test;
public class testController {
public testController(){
}
}



package com.test;
import javax.ejb.Stateless;
@Stateless
public class testSessionBean implements testSessionBeanLocal {
    @Override
    public String testLocal() {
        return "testLocal";
    }
}

package com.test;
import javax.ejb.Local;
@Local
public interface testSessionBeanLocal {
    String testLocal();    
}



Stacktrace: 
java.lang.NullPointerException: The fo parameter cannot be null
   at org.openide.util.Parameters.notNull(Parameters.java:86)
   at org.netbeans.modules.j2ee.dd.api.web.DDProvider.getDDRoot(DDProvider.java:111)
   at org.netbeans.modules.maven.j2ee.web.EntRefContainerImpl.getWebApp(EntRefContainerImpl.java:192)
   at org.netbeans.modules.maven.j2ee.web.EntRefContainerImpl.addReference(EntRefContainerImpl.java:108)
   at org.netbeans.modules.maven.j2ee.web.EntRefContainerImpl.addEjbLocalReference(EntRefContainerImpl.java:99)
   at org.netbeans.modules.j2ee.ejbcore.action.CallEjbGenerator.addReference(CallEjbGenerator.java:166)
Comment 1 asif436 2009-12-22 05:54:52 UTC
Created attachment 92855 [details]
stacktrace
Comment 2 Antonin Nebuzelsky 2010-01-14 06:58:34 UTC
Changing the default owner to issues@javaee.
Comment 3 Petr Jiricka 2010-03-17 15:55:09 UTC
Fixed: http://hg.netbeans.org/web-main/rev/0ee262c8b07e