Request.isUserInRole caused null pointer exception when logged in
Hi,
I have a jsp page in which I am trying to workout if a user is in a
particular role,
so I can prevent certain things from happening.
The problem I am having is when I haven't logged onto the application the
isUserInRole
is working fine. As soon as I authenticate, the next time the function is
called is causes
a null pointer exception.
I am using an ldaprealm for security and a weblogic URL policy file to
associate roles
with directories.
The following is the stack dump that gets displayed
java.lang.NullPointerException
at
weblogic.servlet.internal.ServletContextImpl.isUserInRole(ServletContextImpl
.java:1844)
at
weblogic.servlet.internal.ServletRequestImpl.isUserInRole(ServletRequestImpl
.java:668)
at
jsp_servlet._nzpilapp._publicview._nzpilapphomeview._jspService(_nzpilapphom
eview.java:84)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:123)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:761)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:708)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:252)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
Any Ideas on what is causing this??
thanks Timo for your replay
I use Jdeveloper version (11.1.2.3)
First Question :- i have a view object of ( Countries ) in Hr Schema and include the name of the region ( RegionName ) Attribute From the ( Regions) View Object
to be appeared in the Countries View Object using groovy expression and accessors View link
when i insert a new record in the Coutries View Object it gives me an error
*(oracle.jbo.JboException) JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null*
Similar Messages
-
Max Beans in Cache causes NULL Pointer Exception
Hi All,
a rather weird event (from our perspective) occurs when we do the
following:
We have an entity bean set to max beans in cache 100 (default value of
our deployment tool ), the database table related to that bean holds
lets say 300 entries.
Doing a find all and in the same session bean instanciated transaction a
processing loop over the enumeration of beans we get an NULL Pointer
exception when accesing the 101 Bean. Neverthless the Weblogic server
increases the cache size automatically but obviously not fast enough and
not on time.
has anyone experienced the same problem and has a fix for it, appart
from increasing the cache size in the deployment descriptor ?
any help welcome
MichaelHi Michael.
Can you post the stack trace of the NullPointerException? Was it in
your code or ours? Also, what version of WebLogic are you using?
-- Rob
Rob Woollen
Software Engineer
BEA WebLogic
[email protected]
Michael Rupprecht wrote:
Hi All,
a rather weird event (from our perspective) occurs when we do the
following:
We have an entity bean set to max beans in cache 100 (default value of
our deployment tool ), the database table related to that bean holds
lets say 300 entries.
Doing a find all and in the same session bean instanciated transaction a
processing loop over the enumeration of beans we get an NULL Pointer
exception when accesing the 101 Bean. Neverthless the Weblogic server
increases the cache size automatically but obviously not fast enough and
not on time.
has anyone experienced the same problem and has a fix for it, appart
from increasing the cache size in the deployment descriptor ?
any help welcome
Michael -
Null Pointer Exception when working with Custom Sql
I viewed the video on adding Custom Sql and everything seemed to work fine with regards to adding it to my report. However, I get a null pointer exception when I add a field from the Custom Sql table to the report and try to run the report including if I try to View Sql. There doesn't seem to be a stacktrace that I can show.
BTW... this was a work around for not being able to use Stored Procedures... I have killed 2 days now working on different ways to work around the Stored Procedure thing
Thanks,
SteveHi,
I'm trying to use a custom sql in my report. I could successfully create a custom SQL and add it to my report in the designer. But I'm getting NullPointer exception when I try to see the results in Preview. Can someone please help me resolve this issue.
Thanks! -
Null pointer exception when running OAF page
Hi
I am getting null pointer exception when i execute the code below.
OAApplicationModule am = oapagecontext.getRootApplicationModule();
OAApplicationModuleImpl childam = (OAApplicationModuleImpl)am.findApplicationModule("QuestAnswerAM");
oapagecontext.putDialogMessage(new OAException("PER", "XXOM_APPR_OVR_NULL_MSG"+am+childam, null, OAException.ERROR, null));
OAViewObjectImpl VO= (OAViewObjectImpl)childam.findViewObject("QuestDetailsVO") ;
OAViewRowImpl Dff1Row = (OAViewRowImpl)VO.getCurrentRow();
quest = Dff1Row.getAttribute("LastUpdateDate");
I later commented out the last 3 lines and used the code below to track the application module name.
OAApplicationModule am = oapagecontext.getRootApplicationModule();
OAApplicationModuleImpl childam = (OAApplicationModuleImpl)am.findApplicationModule("QuestAnswerAM");
oapagecontext.putDialogMessage(new OAException("PER", "XXOM_APPR_OVR_NULL_MSG"+am+childam, null, OAException.ERROR, null));
When i run the page i am getting this error:
Message not found. Application: PER, Message Name: XXOM_APPR_OVR_NULL_MSGoracle.apps.per.selfservice.appraisals.server.AppraisalsAMImpl@2982bfnull.
the above error indicates that the Root application module is AppraisalsAMImpl.
But the view i need that is QuestDetailsVO exists in a child AM that is QuestAnswerAM. However in the above diag message as you can see it returns child AM to be null.
When i click on About this page it clearly says that the QuestDetailsVO exists in QuestAnswerAM
Please help
Thanks
AshishHi
Thanks for the quick response.
I am fine with the error message:
Message not found. Application: PER, Message Name: XXOM_APPR_OVR_NULL_MSGoracle.apps.per.selfservice.appraisals.server.AppraisalsAMImpl@2982bfnull.
I am getting message not found becos I have registered only XXOM_APPR_OVR_NULL_MSG and am displaying '+am+childam' also in the exception which is not associated with the registered message.
See below.
oapagecontext.putDialogMessage(new OAException("PER", "XXOM_APPR_OVR_NULL_MSG"+am+childam, null, OAException.ERROR, null));
I am fine with that. My concern is in the error above for 'am' part i am getting the root appl module name. but for childam i am getting null
Message not found. Application: PER, Message Name: XXOM_APPR_OVR_NULL_MSGoracle.apps.per.selfservice.appraisals.server.AppraisalsAMImpl@2982bf*null*.
See the high lighted.
I will look into the current row returning -1 issue and get back to you./
Thanks
Ashish -
<p>The following command gets a null pointer error showing up in Tomcat log:</p><p>../../viewers/cdz_adv/viewDocument.jsp?sEntry=<%=strEntry%>&lang=en&iDocID=830&ViewType=I&kind=Webi</p><p>where sEntry is a valid report token </p><p>but works fine if the ViewType is H or id=830 is used instead of sEntry. When the above command is issued the drill columns are displayed correctly but no report is shown and a null pointer exception is encountered.</p>
There is a Consulting Solution called BOInterface that Business Objects Global Services sells and that may help you if you are implementing your own "InfoView".
A description is <a href="http://www.mnsoft.org/bointerface0.0.html">here</a>.
Particularly, see the <a href="http://www.mnsoft.org/pmiv.0.html">Poor Man's InfoView</a> web application.
Contact me via direct email for more information if this is interesting for you.
HTH,
M
Matthias Nott - Business Objects
Service Line Leader Products EMEA
[email protected] -
Null Pointer Exception when dynamic vo return no row.
Hi All,
i am using jedev version 11.1.1.5.0.
i have created one dynamic vo using application module method.
public void changeDynamicVoQuery(String sqlStatement) {
ViewObject dynamicVO = this.findViewObject("DynamicVo1");
if(dynamicVO!=null)
dynamicVO.remove();
dynamicVO = this.createViewObjectFromQueryStmt("DynamicVo1", sqlStatement);
try
dynamicVO.executeQuery();
catch(Exception ex)
System.out.println("Exception to execute Dynamic vo===>"+ex);
ex.printStackTrace();
}when i have passed query which return no row Null pointer Exception raised. and if query return row it is running fine.
log detail-
java.lang.NullPointerException
at oracle.adfinternal.view.faces.dynamic.AttributeHelper.getFilteredAttributeDefinitions(AttributeHelper.java:60)
at oracle.adfinternal.view.faces.dynamic.factories.TableFactory.create(TableFactory.java:95)
at oracle.adfinternal.view.faces.dynamic.DynamicTable.doCreateChildren(DynamicTable.java:117)
at oracle.adfinternal.view.faces.dynamic.DynamicForm.createChildren(DynamicForm.java:456)
at oracle.adfinternal.view.faces.dynamic.DynamicForm.encodeBegin(DynamicForm.java:280)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:432)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:682)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:601)
at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:358)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:432)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:682)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:601)
at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:358)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:415)
at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:220)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:415)
at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1273)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:800)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:294)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:214)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
<Feb 21, 2013 6:16:51 PM IST> <Error> <HTTP> <BEA-101020> <[ServletContext@14028564[app:DemoApp module:DemoApp-ViewController-context-root path:/DemoApp-ViewController-context-root spec-version:2.5]] Servlet failed with Exception
java.lang.NullPointerException
at oracle.adfinternal.view.faces.dynamic.AttributeHelper.getFilteredAttributeDefinitions(AttributeHelper.java:60)
at oracle.adfinternal.view.faces.dynamic.factories.TableFactory.create(TableFactory.java:95)
at oracle.adfinternal.view.faces.dynamic.DynamicTable.doCreateChildren(DynamicTable.java:117)
at oracle.adfinternal.view.faces.dynamic.DynamicForm.createChildren(DynamicForm.java:456)
at oracle.adfinternal.view.faces.dynamic.DynamicForm.encodeBegin(DynamicForm.java:280)
Truncated. see log file for complete stacktrace
>
<Feb 21, 2013 6:16:51 PM IST> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at Feb 21, 2013 6:16:51 PM IST. Notification details:
WatchRuleType: Log
WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
WatchData: DATE = Feb 21, 2013 6:16:51 PM IST SERVER = DefaultServer MESSAGE = [ServletContext@14028564[app:DemoApp module:DemoApp-ViewController-context-root path:/DemoApp-ViewController-context-root spec-version:2.5]] Servlet failed with Exception
java.lang.NullPointerException
at oracle.adfinternal.view.faces.dynamic.AttributeHelper.getFilteredAttributeDefinitions(AttributeHelper.java:60)
at oracle.adfinternal.view.faces.dynamic.factories.TableFactory.create(TableFactory.java:95)
at oracle.adfinternal.view.faces.dynamic.DynamicTable.doCreateChildren(DynamicTable.java:117)
at oracle.adfinternal.view.faces.dynamic.DynamicForm.createChildren(DynamicForm.java:456)
at oracle.adfinternal.view.faces.dynamic.DynamicForm.encodeBegin(DynamicForm.java:280)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:432)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:682)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:601)
at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:358)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:432)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:682)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:601)
at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:358)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:415)
at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:220)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:415)
at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1273)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:800)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:294)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:214)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)It is very strange. what is wrong with my code? please help.
Thanks in Advance.one important thing is that when i drag dynamic vo in jspx page running fine. but when i used it on fragment page(jsff) then Null poiner exception occur.
i am using following tutorial to create dynamic table.
https://blogs.oracle.com/shay/entry/adf_faces_dynamic_tags_-fora
is there any solution?
error is following-
java.lang.NullPointerException
at oracle.adfinternal.view.faces.dynamic.DynamicForm.isRefreshNecessary(DynamicForm.java:503)
at oracle.adfinternal.view.faces.dynamic.DynamicForm.createChildren(DynamicForm.java:370)
at oracle.adfinternal.view.faces.dynamic.DynamicForm.encodeBegin(DynamicForm.java:280)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:415)
at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer._encodeChildren(RegionRenderer.java:278)
at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer.encodeAll(RegionRenderer.java:201)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)And when i have refresh page it is running fine.
Edited by: Manish on २५ दिसंबर, २०१२ ६:२८ अपराह्न -
Using Back button causes Null Pointer exception
Hi,
I have done some customization by extending the seeded Controller on a Page.I have altered the View query and executed it again dynamically as its not a static query.
There is a functionality called compare which directs the users to a page from the page I have customised the controller.
If the user uses the back button to return to the previous page it is giving a Null Pointer exception.
Also refresh button causes a similar Null Pointer exception on the customised controller page.
can anybody throw some light?
Also is there a way to disable the back and refresh button on the page?Is the control entering the back button code in process request in your CO? Have you confirmed this by putting some debug comments?It many be that this error might being from the code where you have handled back button.
Put debugging comments and check.
--Mukul -
Null pointer exception when relaunching the admin console after failover
Hi All,
I am facing a strange type of problem for last few days can you please help
me in solving this problem .
This Problem is like That
In the My domian or other similar enviroment (i.e. Service Guarded admin server,
with managed server clusters running on two separate servers)
when I Bring up the admin console as usual via a web browser
And Start both managed servers in a cluster
Then Sends transactions to the clustered pair of managed servers
Observed that transation flow is normal
Then during Failover the managed server from the primary to the secondary i observed
that
While the failover is in process, observe the transaction flow and verify that
it is not interrupted
When the failover completes log in to the admin console via the web browser I
am getting a null pointer exception...
can you please suggest me the soultion
Hi All,
I am facing a strange type of problem for last few days can you please help
me in solving this problem .
This Problem is like That
In the My domian or other similar enviroment (i.e. Service Guarded admin server,
with managed server clusters running on two separate servers)
when I Bring up the admin console as usual via a web browser
And Start both managed servers in a cluster
Then Sends transactions to the clustered pair of managed servers
Observed that transation flow is normal
Then during Failover the managed server from the primary to the secondary i observed
that
While the failover is in process, observe the transaction flow and verify that
it is not interrupted
When the failover completes log in to the admin console via the web browser I
am getting a null pointer exception...
can you please suggest me the soultion
-
Null pointer exception when view a thread in standalone forum
Hi All,
I am using Enterprise Portal SP13.I installed two SCA file for Web Forum.
When I view a thread which was posted by some one or me,it throws Null Pointer Exception.
It happens some times not regulary.Somtimes its working fine.
Other things also when I delete a category and then create a category sometimes it throws Array Index OutofBound.
I am really confused.Is it bug for SP13?Should I upgread to SP20?
SyedHi,
isn't there something in the trace log? A stack trace can say a lot.
best regards,
--epexpert -
9.3.3 Upgrade, null pointer exception when accessing business rules and mac
Hello,
We upgraded from 9.3.1 to 9.3.3. In the Essbase Administration Services Console, when I attempt to access business rules or macros from a client PC, we get a null pointer exception. The message does not tell us much, but I cannot find more.
I can access business rules and macros using EAS Console from the server. Do I have a bad installation, or have I missed a step?
Thank you,Hi,
You might have to re-organize your application module hierarchy to place your common code.
If your intension is to auto populate the primary key for your Entity Objects., I would suggest below common practice.
1). Create a Base Entity Impl class for your project that extends oracle.jbo.server.EntityImpl
2). Code your getDbSequence() method inside this base entity impl class
3). Make sure that all your Entity Objects extend your base entity impl class
4). Use EL expression to call this method for auto-generating primary key attribute of your Entity Object.
e.g., adf.object.getDbSequence("sequenceName")
Regards,
Eshwar -
Null pointer exception when navigating though a folder
I have to search for a file in a directory in which some sub directories exist.When im navigating through a sub directory(to which access is denied) im getting a Null Pointer Exception. CanRead() function is returning true.Plz help me out...
package com.cynosure.util;
import java.io.*;
import java.util.*;
import java.util.zip.*;
public class Finder {
String path;
String expr;
public Finder(String path, String expr){
this.path = path;
this.expr = expr;
List l = new ArrayList();
findFile(new File(path), l);
for (Iterator it = l.iterator(); it.hasNext();) {
System.out.println(it.next());
public static void main(String[] args) throws Exception {
new Finder(args[0], args[1]);
void findFile(File f, List r) {
System.out.println("Checking: "+f+": "+f.canWrite());
if ((f.isDirectory()) && (f.canRead())) {
File[] files = f.listFiles(new Filter("exe", true));
for (int i = 0; i < files.length; i++) findFile(files, r);
} else if (accept(f + "") ) {
System.out.println("File added: "+f);
r.add(f);
public boolean accept(String t){
return t.endsWith(expr);
*Here is the code . I have passed c: and winword.exe as arguments*
*The following Exception is thrown*
+Checking: c:\System Volume Information: true+
+Exception in thread "main" java.lang.NullPointerException+
+at com.cynosure.util.Finder.findFile(Finder.java:32)+
+at com.cynosure.util.Finder.findFile(Finder.java:32)+
+at com.cynosure.util.Finder.<init>(Finder.java:15)+
+at com.cynosure.util.Finder.main(Finder.java:23)+ -
Getting java.lang.Null pointer Exception when i close the pdf file.
Hi,
my application is java based thick client application.
From my application, i am generating report file using crystal report tool.
the report file is exported as pdf format and stored in my local macine. from this path, am displaying the report in a SWT browser.
till now its working fine. when i close the browser, i am getting java.lang.null.pointer exception.
i dont understand from this exception, printed in console.
please help me.
java.lang.NullPointerException
at org.eclipse.swt.ole.win32.OleClientSite.onPaint(OleClientSite.java:921)
at org.eclipse.swt.ole.win32.OleClientSite.access$2(OleClientSite.java:906)
at org.eclipse.swt.ole.win32.OleClientSite$1.handleEvent(OleClientSite.java:131)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1424)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3842)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4541)
at org.eclipse.swt.internal.ole.win32.COM.CoFreeUnusedLibraries(Native Method)
at org.eclipse.swt.ole.win32.OleClientSite.releaseObjectInterfaces(OleClientSite.java:1084)
at org.eclipse.swt.ole.win32.OleControlSite.releaseObjectInterfaces(OleControlSite.java:683)
at org.eclipse.swt.ole.win32.OleClientSite.onDispose(OleClientSite.java:852)
at org.eclipse.swt.ole.win32.OleClientSite.access$1(OleClientSite.java:847)
at org.eclipse.swt.ole.win32.OleClientSite$1.handleEvent(OleClientSite.java:128)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1008)
at org.eclipse.swt.widgets.Widget.release(Widget.java:804)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:755)
at org.eclipse.swt.widgets.Widget.release(Widget.java:807)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:755)
at org.eclipse.swt.widgets.Widget.release(Widget.java:807)
at org.eclipse.swt.widgets.Widget.dispose(Widget.java:441)
at com.siemens.med.cad.hqm.reports.ReportViewer$1.widgetDisposed(ReportViewer.java:273)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:117)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1008)
at org.eclipse.swt.widgets.Widget.release(Widget.java:804)
at org.eclipse.swt.widgets.Widget.dispose(Widget.java:441)
at org.eclipse.swt.widgets.Decorations.dispose(Decorations.java:446)
at org.eclipse.swt.widgets.Shell.dispose(Shell.java:674)
at org.eclipse.swt.widgets.Decorations.closeWidget(Decorations.java:308)
at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.java:1643)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3789)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2366)
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:477)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3877)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2366)
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:477)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3877)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2371)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3420)
at com.siemens.med.cad.hqm.view.mainUI.HQMMainForm.buildMainShell(HQMMainForm.java:246)
at com.siemens.med.cad.hqm.event.UserLoginEventHandler.loginDisplay(UserLoginEventHandler.java:240)
at com.siemens.med.cad.hqm.event.UserLoginEventHandler.widgetSelected(UserLoginEventHandler.java:97)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
this is the code i have written for display the report file in a browser:
Display display = Display.getDefault() ;
Shell shell = new Shell(display, SWT.RESIZE | SWT.CLOSE | SWT.MIN | SWT.MAX | SWT.APPLICATION_MODAL);
shell.setText(reportTitle);
shell.setLayout(new FillLayout());
shell.setMaximized(false);
shell.setSize(800, 600);
Composite comp = new Composite(shell, SWT.NONE);
comp.setLayout(new FillLayout());
final Browser browser = new Browser(comp, SWT.FLAT);
try {
File file = new File(exportFile);
URL url = file.toURL();
browser.setUrl("file:" + url.getPath());
} catch (MalformedURLException malURLEx) {
// malURLEx.printStackTrace();
throw new ProgrammingExceptionAdapter(malURLEx);
shell.addDisposeListener(new DisposeListener() {
public void widgetDisposed(DisposeEvent arg0) {
File file = new File(exportFile);
if (file != null && file.exists()) {
file.delete();
browser.dispose();
shell.open();
shell.setFocus()'TitiTruc, welcome to the forum. Please don't post in threads that are long dead. When you have a question, start your own topic. Feel free to provide a link to an old post that may be relevant to your problem.
I'm locking this thread now.
db -
Null pointer exception when using CFCs on Solaris
I am running Apache 2.0.52 and my web root is /htdocs. I have
a multi-server installation of CF 7.0.2 on another partition:
/apps/jrun4. Regular CFM files work fine; however, I receive the
"The system has attempted to use an undefined value..." (null
pointer) error whenever I attempt to use a CFC from within a CFM
file or if I try to use Application.cfc -- Application.cfm works
fine.
For instance...I created two files in /htdocs/test: Test.cfc
and tester.cfm
Test.cfc contains:
<cfcomponent>
<cfset str = "Test">
</cfcomponent>
tester.cfm contains:
<cfset temp = createObject("component", "Test")>
When I run tester.cfm I get the error. I had some success
when I created a mapping in CF Admin called /tester, pointing to
/htdocs/test. I then changed the code in tester.cfm to:
<cfset temp = createObject("component", "tester.Test")>
And it worked! I also tried creating a CFC on the same
partition as the CF install (/apps) and then referencing it in the
tester.cfm code. That works too! However, that's a bandaid solution
and half of one at that. If I try to use Application.cfc anywhere
within /htdocs (web root), I get the null pointer error.
Additionally, I have another server setup identically except
for one difference: the web root is /apps/htdocs (same partition as
CF). Everything works fine on it. Has anyone experienced this
behavior before? Any ideas besides moving /htdocs to /apps/htdocs?
Is this a known issue that the web root must reside on the same
partition as the CF install?I am running Apache 2.0.52 and my web root is /htdocs. I have
a multi-server installation of CF 7.0.2 on another partition:
/apps/jrun4. Regular CFM files work fine; however, I receive the
"The system has attempted to use an undefined value..." (null
pointer) error whenever I attempt to use a CFC from within a CFM
file or if I try to use Application.cfc -- Application.cfm works
fine.
For instance...I created two files in /htdocs/test: Test.cfc
and tester.cfm
Test.cfc contains:
<cfcomponent>
<cfset str = "Test">
</cfcomponent>
tester.cfm contains:
<cfset temp = createObject("component", "Test")>
When I run tester.cfm I get the error. I had some success
when I created a mapping in CF Admin called /tester, pointing to
/htdocs/test. I then changed the code in tester.cfm to:
<cfset temp = createObject("component", "tester.Test")>
And it worked! I also tried creating a CFC on the same
partition as the CF install (/apps) and then referencing it in the
tester.cfm code. That works too! However, that's a bandaid solution
and half of one at that. If I try to use Application.cfc anywhere
within /htdocs (web root), I get the null pointer error.
Additionally, I have another server setup identically except
for one difference: the web root is /apps/htdocs (same partition as
CF). Everything works fine on it. Has anyone experienced this
behavior before? Any ideas besides moving /htdocs to /apps/htdocs?
Is this a known issue that the web root must reside on the same
partition as the CF install? -
Null Pointer Exception when working with editable tables
We are using editable tables in various places in forms that are embedded in views in our application.
A few weeks ago we have discovered that we receive an exception when first clicking into an editable cell (see below). I can't exactly pinpoint when this started happening (might have been when updating from Luna SR1 to Luna SR2 but I am not sure) but I am certain that we didn't used to have this issue in the beginning.
Is this something, others are also experiencing? Is this an issue of forms that use DISPLAY_HINT_VIEW (we don't have any editable tables in popup forms)?
!ENTRY org.eclipse.ui 4 0 2015-06-10 12:14:13.423
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at org.eclipse.jface.viewers.ColumnViewerEditor.activateCellEditor(ColumnViewerEditor.java:216)
at org.eclipse.jface.viewers.ColumnViewerEditor.handleEditorActivationEvent(ColumnViewerEditor.java:452)
at org.eclipse.jface.viewers.ColumnViewer.triggerEditorActivationEvent(ColumnViewer.java:675)
at org.eclipse.scout.rt.ui.swt.basic.table.SwtScoutTable$P_TableViewerEx.triggerEditorActivationEvent(SwtScoutTable.java:1019)
at org.eclipse.jface.viewers.ColumnViewer.handleMouseDown(ColumnViewer.java:650)
at org.eclipse.jface.viewers.ColumnViewer.access$0(ColumnViewer.java:646)
at org.eclipse.jface.viewers.ColumnViewer$1.mouseDown(ColumnViewer.java:95)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:192)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at ch.sbb.cisi.angebot.scout.client.ui.swt.application.Application.startSecure(Application.java:45)
at ch.sbb.cisi.angebot.scout.client.ui.swt.application.Application$1.run(Application.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at ch.sbb.cisi.angebot.scout.client.ui.swt.application.Application.start(Application.java:34)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)I experienced the same issue with editable boolean cells.
Left mouse click events produce the mentioned Exception, which causes the mouse down event to be lost. The mouse up event is still fired though, thereby it's possible that the value of another cell in the same row is updated as the contextColum, which is set by the mouse down event, hasn't been updated.
Right mouse click events work as expected. -
Java Null Pointer Exception when assigning a value to an Object Array
I am working on a webservice where the request can contain a dynamic array of SingleOwnerRequestNodeDetail objects. I need to read these objects in and sort them according to an orderNbr that is contained in the object.
I am attempting to read these object into a Comparable class and sort them. I am having problems when I try to insert the objects into my object array ComparableBO[]. I get the following error: Exception during processing: java.lang.NullPointerException
Any assistance would be greatly appreciated.
Here's my class:
public class ComparatorBO implements Comparable {
private SingleOwnerRequestNodeDetail nodeDetailInfo;
private int orderNbr;
public SingleOwnerRequestNodeDetail getNodeDetailInfo() {
return nodeDetailInfo;
public void setNodeDetailInfo(SingleOwnerRequestNodeDetail nodeDetailInfo) {
this.nodeDetailInfo = nodeDetailInfo;
public int getOrderNbr() {
return Integer.parseInt(nodeDetailInfo.getSingleOwnerRequestOrderNbr());
public void setOrderNbr (int orderNbr) {
this.orderNbr = orderNbr;
public int compareTo(Object anotherNodeDetailInfo)throws ClassCastException {
if (!(anotherNodeDetailInfo instanceof ComparatorBO))
throw new ClassCastException ("An single owner request node detail object is expected");
int anotherNodeDetailOrderNbr = ((ComparatorBO)anotherNodeDetailInfo).getOrderNbr();
return this.orderNbr - anotherNodeDetailOrderNbr;
}Here's the code where I read in the objects and attempt to place them in the comparableBO[]
ComparatorBO[] comparatorBOArray = null;
comparatorBOArray = new ComparatorBO[requestInfo.length];
for (int i=0; i < requestInfo.length; i++)
SingleOwnerRequestNodeDetail nodes = new SingleOwnerRequestNodeDetail();
ComparatorBO comparatorBO = new ComparatorBO();
nodes.setSingleOwnerRequestNodeID(requestInfo.getSingleOwnerRequestNodeID());
nodes.setSingleOwnerRequestNodeType(requestInfo[i].getSingleOwnerRequestNodeType());
nodes.setSingleOwnerRequestOpCode(requestInfo[i].getSingleOwnerRequestOpCode());
nodes.setSingleOwnerRequestOrderNbr(requestInfo[i].getSingleOwnerRequestOrderNbr());
comparatorBO.setNodeDetailInfo(nodes);
*comparatorBOArray[i].setNodeDetailInfo(comparatorBO.getNodeDetailInfo());*
comparatorBOArray[i].setOrderNbr(Integer.parseInt(nodes.getSingleOwnerRequestOrderNbr()));imadeveloper wrote:
I am working on a webservice where the request can contain a dynamic array of SingleOwnerRequestNodeDetail objects. I need to read these objects in and sort them according to an orderNbr that is contained in the object.
I am attempting to read these object into a Comparable class and sort them. I am having problems when I try to insert the objects into my object array ComparableBO[]. I get the following error: Exception during processing: java.lang.NullPointerException
Any assistance would be greatly appreciated.
Here's my class:
public class ComparatorBO implements Comparable {
private SingleOwnerRequestNodeDetail nodeDetailInfo;
private int orderNbr;
public SingleOwnerRequestNodeDetail getNodeDetailInfo() {
return nodeDetailInfo;
public void setNodeDetailInfo(SingleOwnerRequestNodeDetail nodeDetailInfo) {
this.nodeDetailInfo = nodeDetailInfo;
public int getOrderNbr() {
return Integer.parseInt(nodeDetailInfo.getSingleOwnerRequestOrderNbr());
public void setOrderNbr (int orderNbr) {
this.orderNbr = orderNbr;
public int compareTo(Object anotherNodeDetailInfo)throws ClassCastException {
if (!(anotherNodeDetailInfo instanceof ComparatorBO))
throw new ClassCastException ("An single owner request node detail object is expected");
int anotherNodeDetailOrderNbr = ((ComparatorBO)anotherNodeDetailInfo).getOrderNbr();
return this.orderNbr - anotherNodeDetailOrderNbr;
}Here's the code where I read in the objects and attempt to place them in the comparableBO[]
ComparatorBO[] comparatorBOArray = null;
comparatorBOArray = new ComparatorBO[requestInfo.length];
for (int i=0; i < requestInfo.length; i++)
SingleOwnerRequestNodeDetail nodes = new SingleOwnerRequestNodeDetail();
ComparatorBO comparatorBO = new ComparatorBO();
nodes.setSingleOwnerRequestNodeID(requestInfo.getSingleOwnerRequestNodeID());
nodes.setSingleOwnerRequestNodeType(requestInfo[i].getSingleOwnerRequestNodeType());
nodes.setSingleOwnerRequestOpCode(requestInfo[i].getSingleOwnerRequestOpCode());
nodes.setSingleOwnerRequestOrderNbr(requestInfo[i].getSingleOwnerRequestOrderNbr());
comparatorBO.setNodeDetailInfo(nodes);
*comparatorBOArray[i].setNodeDetailInfo(comparatorBO.getNodeDetailInfo());*
comparatorBOArray[i].setOrderNbr(Integer.parseInt(nodes.getSingleOwnerRequestOrderNbr()));
Well normally when someone wont tell me what line the error occured in I copy paste their code into my compiler and find out. But you have other classes which you have not shown us so I cannot help you.
Incase you missed my point, please tell us where the error occured!
Maybe you are looking for
-
How can I sync two seperate ipads to the same computer without the apps from one ipad being loaded on the other?
-
The iCalendar date on my PC on my iCloud home age is not the current date. It is correct on my iPad and iPhone, but not on the PC. How can this be corrected?
-
Isync 2.4 and the Nokia 9300
Ok, I know it's an old telefon but I'am waiting for the iphone. Does Anybody know how to get the Nokia 9300 work again? I doubled the Folder Nokia-9300i.phoneplugin and changed the text in the MetaClasses.plist but not with success. Whar else do I ha
-
Hi, Am new to webdynpro. I have created a simple webdynpro application and now i want to debugg it. but however , In the sap j2ee engine when i set the debugging status of the server to ON, and refresh the server the server does not seem to be runnin
-
After Installing Lion how do i get the windows partition back?
The Windows Partition is not showing up after installing Lion. I only get the option of booting Mac or Recovery How do I get it back.