Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #28949 All Revisions ] Back to Issue ]
Summary 0028949: Business objects with document number can not be created from background processes
Revision 2015-02-16 10:54 by caristu
Description Business objects with document number can not be created from background processes under some circumstances. When saving this type of entities using DAL, the SetDocumentNoHandler event handler is executed in order to properly set the document number properly.

Inside the handleEvent() method, if the following statement is executed:

String windowId = RequestContext.get().getRequestParameter("windowId");

the following exception is thrown:

java.lang.NullPointerException
    at org.openbravo.client.kernel.RequestContext.getRequestParameter(RequestContext.java:111)

This is because the getRequest() method of the RequestContext class is returning a null object and therefore the getRequest().getParameter(name) throws a null pointer exception
Revision 2015-02-16 10:53 by caristu
Description Business objects with document number can not be created from background processes under some circumstances. When saving this type of entities using DAL, the SetDocumentNoHandler event handler is executed in order to properly set the document number properly.

Inside the handleEvent() method, if the following statement is executed:

String windowId = RequestContext.get().getRequestParameter("windowId");

the following exception is thrown:

java.lang.NullPointerException
    at org.openbravo.client.kernel.RequestContext.getRequestParameter(RequestContext.java:111)

This is because the getRequest() method is returning a null object and therefore the getRequest().getParameter(name) throws a null pointer exception
Revision 2015-02-16 10:52 by caristu
Description Business objects with document number can not be created from background processes under some circumstances. When saving this type of entities using DAL, the SetDocumentNoHandler event handler is executed in order to properly set the document number properly.

Inside the handleEvent() method, if the following statement is executed:

String windowId = RequestContext.get().getRequestParameter("windowId");

the following exception is thrown:

java.lang.NullPointerException
    at org.openbravo.client.kernel.RequestContext.getRequestParameter(RequestContext.java:111)

This is because the getRequest() method is returning a null object and therefore the getRequest().getParameter(name) throws a null pointer exception


 


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker