SerialCallableStatement giving NullPointerException

Hi,
I am calling a stored procedure in a sybase database by obtaining a connection
from weblogic connection pool. Weblogic version is 7.1. Operating system is HP-UX11i.
I create a callable statement like this -
String sp = "{ ? = call WES_HMI_46..WES_RetrieveCaseSumBySH_1(?,?,?,?,?)}" ;
CallableStatement stmt = con.prepareCall( sp , TYPE_SCROLL_INSENSITIVE , CONCUR_READ_ONLY
The first positional parameter (appearing on the left hand of the = sign ) is
a return code returned by the stored procedure.
I register it as an output parameter this way -
stmt.registerOutParameter( 1 , Types.INTEGER ) ;
On trying to obtain the value of this return code after executing the statement
I am getting a NullPointerException. I try to obtain the return code by calling
int retCode = stmt.getInt(1) ;
I have used the same code on a standalone application without using weblogic connection
pool and CallableStatement. That works fine.
Copying the stack trace below -
java.sql.SQLException: java.lang.NullPointerException
at weblogic.jdbc.rmi.SerialCallableStatement.getInt(SerialCallableStatement.java:161)
at com.hp.wes.framework.dbutils.WESDbAccess.executeProc(WESDbAccess.java:255)
at com.hp.wes.utils.RetrieveCaseSummaryImpl.executeProcedure(RetrieveCaseSummaryImpl.java:301)
at com.hp.wes.utils.RetrieveCaseSummaryImpl.process(RetrieveCaseSummaryImpl.java:196)
at com.hp.wes.newframework.framework.BaseImpl.execute(BaseImpl.java:125)
at com.hp.wes.ejb.CaseBean.sWFM_RetrieveCaseSummary(CaseBean.java:768)
at com.hp.wes.ejb.CaseBean_18uvk_EOImpl.sWFM_RetrieveCaseSummary(CaseBean_18uvk_EOImpl.java:358)
at com.hp.wes.servicedelegate.RetrieveCaseSummaryServiceDelegate.executeService(RetrieveCaseSummaryServiceDelegate.java:31)
at com.hp.wes.ejb.WEMBean.processRequest(WEMBean.java:249)
at com.hp.wes.ejb.WEMBean_1u7z_EOImpl.processRequest(WEMBean_1u7z_EOImpl.java:100)
at com.hp.wes.portal.WEMServlet.service(WEMServlet.java:246)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5360)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2468)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
Does anyone know what the problem could be. I initially thought that the problem
could be in the application code . That looks unlikely now, since it works fine
in a standalone application outside weblogic.
Regards
Kingshuk

