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
Similar Messages
-
HTMLEditorKit.Parser.parse() method is not giving a proper HTMLDocument alw
Hi,
I am developing util program for HTML filter, for my project. I have find using HTMLDocument we can do that.
But when I created I found few starnge things.
HTMLEditorKit.Parser.parse() method is not giving a proper HTMLDocument always. the below application will show the HTML one if you comment the String str ="" ; and uncomment the next line.
I am wondering why this happens.
import java.io.StringReader;
import java.io.StringWriter;
import javax.swing.text.html.HTMLDocument;
import javax.swing.text.html.HTMLEditorKit;
import javax.swing.text.html.HTMLWriter;
import javax.swing.text.html.parser.ParserDelegator;
public class HTMLDocExample {
public static void main(String args[]) throws Exception {
System.out.println("start the parsing");
String data = "dsfdssfsdf<A HREF='http://yahoo.com'>HTMLEditorKit.Parser</A><h1>dsfdsf</h1><table border='1' class='test'><tr><td><input type='text'>dfsf</input><select id='id1' name='name1'><option>fff</option><option>aaaaa</option></select><input type='text'/><a href=#></a></td></tr></table>";
String str ="" ;
//String str ="<TABLE >test</TABLE><TABLE >test</TABLE><TABLE >test</TABLE><TABLE >test</TABLE><TABLE >test</TABLE><TABLE >test</TABLE><TABLE >test</TABLE><TABLE >test</TABLE><TABLE >test</TABLE><TABLE >test</TABLE>" ;
StringReader br = new StringReader(data + str );
HTMLEditorKit htmlKit = new HTMLEditorKit();
HTMLDocument htmlDoc = (HTMLDocument) htmlKit.createDefaultDocument();
HTMLEditorKit.Parser parser = new ParserDelegator();
HTMLEditorKit.ParserCallback callback = htmlDoc.getReader(0);
parser.parse(br, callback, true);
StringWriter writer = new StringWriter();
HTMLWriter hWriter = new HTMLWriter(writer, htmlDoc);
hWriter.write();
String outPut = writer.toString();
System.out.println(outPut);
System.exit(0);
}import java.io.StringReader;
import java.io.StringWriter;
import javax.swing.text.html.HTMLDocument;
import javax.swing.text.html.HTMLEditorKit;
import javax.swing.text.html.HTMLWriter;
import javax.swing.text.html.parser.ParserDelegator;
public class HTMLDocExample {
public static void main(String args[]) throws Exception {
System.out.println("start the parsing");
String data = "dsfdssfsdf<A HREF='http://yahoo.com'>HTMLEditorKit.Parser</A><h1>dsfdsf</h1><table border='1' class='test'><tr><td><input type='text'>dfsf</input><select id='id1' name='name1'><option>fff</option><option>aaaaa</option></select><input type='text'/><a href=#></a></td></tr></table>";
//String str ="" ;
String str ="<TABLE >test</TABLE><TABLE >test</TABLE><TABLE >test</TABLE><TABLE >test</TABLE><TABLE >test</TABLE><TABLE >test</TABLE><TABLE >test</TABLE><TABLE >test</TABLE><TABLE >test</TABLE><TABLE >test</TABLE>" ;
StringReader br = new StringReader(data + str );
HTMLEditorKit htmlKit = new HTMLEditorKit();
HTMLDocument htmlDoc = (HTMLDocument) htmlKit.createDefaultDocument();
HTMLEditorKit.Parser parser = new ParserDelegator();
HTMLEditorKit.ParserCallback callback = htmlDoc.getReader(0);
parser.parse(br, callback, true);
StringWriter writer = new StringWriter();
HTMLWriter hWriter = new HTMLWriter(writer, htmlDoc);
hWriter.write();
String outPut = writer.toString();
System.out.println(outPut);
System.exit(0);
} -
Non-application exception occurred while processing method createReportsExc
Hi,
Any one get the following exception
Non-application exception occurred while processing method createReportsExcelFile on bean BeanId(bsd#bsdejb.jar#ReportsDownload, null): java.lang.NoSuchMethodError: java.lang.RuntimeException: method <init>(Ljava/lang/Throwable;)V not found
at jxl.write.biff.File.write(File.java(Compiled Code))
at jxl.write.biff.SheetWriter.write(SheetWriter.java(Compiled Code))
at jxl.write.biff.SheetWriter.write(SheetWriter.java(Compiled Code))
at jxl.write.biff.WritableSheetImpl.write(WritableSheetImpl.java:1165)
at jxl.write.biff.WritableWorkbookImpl.write(WritableWorkbookImpl.java:805)
at com.bsdnet.ejb.report.ReportsDownloadEJB.writeToBUReportExcelFile(ReportsDownloadEJB.java(Compiled Code))
at com.bsdnet.ejb.report.ReportsDownloadEJB.createBUReport(ReportsDownloadEJB.java:2151)
at com.bsdnet.ejb.report.ReportsDownloadEJB.createReportsExcelFile(ReportsDownloadEJB.java:411)
at com.bsdnet.ejb.report.EJSRemoteStatelessReportsDownload.createReportsExcelFile(EJSRemoteStatelessReportsDownload.java:49)
at com.bsdnet.ejb.report._ReportsDownload_Stub.createReportsExcelFile(_ReportsDownload_Stub.java:258)
at com.bsdnet.batch.report.ReportsJobProcessingThread.run(ReportsJobProcessing.java:282)
IF Yes, Then Please help me out asap.
Thanks,
Sumit GuptaSince you want to use a class that is not part of your EJB environment you cant access it.
Like you said your ELUWS14 class is part of your web project, most likely to be inside a war. And the session bean inside an ear.
If you need that class on both environments (session beans and web components) the best approach is to create a JAR file and include it there. If it is going to change a lot then the best approach is to have it on your ear (EJB side), and your web components should call the session beans method to invoke operations.
Your business rules should not access your presentation layer:
EJB -> Web components Not a good idea
EJB <-> Web components Not a good idea
EJB <- Web components This is the way to go
So, web components should access classes from the ear, and not viceversa. This is why containers make ear classes accesible to web component, and not in the other way -
Non-application exception occurred while processing method "fnExtRiskAccum"
I am getting the following error when starting the Server ?
Please help me to find out what it means
Non-application exception occurred while processing method "fnExtRiskAccum". Exception data: com.ibm.ejs.container.CreateFailureException: ; nested exception is:
java.lang.reflect.InvocationTargetException
at com.ibm.ejs.container.StatelessBeanO.<init>(StatelessBeanO.java:151)
at com.ibm.ejs.container.CMStatelessBeanO.<init>(CMStatelessBeanO.java:53)
at com.ibm.ejs.container.CMStatelessBeanOFactory.create(CMStatelessBeanOFactory.java:40)
at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:666)
at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:753)
at com.ibm.ejs.container.activator.UncachedActivationStrategy.atActivate(UncachedActivationStrategy.java:78)
at com.ibm.ejs.container.activator.Activator.activateBean(Activator.java:516)
at com.ibm.ejs.container.EJSContainer.preInvoke_internal(EJSContainer.java:2762)
at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:2487)
at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:2472)
at uw.EJSRemoteStatelessUWGC_ejbVERIFY_34c1773e.fnExtRiskAccum(EJSRemoteStatelessUWGC_ejbVERIFY_34c1773e.java:52)
at uw._UWGC_ejbVERIFYRemote_Stub.fnExtRiskAccum(_UWGC_ejbVERIFYRemote_Stub.java:918)
at ren.RNLB_cPL_MAIN.doGet(RNLB_cPL_MAIN.java:3045)
at ren.RNLB_cPL_MAIN.doPost(RNLB_cPL_MAIN.java:65)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at ren.RNLB_cPL_MAIN.service(RNLB_cPL_MAIN.java:4055)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at common.UTIL_cENTRY.doGet(UTIL_cENTRY.java:84)
at common.UTIL_cENTRY.doPost(UTIL_cENTRY.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at common.UTIL_cTUNNEL.doGet(UTIL_cTUNNEL.java:129)
at common.UTIL_cTUNNEL.doPost(UTIL_cTUNNEL.java:151)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.ejs.container.StatelessBeanO.<init>(StatelessBeanO.java:144)
... 64 more
Caused by: javax.ejb.CreateException: Unable to create EJB: UWGC_ejbVERIFYBean.
at uw.UWGC_ejbVERIFYBean.ejbCreate(UWGC_ejbVERIFYBean.java:100)
... 69 moreSince you want to use a class that is not part of your EJB environment you cant access it.
Like you said your ELUWS14 class is part of your web project, most likely to be inside a war. And the session bean inside an ear.
If you need that class on both environments (session beans and web components) the best approach is to create a JAR file and include it there. If it is going to change a lot then the best approach is to have it on your ear (EJB side), and your web components should call the session beans method to invoke operations.
Your business rules should not access your presentation layer:
EJB -> Web components Not a good idea
EJB <-> Web components Not a good idea
EJB <- Web components This is the way to go
So, web components should access classes from the ear, and not viceversa. This is why containers make ear classes accesible to web component, and not in the other way -
Process method in InputProcessor/InputProcessorSupport
Hi All,
To process HTML form data we have to implement/extend
InputProcessor interface /InputProcessorSupport class and
implement/override process method. This process method
returns "java.lang.Object" .
How do I obtain the value of "java.lang.Object" in
destination JSP?
Thanks
VinayVinay,
The return value should just be strigifiable. Look at any WLP example
app to understand the syntax. Secondly, the return value is not a value
for your destination, but a value that determines the flow itself. In
order to share data between an InputProcessor and JSP, use the
PipelineSession instead. Refer to Webflow documentation for more details.
Subbu
Vinay Ram wrote:
Hi All,
To process HTML form data we have to implement/extend
InputProcessor interface /InputProcessorSupport class and
implement/override process method. This process method
returns "java.lang.Object" .
How do I obtain the value of "java.lang.Object" in
destination JSP?
Thanks
Vinay -
Hi,
process method of class Applet throw ISOException. But when it is overwritten by applet developer, i see that the "throws ISOException" is ignored. You can check this from Helloworld example.
Hence i would like to ask when this ISOException occurs? is the exception lost if user overwrites it without stating "throws ISOException" ?
thanks,
Hoang LongISOException is a runtime exception so does not need to be declared as thrown. It can be thrown regardless of the method signature.
Cheers,
Shane -
What is Processing Method and Processing Class in Action Profile
Dear all,
I have defined an action for case management, to trigger an email after saving the case in Enterprise portal.
Action is getting initiated in case document after saving, but after a while it is showing message 'Incorrect'.
In the actions monitor report, error message showing that some problem in Processing Method.
In my action I have maintained settings as below.
Form name - SCMG_SMART_FORM_CASE
Processing class - CL_SCMG_CASE_CONTEXT_PPF
But I don't know what processing method should I give
I could not find and values under F4 functionality.
Please do advice me what method I can use here.
and why we use processing method and processing class.
your help will be highly appreciated.
Thank you
Raghu ramHi
DSD means Daily Salary Deduction for more check this table to understand abd DSD and the respective Processing class 77 V_T7INO1 -
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
KingshukKingshuk 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 -
Invoke BPEL process using a java client - NullPointerException
Hi, We are trying to call a BPEL process using a java client from our Web Application. For some reason the BPEL engine just logs a NullPointerException and exits.
The same SOAP request when through SOAP UI tool works great.
Any help in resolving this is highly appreciated!
We are getting the below exception--
<2006-09-22 09:40:53,687> <DEBUG> <default.collaxa.cube.ws> SOAPRequestProvider
java.lang.NullPointerException
at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processBPELMessage(SOAPRequestProvider.java:269)
at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processMessage(SOAPRequestProvider.java:129)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:869)
at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:460)
at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:177)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
-----------------Hi,
Please ensure that you include the SOAP Header "SOAPAction" in your request. Most importantly, the value for that should be enclosed within double quotes.
For eg;
req.setRequestHeader("SOAPAction", '"process"'); -
How to get data from the GUIBB FORM on processing method PROCESS_EVENT?
Hello Community,
one more question do I have.
I need to process some form data, that were entered by a user. One field was additional added via the method IF_FPM_GUIBB_FORM~GET_DEFINITION, so it is not in the BOL.
I listen to an FPM_EVENT in the IF_FPM_GUIBB_FORM~PROCESS_EVENT.
IF io_event->mv_event_id EQ 'FPM_SAVE_AND_BACK_TO_MAIN' OR io_event->mv_event_id = 'FPM_SAVE_1'.
" Here I need to access the data from the GUINN FROM
ENDIF.
How can I access to the data, entered in the GUIBB FORM?
Thank you and best regards, ChristianHello Jens and Christian,
Thanks very much for your help.
Could you help me check where the problem is ? My detail step is as below:
1. Structure 'S_TR_FILE' , which include component 'MIME_TYPE' with data type 'String' and 'UPLOAD_FILE' with data type 'String'.
2. IF_FPM_GUIBB_FORM~GET_DEFINITION
DATA: lo_structdescr TYPE REF TO cl_abap_structdescr.
FIELD-SYMBOLS: <ls_new_field_descr> TYPE fpmgb_s_formfield_descr.
lo_structdescr ?= cl_abap_typedescr=>describe_by_name( 'S_TR_FILE' ).
eo_field_catalog = lo_structdescr.
APPEND INITIAL LINE TO et_field_description ASSIGNING <ls_new_field_descr>.
<ls_new_field_descr>-name = 'MIME_TYPE'.
<ls_new_field_descr>-label_by_ddic = 'X'.
<ls_new_field_descr>-visibility = '01'.
<ls_new_field_descr>-default_display_type = 'IN'.
UNASSIGN <ls_new_field_descr>.
APPEND INITIAL LINE TO et_field_description ASSIGNING <ls_new_field_descr>.
<ls_new_field_descr>-name = 'UPLOAD_FILE'.
<ls_new_field_descr>-label_by_ddic = 'X'.
<ls_new_field_descr>-visibility = '02'.
<ls_new_field_descr>-default_display_type = 'FU'.
<ls_new_field_descr>-mime_type_ref = 'MIME_TYPE'.
3. After the OVP page is displayed, I select a xlsx file in 'UPLOAD_FILE', and click "upload" button(toolbar on the top page) , I can't get any data from IS_DATA in flush method or CS_DATA in Get_DATA.
Thanks& Best Regards,
Yupeng -
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
-
Why the java.lang.NullPointerException exception occurs when J call Persistence.getPersistenceUtil().isLoaded(entityA, "list") method for multitenant entities?
@Entity
@Table(name = "entity_a")
@Multitenant(MultitenantType.TABLE_PER_TENANT)
@TenantTableDiscriminator(type= TenantTableDiscriminatorType.SCHEMA)
public class EntityA implements Serializable {
@OneToMany(cascade = CascadeType.ALL,
mappedBy = "ea",
fetch = FetchType.LAZY)
private List<EntityB> list= new ArrayList<EntityB>();
@Entity
@Table(name = "entity_b")
@Multitenant(MultitenantType.TABLE_PER_TENANT)
@TenantTableDiscriminator(type= TenantTableDiscriminatorType.SCHEMA)
public class EntityB implements Serializable {
@JoinColumns({...})
@ManyToOne
private EntityA ea;
Main.java
EntityManager em = Persistence.createEntityManagerFactory("PersistenceUnit")
.createEntityManager();
em.getTransaction().begin();
em.setProperty(
EntityManagerProperties.MULTITENANT_PROPERTY_DEFAULT,
"schema"
EntityA entityA = em.find(EntityA.class, "1");
Persistence.getPersistenceUtil().isLoaded(entityA, "list");
em.getTransaction().commit();
Exception in thread "main" Local Exception Stack:
Exception [EclipseLink-69] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: A NullPointerException was thrown while extracting a value from the instance variable [list] in the object [jpatest.EntityA].
Internal Exception: java.lang.NullPointerException
Mapping: org.eclipse.persistence.mappings.OneToManyMapping[otherTaxableIncomeItemList]
Descriptor: RelationalDescriptor(jpatest.EntityA --> [DatabaseTable(entity_a)])
at org.eclipse.persistence.exceptions.DescriptorException.nullPointerWhileGettingValueThruInstanceVariableAccessor(DescriptorException.java:1275)
at org.eclipse.persistence.internal.descriptors.InstanceVariableAttributeAccessor.getAttributeValueFromObject(InstanceVariableAttributeAccessor.java:88)
at org.eclipse.persistence.mappings.DatabaseMapping.getAttributeValueFromObject(DatabaseMapping.java:579)
at org.eclipse.persistence.mappings.ForeignReferenceMapping.getAttributeValueFromObject(ForeignReferenceMapping.java:974)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.isLoaded(EntityManagerFactoryImpl.java:172)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.isLoaded(EntityManagerFactoryImpl.java:153)
at org.eclipse.persistence.jpa.PersistenceProvider.isLoadedWithReference(PersistenceProvider.java:439)
at javax.persistence.Persistence$1.isLoaded(Persistence.java:83)
at jpatest.JPATest.main(JPATest.java:45)
Caused by: java.lang.NullPointerException
at org.eclipse.persistence.internal.descriptors.InstanceVariableAttributeAccessor.getAttributeValueFromObject(InstanceVariableAttributeAccessor.java:76)
... 7 more
Java Result: 1
Thank you, Dragan.I have found the bug. Thx ^o^
-
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 -
Where to include connection processing methods?
In an architecture which uses JSPs as the presentation layer, and contains objects representing each table of an Oracle database (one object per table), should the connection processing be included in the JSPs, or should it be included within the method of each database object that prepares the SQL statement?
By connection processing, I mean methods for establishing the connection, returning a reference to it, and closing it.You should not include that type of logic in the JSP at all! It's usually not clean to do that. You should separate that portion of the code and put them inside the DAO perhaps...
-
I have written a class that uses a WAVEMux at some place. I instantiated a wavemux and called
System.out.println("Before process");
mux.process( buffer , trackno);
System.out.println("After process");
I donno what happens in the process but "After process" is not outputted.ISOException is a runtime exception so does not need to be declared as thrown. It can be thrown regardless of the method signature.
Cheers,
Shane
Maybe you are looking for
-
Recover a delete file on PAGES
I, can anyone help me? Infortunly i erase a file in of pages in my cloud of oages. Can i restore thath file again. Harh shoul i do to recover it. Thank´s Pedro
-
5800 Xpressmusic autodelete data
Friends in my 5800 Xpressmusic there are some problem please suggest me solution. 1. More than 450 message deletes automatically when I connect my handset in mass storage mode in a pc in which pc suite was not installed. 2. I can't view my images sto
-
Queues Stopped when Dispatcher Fails
Hi , We had an issue with our Web dispatcher and most of the messages failed in the step "Receiver Grouping" with the error "HTTP_CLIENT_RECEIVE_FAILED" when calling the mapping runtime. After sometime we also noticed the queues failing with the erro
-
Powerbook G4 OSX 10.5.8 Time Capsule Questions
I just purchased a a TC, and am excited to use it. I have a few questions: I only have 16gb of my 120gb? hard drive left to use. Will the Time Capsule "mirror" my hard drive or can I "move" some of my large files (iTunes and iPhoto) over to the TC to
-
I have an iphone 3gs and after trying to update to ios 5 my phone needed to be restored and is now stuck in "restoring iphone firmware" I have tried powering on and off, reinstalling itunes, my phone is useless. Is this temporary or is it dead?