Kingshuk Bandyopadhyay wrote:
Hi Joseph,
Thanks a lot for the help. It took me a while to find out your reply. Put the
jar before the classpath as you suggested and this time got a more detailed stack
trace for the NullPointerException. The Exception seems to be coming from a Sybase
class now. From what I could make out from the stack trace, looks like a "next"
method is invoked on a TdsResultSet AFTER a close has been invoked. Copying the
stack trace for your reference. Will greatly appreciate any help/pointer/suggestion
Thanks
Kingshuk
Sure. Now I would like to see the code in WESDbAccess.java. I hope you're not
holding onto pool connections or statements beyond a single invoke.
>
Stack trace -
java.sql.SQLException: java.lang.NullPointerException
at com.sybase.jdbc2.tds.TdsResultSet.next(TdsResultSet.java:285)
at com.sybase.jdbc2.tds.TdsResultSet.close(TdsResultSet.java:392)
at com.sybase.jdbc2.jdbc.SybResultSet.markDead(SybResultSet.java:1507)
at com.sybase.jdbc2.jdbc.SybResultSet.close(SybResultSet.java:1565)
at com.sybase.jdbc2.jdbc.SybResultSet.close(SybResultSet.java:182)
at com.sybase.jdbc2.jdbc.SybResultSet.cache(SybResultSet.java:1462)
at com.sybase.jdbc2.utils.CacheManager.beginReading(CacheManager.java:405)
at com.sybase.jdbc2.utils.CacheManager.open(CacheManager.java:298)
at com.sybase.jdbc2.jdbc.ResultGetter.nextResult(ResultGetter.java:68)
at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:204)
at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:187)
at com.sybase.jdbc2.jdbc.ParamManager.nextResult(ParamManager.java:619)
at com.sybase.jdbc2.jdbc.ParamManager.getOutValueAt(ParamManager.java:419)
at com.sybase.jdbc2.jdbc.SybCallableStatement.getInt(SybCallableStatement.java:271)
at weblogic.jdbc.pool.Statement.getInt(Statement.java:684)
at weblogic.jdbc.rmi.internal.CallableStatementImpl.getInt(CallableStatementImpl.java:114)
at weblogic.jdbc.rmi.SerialCallableStatement.getInt(SerialCallableStatement.java:156)
at com.hp.wes.framework.dbutils.WESDbAccess.executeProc(WESDbAccess.java:289)
at com.hp.wes.utils.RetrieveCaseSummaryImpl.executeProcedure(RetrieveCaseSummaryImpl.java:246)
at com.hp.wes.utils.RetrieveCaseSummaryImpl.process(RetrieveCaseSummaryImpl.java:196)
at com.hp.wes.newframework.framework.BaseImpl.execute(BaseImpl.java:125)
at com.hp.wes.ejb.CaseBean.sWFM_RetrieveCaseSummary(CaseBean.java:768)
at com.hp.wes.ejb.CaseBean_18uvk_EOImpl.sWFM_RetrieveCaseSummary(CaseBean_18uvk_EOImpl.java:670)
at com.hp.wes.servicedelegate.RetrieveCaseSummaryServiceDelegate.executeService(RetrieveCaseSummaryServiceDelegate.java:31)
at com.hp.wes.ejb.WEMBean.processRequest(WEMBean.java:249)
at com.hp.wes.ejb.WEMBean_1u7z_EOImpl.processRequest(WEMBean_1u7z_EOImpl.java:100)
at com.hp.wes.portal.WEMServlet.service(WEMServlet.java:246)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5360)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2468)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
Joseph Weinstein <[email protected]_this> wrote:
Kingshuk wrote:
Hi,
I am calling a stored procedure in a sybase database by obtaining aconnection
from weblogic connection pool. Weblogic version is 7.1. Operating systemis HP-UX11i.
I create a callable statement like this -
String sp = "{ ? = call WES_HMI_46..WES_RetrieveCaseSumBySH_1(?,?,?,?,?)}";
CallableStatement stmt = con.prepareCall( sp , TYPE_SCROLL_INSENSITIVE, CONCUR_READ_ONLY
The first positional parameter (appearing on the left hand of the =sign ) is
a return code returned by the stored procedure.
I register it as an output parameter this way -
stmt.registerOutParameter( 1 , Types.INTEGER ) ;
On trying to obtain the value of this return code after executing thestatement
I am getting a NullPointerException.Hi. I'll help with this. Please take the attached jar, and put it in
the front of the classpath
the server startup script uses, and reproduce the NPE. It should have
more info now.
thanks,
Joe
I try to obtain the return code by calling
int retCode = stmt.getInt(1) ;
I have used the same code on a standalone application without usingweblogic connection
pool and CallableStatement. That works fine.
Copying the stack trace below -
java.sql.SQLException: java.lang.NullPointerException
at weblogic.jdbc.rmi.SerialCallableStatement.getInt(SerialCallableStatement.java:161)
at com.hp.wes.framework.dbutils.WESDbAccess.executeProc(WESDbAccess.java:255)
at com.hp.wes.utils.RetrieveCaseSummaryImpl.executeProcedure(RetrieveCaseSummaryImpl.java:301)
at com.hp.wes.utils.RetrieveCaseSummaryImpl.process(RetrieveCaseSummaryImpl.java:196)
at com.hp.wes.newframework.framework.BaseImpl.execute(BaseImpl.java:125)
at com.hp.wes.ejb.CaseBean.sWFM_RetrieveCaseSummary(CaseBean.java:768)
at com.hp.wes.ejb.CaseBean_18uvk_EOImpl.sWFM_RetrieveCaseSummary(CaseBean_18uvk_EOImpl.java:358)
at com.hp.wes.servicedelegate.RetrieveCaseSummaryServiceDelegate.executeService(RetrieveCaseSummaryServiceDelegate.java:31)
at com.hp.wes.ejb.WEMBean.processRequest(WEMBean.java:249)
at com.hp.wes.ejb.WEMBean_1u7z_EOImpl.processRequest(WEMBean_1u7z_EOImpl.java:100)
at com.hp.wes.portal.WEMServlet.service(WEMServlet.java:246)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5360)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2468)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
Does anyone know what the problem could be. I initially thought thatthe problem
could be in the application code . That looks unlikely now, since itworks fine
in a standalone application outside weblogic.
Regards
Kingshuk

Similar Messages

  • Jaxb is giving NullPointerException  at com.sun.xml.bind.v2.model.impl.Prop

    Hi,
    I am getting null pointer exception , i dont whether it is due to jar mismatch or what ???
    I have a stand alone application which created java classes from one schema file and , i construct xml file by
    inputting some values. It works fine in my machine. But when i deploy it our product which has tomcat6 it
    gives the following exception.
    ava.lang.NullPointerException
         at com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.calcXmlName(PropertyInfoImpl.java:287)
         at com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.calcXmlName(PropertyInfoImpl.java:260)
         at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl.getTypes(ElementPropertyInfoImpl.java:100)
         at com.sun.xml.bind.v2.model.impl.RuntimeElementPropertyInfoImpl.getTypes(RuntimeElementPropertyInfoImpl.java:50)
         at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.size(ElementPropertyInfoImpl.java:42)
         at java.util.AbstractList$Itr.hasNext(AbstractList.java:341)
         at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139)
         at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:49)
         at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:41)
         at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
         at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:204)
         at com.sun.xml.bind.v2.runtime.JAXBContextImpl$1.run(JAXBContextImpl.java:343)
         at com.sun.xml.bind.v2.runtime.JAXBContextImpl$1.run(JAXBContextImpl.java:340)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:340)
         at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:204)
         at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
         at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:589)
         at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
         at javax.xml.bind.ContextFinder.find(ContextFinder.java:381)
         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
         at com.facetime.rtgsm.extractor.GenerateXml.GenerateXmlForSkypeManagementOnly(Unknown Source)
         at com.facetime.rtgsm.extractor.JDBCToXML.getXmlStringForModalities(Unknown Source)
         at com.facetime.rtgsm.publisher.MessagePublisherClient.sendMessage(Unknown Source)
         at com.facetime.rtgsm.publisher.MessagePublisherJob.execute(Unknown Source)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
    Any help would be be grately appreciated :)

    Check whether jaxb-ri.jar is there in your class path

  • Htmlb link setOnClientClick giving NullPointerException

    I have a htmlb link tag in a JspDynPage that I'm trying to execute some javacript with when the link is clicked.  The problem I'm having is that when I run the component I get a NullPointerException.  Here is the code that is failing...
    <hbj:link id="link1" text="test link" reference="" tooltip = "This is a test link" target="_blank" >
         <%
         link1.setOnClientClick("alert('Click')");
         %>
    </hbj:link>
    The error is
    Caused by: java.lang.NullPointerException
    at com.sapportals.htmlb.event.EventManager.renderJavaScriptFragment(EventManager.java:436)
    at com.sapportals.htmlb.event.LinkClickEvent.renderJSFunction(LinkClickEvent.java:95)
    at com.sapportals.htmlb.unifiedrendering.ie5.LinkRenderer.render(LinkRenderer.java:42)
    at com.sapportals.htmlb.rendering.PageContext.render(PageContext.java:982)
    at com.sapportals.htmlb.taglib.LinkTag.doEndTag(LinkTag.java:95)
    I've also try the .setClientEvent(EventTrigger.ON_CLICK,"....") method with simular results.

    Hey Scott
    As it is a link the keyword should be
    onClientClick  and not setOnClientClick
    I guess  now u wont be getting this error
    Chk this
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/ep/sap%20htmlb%20guidelines">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/ep/sap%20htmlb%20guidelines</a>
    Swathi

  • Process method of ExcelProcessor giving nullpointerexception

    I am trying to export a 10g BI Publisher report in excel format using the BIP API's.
    I am using FOProcessor (oracle.apps.xdo.termplate.FOProcessor).
    I am setting a .xdo file in the setData method of FOProcessor.
    The .xdo files contains the queries with placeholders.
    The FOProcessor expects a template in .xsl format .
    I am able to generate a .xls when i have a .rtf as template by using RTFProcessor (oracle.apps.xdo.termplate.RTFProcessor), but when i use an excel (.xls) as template and try to generate a .xls by using ExcelProcessor (oracle.apps.xdo.termplate.ExcelProcessor) .. it gives me a null pointer exception.
    I am not able to dig deeper because there is no source code available neither is there any documentation on ExcelProcessor in the API documentation.
    Can someone please guide me as to how to proceed further in this regard ?
    Any help is appreciated..
    Thanks..

    Hello Wayne,
    Apologies for the delay.
    I went through your post and tried to reproduce the issue. I was able to reproduce it. Based
    on its complexity and as it requires more in-depth analysis, your question falls into the paid support category which requires a more in-depth level of support.
    Please visit the below link to see the various paid support options that are
    available to better meet your needs. http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone
    Thanks,
    Anush

  • PropertyResourceBundle gives NullPointerException

    Hello,
    I don't know if this is the right place to post, but it seems the nearest one to my Problem.
    The Problem is, like stated in the Topic, PropertyResourceBundle gives me a NullPointerException when using it in an Applet.
    First things first: I'm using JRE 1.5.0_03 under W2K.
    I was trying to open a CachedRowSet in an Applet using
    CachedRowSet crs = new CachedRowSetImpl();
    That works fine in Rational Web Developer IDE (using Eclipse) with the AppletViewer. It also works fine when I write a little Test Class and invoke the creation of the CachedRowSet from the Commandline.
    The Test Class is:
    public class Tests {
         public static void main(String[] args) {
              System.out.println("Creating Rowset");
              try {
                   CachedRowSet crs = new CachedRowSetImpl();
                   System.out.println("Size of RowSet: " + crs.size());
              catch (Exception e) {
                   System.out.println("Error: " + e.getMessage());
              System.out.println("Done");
    When executing it via Commandline the Sizeoutput is 0 (like anticipated).
    Ok....so far so good. Reading older comments on these Forums about CachedRowSet giving NullPointerExceptions I realized that it's not the CachedRowSet but the PropertyResourceBundle. So I decompiled JdbcRowSetResourceBundle.class with jad and got to the following Code:
    propResBundle = new PropertyResourceBundle(Thread.currentThread().getContextClassLoader().getResourceAsStream("com/sun/rowset/RowSetResourceBundle.properties"));
    Again, it works fine within Rational Web Developer.
    But when I try to open it in a Browser with the Java Plugin I always get the following Error:
    java.lang.NullPointerException
         at java.util.Properties$LineReader.readLine(Unknown Source)
         at java.util.Properties.load(Unknown Source)
         at java.util.PropertyResourceBundle.<init>(Unknown Source)
    Before that, I do a System.out.print of the Classloader, which gives me:
    Classloader: sun.plugin.security.PluginClassLoader@e28b9
    Here's the whole trace:
    basic: Registrierter Modality-Listener
    liveconnect: JS-Methode wird gestartet: document
    liveconnect: JS-Methode wird gestartet: URL
    basic: ClassLoader wird referenziert: sun.plugin.ClassLoaderInfo@1cac6db, refcount=1
    basic: Fortschritts-Listener hinzugef�gt: sun.plugin.util.GrayBoxPainter@94884d
    basic: Applet wird geladen...
    basic: Applet wird initialisiert...
    basic: Applet wird gestartet...
    Classloader: sun.plugin.security.PluginClassLoader@e28b9
    java.lang.NullPointerException
         at java.util.Properties$LineReader.readLine(Unknown Source)
         at java.util.Properties.load(Unknown Source)
         at java.util.PropertyResourceBundle.<init>(Unknown Source)
         at com.ips.eurotime.dbaccess.TimeExpressAnmeldungSQL.get_masken_beschrift(TimeExpressAnmeldungSQL.java:318)
         at com.ips.eurotime.dbaccess.CommunicationHandler.hole_masken_beschrift(CommunicationHandler.java:2124)
         at com.ips.TimeExpressGUIZutritt.TimeExpressAnmeldung.hole_allgemeine_masken_info(TimeExpressAnmeldung.java:1001)
         at com.ips.TimeExpressGUIZutritt.TimeExpressAnmeldung.init(TimeExpressAnmeldung.java:133)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    basic: Ausnahme: java.lang.NullPointerException
    I'm stuck and getting out of Ideas. Does anyone have had the same problem or knows a solution for it?
    Thanks,
    Carsten

    Hi,
    I've got exact the same problem, did you solved the problem?
    Please, tell me if you fixed the problem.
    Thanks& Bye

  • Why rmic command in Linux gives NullPointerException

    Hiii
    I have a problem in RMI on Linux
    I whenever i am trying to create Stubs on Linux using rmic it's giving NULLPOINTEREXCEPTION..
    so please can anybody tell me why it's happeneing..
    my command was
    rmic ChatterImpl

    Markus Waldorf wrote:
    Test 1: mv renamed the file to * *.txt*. Does this mean wildcard operations are not possible anymore? Never renamed while moving - feels "+unsafe+". Like talking on a mobile while driving. :-)
    Test 2: Instead of overwriting the test directory, it moved test_test directory inside the existing test. Is this correct?Think so. You need to qualify using "scope" to move the contents of a directory as oppose to the directory itself. So instead of moving "<i>dirname</i>" itself, specify it as "<i>dirname/*</i>" instead.
    E.g.
    /home/billy> mkdir test
    /home/billy> touch test/file1
    /home/billy> ll test
    total 0
    -rw-r--r-- 1 billy billy 0 2010-09-21 11:51 file1
    /home/billy>
    /home/billy> mkdir test2
    /home/billy>
    /home/billy> mv test/* test2
    /home/billy> ll test2
    total 0
    -rw-r--r-- 1 billy billy 0 2010-09-21 11:51 file1
    /home/billy>

  • Having a problem with commandButton attribute when i am using it under tabl

    Having a problem with {color:#800000}commandButton {color}{color:#339966}attribute {color}when i am using it under{color:#ff0000} table{color}
    I am using a command button under a table.
    here is the example
    <h:dataTable value="#{wlmHandler.plexes.plexes}" var="{color:#ff0000}onePlex{color}" border="0" cellspacing="0" cellpadding="0" width="100%" border="0">
    <h:column>
    <h:panelGrid border="0" cellpadding="0" cellspacing="0" columns="5">
    <h:commandButton action="" styleClass="tixbutton" value="#{labels.ADD}" onclick="#{onePlex.tran}"/>
    <f:verbatim> </f:verbatim>
    <h:commandButton action="#{createTransaction.transactionCommand}" styleClass="tixbutton"
    value="#{labels.SUBMIT}" actionListener="#{createTransaction.processAction}">
    <f:attribute name="dbName" value="#{wlmHandler.dbName}"/>
    <f:attribute name="plexName" value="{color:#ff9900}#{onePlex.name}"{color}/>
    </h:commandButton>
    </h:panelGrid>
    <h:/column>
    </h:dataTable >
    when i am using this plex name atribute it is giving nullPointerException
    {color:#ff9900}this value #{onePlex.name} i cant able to access inside the command button{color}

    balu i have tried by seeing u r blog.
    this is my structure of tables
    plexes (if i iterate plexes table gives plex object)
    |
    ------ plex (plex table gives transaction object)
    |
    ------transactions(transactions table gives transaction table)
    |
    here i will have a command link to this link i have to pass the plex name which
    will come from
    i tried in this command action with HTMLDataTable getRowData()
    i am not getting the selected row data .i am downcasting this getRowData() to plex.

  • Can't use an Axis web service with WLS 8.1 SP4

    Greetings,
    In order to simlify the problem, I have this very simple web service:
    public class SimpleWS
    public String toUpper (String s)
    System.out.println ("We are in toUpper " + s);
    return s.toUpperCase();
    It works properly with Tomcat 5 but deployed in WebLogic Server 8.1 SP4 is giving NullPointerException. The client is the one generated by the wsdl2java task.
    The exception is raised after having performed the System.out.println; on return.
    I also noticed that it works if the input parameter is an empty string but it fails otherwise.
    I modified the startup script in order to add Axis' saaj.jar in the begining of the CLASSPATH, but it doesn't seem to help.
    Many thanks in advance for any help.
    Nick

    Hi,
    Welcome to HP support forums. Unfortunately no support for the whole series as shown:
       http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&​lc=en&docname=c03168175#N19646
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to insert a row in database trough AappModule

    HI,
    I have used below code for getting details from databse. Now i have to insert a row in the database.
    Kindly let me know how can i use below code for inserting a row in the database. or should i make any change in its viewObject's Query.
    If there is any another way of inserting data in database through method binding please let me knoe that.
    ApplicationModule myService = ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
    ViewObject userInfoVO = myService.findViewObject("EmployeeViewParam1");
    userInfoVO.executeQuery();
    DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcItteratorBindings =
    bindings.findIteratorBinding("EmployeeViewParam1Iterator");
    RowSetIterator rowIter1 = dcItteratorBindings.getRowSetIterator();
    Row[] rows1 = rowIter1.getAllRowsInRange();
    for(int i=0;i<rows1.length;i++)
    this.empId = (String)rows1.getAttribute("EmployeeId"); // primary key
    this.employeeName = (String)rows1[i].getAttribute("Employeename");
    Thanks and Regards,

    HI,
    i have tried belod code. for this i have made AppModuleImpl Class and wrote below method in that and called this method from my bean class with help of AppModuleImpl's Object.
    public void createEmployee (){
    ViewObjectImpl employee=getEmployeeView1();
    // ViewObject employee= findViewObject("EmployeeView");
    Row row = employee.createRow();
    row.setAttribute("Employeeid",189420);
    row.setAttribute("Employeename","Test");
    //Insert row in to the default row set
    employee.insertRow(row);
    but it is giving nullPointerException at line Row row = employee.createRow();
    Kindly help me to shortout this.

  • Paneltab always remember user prev selection but not programmatic disclosed

    Hi,
    Like the similar post Programmatic disclosure of showDetailItem under panelTabbed i would like the tab to be selected / disclosed based on the button the user click.
    I have a paneltabbed component in a page called site which consists of 3 showdetailframe components ..let's call it as (tab1,tab2,tab3) . I have a button (go to site) in entirely different page called plot which should navigate to site page and open tab3 by default.
    This works fine, for the first time. But let's say if user explictly clicked tab2 and then gone to plot page, click GoToSite button which navigates to Site page, but remembers the last selection user has made and selecting tab2 by default.
    I have the following method in site page taskflow which is called always and evaluates the value which i set in the request scope on clicking GoToSite button.
         public void setCopyPlotTabOnSiteDetails()
              FacesContext context = FacesContext.getCurrentInstance();
              Map request = context.getCurrentInstance().getExternalContext().getRequestMap();
              Boolean copyPlotFlag = (Boolean)request.get("copyPlotReq");
              if (Boolean.TRUE.equals(copyPlotFlag) && panelTab != null)
                   List<UIComponent> element = panelTab.getChildren();
                   for (UIComponent child : element)
                        RichShowDetailItem sdi = (RichShowDetailItem)child;
                        if ("sdi2".equals(sdi.getId()))
                             sdi.setDisclosed(true);
                             _addAttributeChange(sdi, "disclosed", true);
                        AdfFacesContext.getCurrentInstance().addPartialTarget(sdi);
                        else
                        sdi.setDisclosed(false);
                        _addAttributeChange(sdi, "disclosed", false);     
                        AdfFacesContext.getCurrentInstance().addPartialTarget(sdi);
              AdfFacesContext.getCurrentInstance().addPartialTarget(siteDetails);
                   AdfFacesContext.getCurrentInstance().addPartialTarget(panelTab);
    After following the post Programmatic disclosure of showDetailItem under panelTabbed i added this method call addAttributeChange
         private static void _addAttributeChange(UIComponent uic, String attribName,
                                                           Object attribValue) {
              try
                   FacesContext fc = FacesContext.getCurrentInstance();
                   ChangeManager cm = RequestContext.getCurrentInstance().getChangeManager();
                   ComponentChange cc = new AttributeComponentChange(attribName, attribValue);
                   cm.addComponentChange(fc, uic, cc);
              catch (Exception e)
                   // TODO: Add catch code
                   e.printStackTrace();
    But is giving NullPointerException on ChangeManager.
    Even otherwise, i have removed the option Enable User Customizations from my View Project (checked in web.xml) and removed the ShowDetailFrame tag in Adf-config.xml. Put the disclosed property in DontPersist attribute of all those showdetail frame components. But nothing worked, i face the same issues...Can any one please help me?
    Regards
    Prabhu

    Hi,
    why do you work so cmplicated. Wouldn't it be simpler to point the disclosed property to a managed bean that then evaluates whether true/false should be returned instead of parsing the component tree? The managed bean would need to be in viewScope. Also note that a request parameter should be read by a pahse listener (f:view afterMethod listening to RESTORE_VIEW) because the ADF Faces page is not rendered in a single round trip but deferred by default which means that subsequent requests are issued. So the first request will be intercepted and then the value added to a bean or attribute in view scope for use by the tabs.
    Another cause of error we frequently see is that personalization is enabled (with or witjout MDS) in which case the tab selection is saved as personalizes setting.
    Also have a look at: http://docs.oracle.com/cd/E23943_01/apirefs.1111/e12419/tagdoc/af_showDetailItem.html
    See: disclosedTransient and disclosed property and how to use them
    Frank

  • Zip file Read Linux

    I have a program which reads the content of a zip file(selected by browse button in an html form)and shows to the user. The program runs fine in Windows2000. But the same program is giving NullPointerException when I am trying
    "ZipFile myzipfile = new ZipFile(strFilePath);"
    i.e it is not able to create the File instance from /root/dirName/a.zip
    Please tell me how can I get rid of this problem.
    Regards
    Rajarshi Ghosh

    Does your file name or folder contains special characters? It should also be case sensitive.

  • How to Overcome NullPointException

    hi friends
    I have a very basic Question. But i am not able to find out the Solution. Since Because i am a new Learner for Java.
    my problem is I have a table. with 3 fields , ID,Name, Age. Now the ID Field is AutoField.
    Now At the User Interface. i take the Maximum Value and add 1 with the Maximum value and show in the User Interface and allow the User to Enter the Next values Name and Age..
    Now the Problem what i am facing is When there is no Record in the Table then it will show NullPointerException.
    What i want is if there is no record in the Table. it should Initialize the starting Value 1 instead of giving NullPointerException.
    Please give me a Suggestion.
    Thank your for your service
    Cheers
    Jofin

    Hi thank you for your reply
    this is my code
    String max;
              int max1=0;
              // Get the Book Maximum ID and Fix it in the TextBox
              try
                   st = con.createStatement ();     
                   rs=st.executeQuery("SELECT Max(BId) FROM Books");
                   while(rs.next())
                             max = rs.getString(1);
                             System.out.println("Maximum Value is"+ max);
                             max1=Integer.parseInt(max);          
                             max1=max1+1;
                             System.out.println("After adding"+ max1);
    txtBookId = new JTextField (""+max1);
         Actually what i am doing is i am tring to get the Maximum value of a Field and add 1 with that Value and show it On the JTextField Now when there is no record in the table. It won't be able to find out the Maximum value. So i want to want to show 1 when there is no record in the table.
    when there is record it finds the Maximum value and adds 1 and show on the JTextField.
    When there is no record it shows Error.
    Please help me to come out of this Problem
    Thank you for your service
    Cheers
    Jofin

  • Sun Wireless Toolkit for CDC - JSR75 Application

    Hi All,
    I have Sun Wireless Toolkit for CDC installed in my machine. I have written a sample JSR75 application to access PIM database. At Compile time, it's giving so many compilation errors; it's not recognizing the PIM API.
    I have placed the jsr75.jar file in lib folder of CDC installation directory. At this time it's giving NullPointerException.
    Any body tell me how to access PIM API from Sun wireless Toolkit for CDC.
    Thank you very much in advance
    Thiru

    What platform do you use to develop? I use NetBeans and compilation works fine.
    I have the jsr75.jar in the following places (on old Apple iBook):
    /Users/carl/.netbeans/5.0/emulators/wtk22_linux/emulator/wtk22/lib/jsr75.jar
    /Users/carl/Library/mpp-sdk/jsr75.jar (for mpowerplayer emulator, but this does not work (yet))
    In the netbeans lib files also these jar-iles exist:
    cldcapi10.jar jsr082.jar midpapi10.jar wma11.jar
    cldcapi11.jar jsr184.jar midpapi20.jar wma20.jar
    j2me-ws.jar jsr75.jar mmapi.jar
    Carl.

  • Simple newbie question about arrays..

    Hello all,
    I have two arrays declared like so below the class header:
    String Players[];
    String Final[];
    I have a method like the following:
    public String[] CollectPlayers() {
    Players[0] = new String(txtPlayer1.getString());
    return Players;
    I am calling this method like so
    Final = CollectPlayers();
    Basically not working, giving nullpointerexception, but I feel that I am fundamentally not understanding something, so here is what I want...
    A method that returns an array and (ideally) use this method directly in creating a ChoiceGroup, like this...
    optBull = new ChoiceGroup("Bully", ChoiceGroup.EXCLUSIVE, CollectPlayers(), arrImage);
    Is this possible? Any ideas?
    Thanks in advance
    poncenby

    A few points:
    - You almost never need to call new String(String).
    - You may want to create an ArrayList (dynamic array) and then call toArray(new Players[0]) if you need it to be a fixed array.
    e.g.
    final List players = new ArrayList();
    public List collectPlayers(List players) {
        List finals = new ArrayList();
        for(int i=0;i<players.size();i++) {
            Player player = (Player) players.get(i);
            finals.add(players.getResult());
        return finals;
    players.add(new Player("anne"));
    players.add(new Player("bob"));
    players.add(new Player("fred"));
    List finals = collectPlayers(players);

  • Help on resetting my own linked list.

    I got a Binary tree project, but to get things started, i decided to put all the elements into a LinkedList first.
    Anyway, it seems i forgot how to go back to the root of my linkedList. I can traverse through the LinkedList, but it seems that whenever I try to call it again, it's already at the end of the List. My linkedList consist of a Integer, and a the next Node is called "left" atm.
    Here's my code:
    class MyTree { //class definition
         class Node {
              int data;
              Node left;
              Node right;
    private Node root;
    private int [] rdata;
    Node m = new Node();
    BufferedReader in;
       public void generate(int n, int range){
              Random r = new Random();
              rdata  = new int[n];
                      for (int i = 0; i<n; i++) {
                            rdata[i] = r.nextInt(range);
              Node b = new Node();
              for (int j = 0; j<n; j++){ 
                   b.data = rdata[j];
                   m.left = b;
                   m = m.left;
                   System.out.println("m.data " + m.data);
                   Now whenever I try to call it back again, It would only print the last integer in the LinkedList, so I had to use an array to set it up it again basically.
         public void show() {
                   Node b = new Node();
                   for (int j = 0; j<rdata.length; j++){ 
                   b.data = rdata[j];
                   m.left = b;
                   m = m.left;
                   System.out.println("m.data " + m.data);
         }I'll like to traverse through the list again without setting up the linked list every time.
    Thanks in Advance.
    Message was edited by:
    Vertix
    Message was edited by:
    Vertix
    Message was edited by:
    Vertix
    Message was edited by:
    Vertix
    Message was edited by:
    Vertix

    Well, I tried to remove Node b, and just use the Node
    m to set up my LinkedList.[ code snipped ]
    But it's giving NullPointerExceptions everytime I try to run it. I already
    created a Node m at the begging, so I don't see where it's getting the
    nullpointer.That's not how you should create that list. You need a new node per
    element in the rdata[] array. There are two possible states:
    1) there isn't a list yet, i.e. the 'root' element equals null
    2) there's a list already and 'm' points to the last element of the list.
    This is how you do it:m= root; // both are null; see 1)
    for (int i= 0; i < rdata.length; i++) { // build the list
       Node b= new Node(); // build a new node
       b.data= rdata;
    if (root == null) // first list element?
    root= b;
    else // no, hookup to last element
    m.left= b;
    m= b; // m points to last element
    kind regards,
    Jos

Maybe you are looking for

  • Paste function in XChange Viewer

    When I draw a shape or line in PDF XChange Viewer (to mark edits on a pdf) I am unable to paste the shape. I can copy the shape but the paste function is unavailable. I can only use the paste function when I copy and paste within the ONE text box.

  • Short Freezes on brand new MBP! - very annoying

    Every few days i will be using my new mbp 15" (built to order with 4gb ram 3.06ghz and 7200rpm 500gb HD) and i start getting random freezes where the pointer keeps moving but nothing responds. Sometimes it gives my the pinwheel, sometimes it doesn't.

  • Need to establish Connection between CRM  and   Virtual Directories.

    Dear All, I am working for Telecom project. I have one requirement that we need to establish Connection between CRM and   Virtual Directories. This is existing in Access management system.( SAP EP environment ) The basic requirement is, with  SAP EP

  • ITunes 9... I can't buy any music!

    I want to buy some music... I really do... but I can't! iTunes hangs when I want to view an album, hit the "back" button, or do much of anything in the iTunes Store. It says it is accessing the iTunes Store, and the progress bar goes about half way,

  • Resize selected Images by context menu

    Hello, i want to write a script that can resize my images. I want to have this function in the contextmenu of the finder, so i can select the images, make left-click and choose, for example, "Resize Images to 50%". Now my problem. The 'resize-job' is