Java.lang.NullPointerException in the record working time iview
Hello,
I am getting java.lang.NullPointerException when I try to access the record working time iView. Below is the full exception chain.
Please help me out in fixing the issue.
java.lang.NullPointerException
at com.sap.pcuigp.xssutils.pernr.FcEmployeeServicesInterface.getEmployeenumber(FcEmployeeServicesInterface.java:115)
at com.sap.pcuigp.xssutils.pernr.wdp.InternalFcEmployeeServicesInterface.getEmployeenumber(InternalFcEmployeeServicesInterface.java:175)
at com.sap.pcuigp.xssutils.pernr.wdp.InternalFcEmployeeServicesInterface$External.getEmployeenumber(InternalFcEmployeeServicesInterface.java:235)
at com.sap.xss.hr.cat.record.blc.RfcManager.init(RfcManager.java:791)
at com.sap.xss.hr.cat.record.blc.wdp.InternalRfcManager.init(InternalRfcManager.java:248)
at com.sap.xss.hr.cat.record.blc.FcCatRecordInterface.onInit(FcCatRecordInterface.java:344)
at com.sap.xss.hr.cat.record.blc.wdp.InternalFcCatRecordInterface.onInit(InternalFcCatRecordInterface.java:234)
at com.sap.xss.hr.cat.record.blc.wdp.InternalFcCatRecordInterface$External.onInit(InternalFcCatRecordInterface.java:484)
at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.attachComponentToUsage(FPMComponent.java:922)
at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.attachComponentToUsage(FPMComponent.java:891)
at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPMProxy.attachComponentToUsage(FPMComponent.java:1084)
at com.sap.xss.hr.cat.record.vac.calendar.VcCatCalendar.onInit(VcCatCalendar.java:251)
at com.sap.xss.hr.cat.record.vac.calendar.wdp.InternalVcCatCalendar.onInit(InternalVcCatCalendar.java:194)
at com.sap.xss.hr.cat.record.vac.calendar.VcCatCalendarInterface.onInit(VcCatCalendarInterface.java:162)
at com.sap.xss.hr.cat.record.vac.calendar.wdp.InternalVcCatCalendarInterface.onInit(InternalVcCatCalendarInterface.java:146)
at com.sap.xss.hr.cat.record.vac.calendar.wdp.InternalVcCatCalendarInterface$External.onInit(InternalVcCatCalendarInterface.java:222)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:564)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196)
at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:783)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:303)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:761)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:696)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:192)
at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:864)
at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:220)
at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1351)
at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:356)
at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:550)
at com.sap.portal.pb.PageBuilder.wdDoInit(PageBuilder.java:193)
at com.sap.portal.pb.wdp.InternalPageBuilder.wdDoInit(InternalPageBuilder.java:150)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:783)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:303)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:741)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:694)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:192)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
Hi,
All the parameters are maintained in the SU01 but we are in strange situation here only for one test user id we are getting null pointer exception with the time sheet. We compared with the user id which is working there is no difference in the parameters
maintained. Please tell me why this behavior between two user ids.
These two are manager user ids. For employee user ids time sheet is working fine.
Similar Messages
-
Null pointer exception with the Record working time iView
I am facing a strange situation over here, I am testing with three user ids and with only one manager user id I am getting below java runtime error. Please help me out in finding a solution for this. When I log in with the other two test ids I am able to open the iView and submit my time sheet with out any exceptions but only with one user id I am getting this kind of error.
Detailed Error Information Detailed Exception Chain java.lang.NullPointerException at com.sap.pcuigp.xssutils.pernr.FcEmployeeServicesInterface.getEmployeenumber(FcEmployeeServicesInterface.java:115) at com.sap.pcuigp.xssutils.pernr.wdp.InternalFcEmployeeServicesInterface.getEmployeenumber(InternalFcEmployeeServicesInterface.java:175) at com.sap.pcuigp.xssutils.pernr.wdp.InternalFcEmployeeServicesInterface$External.getEmployeenumber(InternalFcEmployeeServicesInterface.java:235) at com.sap.xss.hr.cat.record.blc.RfcManager.init(RfcManager.java:791) at com.sap.xss.hr.cat.record.blc.wdp.InternalRfcManager.init(InternalRfcManager.java:248) at com.sap.xss.hr.cat.record.blc.FcCatRecordInterface.onInit(FcCatRecordInterface.java:344) at com.sap.xss.hr.cat.record.blc.wdp.InternalFcCatRecordInterface.onInit(InternalFcCatRecordInterface.java:234) at com.sap.xss.hr.cat.record.blc.wdp.InternalFcCatRecordInterface$External.onInit(InternalFcCatRecordInterface.java:484) at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.attachComponentToUsage(FPMComponent.java:922) at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.attachComponentToUsage(FPMComponent.java:891) at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPMProxy.attachComponentToUsage(FPMComponent.java:1084) at com.sap.xss.hr.cat.record.vac.calendar.VcCatCalendar.onInit(VcCatCalendar.java:251) at com.sap.xss.hr.cat.record.vac.calendar.wdp.InternalVcCatCalendar.onInit(InternalVcCatCalendar.java:194) at com.sap.xss.hr.cat.record.vac.calendar.VcCatCalendarInterface.onInit(VcCatCalendarInterface.java:162) at com.sap.xss.hr.cat.record.vac.calendar.wdp.InternalVcCatCalendarInterface.onInit(InternalVcCatCalendarInterface.java:146) at com.sap.xss.hr.cat.record.vac.calendar.wdp.InternalVcCatCalendarInterface$External.onInit(InternalVcCatCalendarInterface.java:222) at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:564) at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438) at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196) at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110) at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108) at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215) at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200) at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430) at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362) at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:783) at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:303) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:741) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:694) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253) at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)Hi,
This runtime error occurs when the application fails to resolve the pernr of the logged in user in the backend. Could you please check if the user has correct assignment in IT0105. If you are using CE, kindly check if the CE settings are properly checked. Also check if the IT0105 is correctly shared across all the CE assignments.
Hope this helps
Regards,
Roy -
Changing the default tab in Record Working Time iview of ESS
Dear experts,
How can we change the Default tab from WEEKLY to DAYLY in Record Working Time iview of ESS .We have been told by SAP this is not possible to do.
There may be some changes to this in Ehp 5, but I am not sure.
/Kirsten -
Record Working Time iView Error in Portal
Hi
In Record Working Time ivIew in SAP Portal when we are selcting the date from the Calendar
we are getting the below Error as
The initial exception that caused the request to fail, was:
java.lang.IllegalArgumentException
at java.sql.Date.valueOf(Date.java:138)
at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.DateNavigatorAdapter.onDATENAVIGATORDAYCLICK(DateNavigatorAdapter.java:438)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
... 43 more
For certain dates in Calendar Year 2010, I am not getting the Error .But whichever date I am selecting from Year 2011 I am getting the above error.
Can any one please let me know about this issue
Regards
AlexiAlexi,
check this link
http://wiki.sdn.sap.com/wiki/display/ERPHCM/HOWTOGETRIDOFSPSTACKMISMATCHISSUES and see if there is any compatibility issue.
check for some notes in service market place
Thanks
Bala Duvvuri -
"java.lang.NullPointerException" using the calender-iview
Hi,
We are using SAP NetWeaver Portal 6.0.14.0.0, KM-Version 6.0.14.2.0 and Microsoft Exchange 2000.
Our SysAdmin has integrated Exchange into the portal and I integrated two calender-iviews (one-month-overview & one-daay-overview). Until last week everything worked fine and everybody was able to see his appointments within this two iviews. But now we get the error-message "
java.lang.NullPointerException" in this iviews.
We haven´t changed anything, this error-message appeared suddenly. Has anybody an idea what´s wrong?
Thanks for help.
Greetings,
SvenHi Sven,
(a) You should definitely check the log files (default.X.trc) to get a more specific idea where the error comes from.
(b) If you don't realise immediately where the problem comes from when watching the traces, consider opening an OSS message, for at least a NPE should never be thrown on the UI.
Hope it helps
Detlev -
Java.lang.NullPointerException in the code to read a properties file
I have written the following code to read a properties file...........
<b>
public Property(String fileName)
try
InputStream is = MyClassName.class.getClass().getClassLoader().getResourceAsStream(fileName);
prop.load(is);
is.close();
catch (Exception ex)
System.out.println("The Exception is: " + ex.getMessage());
ex.printStackTrace();
</b>
But this code is giving <b> java.lang.NullPointerException </b> at <b> prop.load(is) </b>
please help me....
regards
Brahmachaitanyahi,
If you are loading a resource (property) file from a jar file you can use
getResourceAsStream("com/test/test.properties").
if the propery file is in outside of your jar file . you can use
Property portalProps = new Property ();
try {
FileInputStream fileInputStream = new FileInputStream("<FilePath + FileName>");
portalProps.load(fileInputStream);
fileInputStream.close();
} catch (IOException e) {
//Log the error
refer the following link for more details
http://www.javaworld.com/javaworld/javaqa/2003-08/01-qa-0808-property.html -
Enhance legend in Record Working Time IView
Hi,
I am working on SAP NetWeaver Portal 7.0(Service Pack 4). New NetWeaver functionality in Record Working Time section(of ESS>Working time ) allows employees to enter their working times for different attendance/absence types showing different colours in calendar for Rejected and Not Released statuses. Now the requirement is to include one more colour to show the approved times in the calendar. Ie, Currently legend has two colors with text, like ( <Red box> Rejected <Light Red box> Not Released), now i have to add ' <Green box> Approve ' beside 'Not Released' text, and if manager approves the time sheet then those dates will be displayed in green color.
If any body worked on the similar type of requirement or having knowledge....please let me know how to achieve this req.
Thanks in advance.HI,
You need to implement BADI for this ..
BADI name : "PT_ABS_REQ"
In the BADI "PT_ABS_REQ" interface "IF_EX_PT_ABS_REQ" you can find the method
"SET_CALENDAR_COLOR" in that you can set the colure for the Absent type ......
Adjust Colors of Calendar and Team Calendar
Functionality
You can use this method to change the colors in the team calendar.
In the standard system, the different statuses for requests have different colors. You can use this method to differentiate the colors of requests depending on the following aspects:
Status of requests (status)
Action that an employee has executed: new request, delete, change (UIA operation)
Subtype of absence (SUBTY)
Full-day or partial-day absence (BEGMT, where BEGMT = 0 signifies a full-day absence)
Application mode ( mode). You specify the application mode in the Select Employees for the Team Calendar IMG activity.
Color Display of Status of Leave Requests(COLORS_ACTIVE). You specify this status in the Specify How Leave Is Displayed and Default Values IMG activity.
Available Colors
You have a choice of 16 colors. The 16 colors are hard coded, that is, you cannot change them or add other ones.
The available colors are stored with their RGB value as constants of the CL_PT_REQ_CONST class. Use these constants if you want to change the colors.
Notes
If you change the colors in the team calendar, you should also adapt the legend accordingly. You can use the Adjust Legend for Calendar and Team Calendar method to do so.
Hope this work!!! -
Enabling "Daily View" on Record Working Time iView
My company uses ESS Portal - Record working Time screen.
We only see Weekly view tab... is there a way to enable the Daily view tab...
how do I go about changing the iView for Daily View... any help is appreciated... I am new to portals so I need expert advise on this..
Thanks a lotHI,
You need to implement BADI for this ..
BADI name : "PT_ABS_REQ"
In the BADI "PT_ABS_REQ" interface "IF_EX_PT_ABS_REQ" you can find the method
"SET_CALENDAR_COLOR" in that you can set the colure for the Absent type ......
Adjust Colors of Calendar and Team Calendar
Functionality
You can use this method to change the colors in the team calendar.
In the standard system, the different statuses for requests have different colors. You can use this method to differentiate the colors of requests depending on the following aspects:
Status of requests (status)
Action that an employee has executed: new request, delete, change (UIA operation)
Subtype of absence (SUBTY)
Full-day or partial-day absence (BEGMT, where BEGMT = 0 signifies a full-day absence)
Application mode ( mode). You specify the application mode in the Select Employees for the Team Calendar IMG activity.
Color Display of Status of Leave Requests(COLORS_ACTIVE). You specify this status in the Specify How Leave Is Displayed and Default Values IMG activity.
Available Colors
You have a choice of 16 colors. The 16 colors are hard coded, that is, you cannot change them or add other ones.
The available colors are stored with their RGB value as constants of the CL_PT_REQ_CONST class. Use these constants if you want to change the colors.
Notes
If you change the colors in the team calendar, you should also adapt the legend accordingly. You can use the Adjust Legend for Calendar and Team Calendar method to do so.
Hope this work!!! -
Record Working Time(WDJ) error
Hi,
I keep getting this "TARGET_HOURS_ERROR" error, when I access the ESS
page in my Portal.. but if I fill the buffer by executing the
READ_TARGET_HOURS Method of the Class CL_XSS_CAT_EMPLOYEE in the
backend (in Test Mode) & then access the Record Working Time iView,
the error is gone.. I'm not sure why the buffer isn't getting filled
when I access the iView directly.The following is our system configuration..
SAP_ABA - SAPKA70012
SAP_BASIS - SAPKB70012
PI_BASIS - SAPKIPYM01
SAP_HR - SAPKE60018
EA-HR - SAPKGPHD18
SAPEP - NW04s SP13
ESS - ERP1.0
Any suggestions/experiences on this error pl?
~Sureshthe WDJ appalication expects a months time when reading the Target Hours.. We had a User Exit to populate the time for only 14 days.. this was causing an exception in the backend whie reading the Target Hours.. Once the User Exit was deactivated, the iView came up as expected..
Thanks to Sireesh ( SAP Development ) for identifying the issue..
~Suresh -
ESS - working time - record working time - blank site
Hi,
if i follow the link <u>record working time</u> in the working time overview i get a blank site.
Has somebody an idea why?Hi Prabhakar,
I looked into the Portal Content directory. Where do i find the Record Working Time iView?
I only see the iViews from the package:
- benefits and payment (x2)
- career and job (x2)
- career & job
- employee search (x2)
- overview
- personal information (x2)
- purchasing (x2)
- travel and expenses (x2)
- work environment (x2)
- working time (x2)
x2 = one ist "area" and one is "serv"
regards
Sleepy_head -
To unhide the columns of " Record Working Time " table
hi experts ,
Can any one suggest me how to unhide some columns of the table "Record Working Time" .
Actually I have tried the following procedure : content admin -> portal content -> iview -> Rclickctrlalt and check the property of the table and displayed all the columns . It shows all the columns perfectly .
Finally , when I checked the table in Employee self service -> Working time -> Record working time , I can not see some columns which are visible in content admin "Record Working Time " iview .
It is a standard webdynpro java application "CatDataRecord" .hi gorlisrinu ,
Thanks for your reply .
I have all the administration right . When I check the iview in 'Content Admin' I can see all the columns , but when I check the same iview under 'ESS role' i can not see some of the columns of "Record Working Table ". That is my problem . Can you tell me what is the reason behind it ? I always save all the changes after any modification .
Regards ,
Sumana
Edited by: sumana05 on Nov 18, 2011 7:39 AM -
How to restrict the dropdown values in Att/abs type in Record Working Time
Hello experts,
We are implementing ESS business package. In the Record Working time, within the Weekly View and Daily View tabs, there is a column Att/abs.type which has several drop down values - like: floating value, Funeral Leave, Military Reserve, Regular Attendance, etc. Our requirement is to restrict the dropdown values by means of showing only one of these values (say: Regular Attendance) and others should not be shown. How do we achieve this?
Thanks
Vicky R.Hi Siddarth,
Thanks for the info. By the way, this table info is not mentioned in the Business Package documentation. Which documentation are you referring to?
Thanks
Vicky R. -
Java.lang.NullPointerException: When Get the PDF File Name
Hi,
i try to follow the blog on <b>Handling FileUpload and FileDownload in NetWeaver Developer Studio(NWDS) 2004S</b> on /people/rekha.malavathu2/blog/2006/12/12/handling-fileupload-and-filedownload-in-netweaver-developer-studionwds-2004s
as i create a fileupload and i wish to get the file name and the pdf, then i to run and deploy it but i get <b>java.lang.NullPointerException</b>
the code are as below when i click on send email button
IPrivateEmail.IFileUploadNodeNode node = wdContext.nodeFileUploadNode();
IPrivateEmail.IFileUploadNodeElement fileUploadEle = node.createFileUploadNodeElement();
try{
IWDResource resource = WDResourceFactory.createResource(wdContext.currentContextElement().getFileUploadUI().read(true), wdContext.currentContextElement().getFileUploadUI().getResourceName(), WDWebResourceType.PDF, true);
fileUploadEle.setFileUploadAttr(resource);
fileUploadEle.setFileUploadName(wdContext.currentContextElement().getFileUploadUI().getResourceName());
node.addElement(fileUploadEle);
}catch(Exception e){
wdComponentAPI.getMessageManager().reportSuccess("ERROR"+e.getMessage());
but i wonder which part of the code i did wrongly.. as i wish to insert into my send email code
Properties props = new Properties();
String host = "SMTP HOST";
props.put("mail.smtp.host", host);
Session session = Session.getInstance(props, null);
MimeMessage message = new MimeMessage(session);
Address toAddress = new InternetAddress();
Address fromAddress = new InternetAddress();
Address ccAddress = new InternetAddress();
Address bccAddress = new InternetAddress();
try
MimeMultipart multipart = new MimeMultipart();
BodyPart messageBodyPart = new MimeBodyPart();
if (! wdContext.currentEmailElement().getFrom().equals(""))
fromAddress = new InternetAddress(wdContext.currentEmailElement().getFrom());
message.setFrom(fromAddress);
if (! wdContext.currentEmailElement().getTo().equals(""))
toAddress = new InternetAddress(wdContext.currentEmailElement().getTo());
message.setRecipient(Message.RecipientType.TO, toAddress);
if (! wdContext.currentEmailElement().getCc().equals(""))
ccAddress = new InternetAddress(wdContext.currentEmailElement().getCc());
message.setRecipient(Message.RecipientType.CC, ccAddress);
if (! wdContext.currentEmailElement().getBcc().equals(""))
bccAddress = new InternetAddress(wdContext.currentEmailElement().getBcc());
message.setRecipient(Message.RecipientType.BCC, bccAddress);
if (! wdContext.currentEmailElement().getSubject().equals(""))
message.setSubject(wdContext.currentEmailElement().getSubject());
if (! wdContext.currentEmailElement().getBody().equals(""))
messageBodyPart.setText(wdContext.currentEmailElement().getBody());
multipart.addBodyPart(messageBodyPart);
messageBodyPart = new MimeBodyPart();
String filename = IWDResource.getResourceName();
DataSource source = new FileDataSource(filename);
messageBodyPart.setDataHandler(new DataHandler(source));
messageBodyPart.setFileName(source.getName());
messageBodyPart.setHeader("Content-Type","application/pdf");
multipart.addBodyPart(messageBodyPart);
message.setContent(multipart);
Transport.send(message);
catch (AddressException e)
wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
e.printStackTrace();
catch (SendFailedException e)
wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
e.printStackTrace();
catch (MessagingException e)
wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
e.printStackTrace();
so i wonder could anyone help me out.. as i need to get the pdf filename order to put into the variable call <b>filename</b> at the send mail code.
below is the error message
java.lang.NullPointerException
at com.sap.example.uploademail.Email.wdDoInit(Email.java:124)
at com.sap.example.uploademail.wdp.InternalEmail.wdDoInit(InternalEmail.java:146)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:748)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:283)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)facing same issue.
jdev 10.1.3.3.0, on expanding the database connection, I get a null pointer exception.
On the testing the connection it says 'success' though.
any inputs ? -
JDBC Adapter - Error - java.lang.NullPointerException
HI
I am working on a JDBC to IDOC Scenario in PI 7.1 version, and configured the JDBC channel, However when I activated I do see the following error on the LOG on NWA
Message: Stopped unexpectedly - reconfigure and activate to continue processing. Error: java.lang.NullPointerException
Date: 2010-03-04
Time: 10:14:50:113
Category: /Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/JDBC
Location: com.sap.aii.adapter.jdbc.JDBC2XI.invoke()
Application:
Thread: XI JDBC2XI[JDBCSender/MCM_XBOX_BS_DEV/*]_2153
Data Source: j2ee\cluster\server1\log\applications_01.log
Correlator ID: 17089510001881001
Argument Objects:
Arguments:
DSR Component: nent20_CWX_1708951
DSR Transaction: 3fb11ea7266c11df9a91001e0bc80f6a
DSR User:
Message Code:
Session: 11604
Transaction:
User: J2EE_GUEST
Host: nent29
System: CXW
Instance: DVEBMGS00
Node: server1
Can anyone give idea how to resolve this issue
Thanks
PR
Edited by: PR on Mar 4, 2010 1:23 PM
Edited by: PR on Mar 4, 2010 1:23 PM
Edited by: PR on Mar 4, 2010 1:23 PMError: java.lang.NullPointerException
this error usually comes when you have used the wrong connection parameters in the adapter.
confirm the parameters once again -
Java.lang.NullPointerException: null error sending email
I built a very simple process:
Here are settings for email startpoint:
Email settings on server:
My local mail server is working fine.
When i send an email to [email protected] i receive such answer:
LiveCycle ES has tried to process your request and encountered the following error:
java.lang.NullPointerException: null
Procces recording is empty. It means that it doesnt even start, right?
Any suggestions? What`s wrong?From the existing process remove the "Route" from "Email startpoint" to "Send with Documents", so here it can be tested "Email startpoint" alone. To test this send an email to configured email inbox and check that is processed or not.
Create another new process and place only "Send with Documents" service.
From livecycle workbench can invoke the each process on its own, to test is these services are working properly.
Logs can be found in server, get the path(may be websphere/weblogic/jbos) details from your environment.
Maybe you are looking for
-
Selecting and copying only the black and gray of picture
Hi everyone, Looking for some help. I am a Paramedic Instructor and want to clean up some heart rhythms to make them more neat and presentable for use during class. Below is the sort of image I would be working with. What I would like to do is remove
-
Mimo Monitor via USB and additional monitor via mini-display?
Hi, I currently have a 2009 MBP, with a second monitor I attach via the mini-display port. I'm thinking of adding a USB monitor like this one - http://www.mimomonitors.com/products/imo-pivot-touch Will the MBP/OS X support this additional screen?
-
Hi all, coming to the ETLs used . i want to know what is the importance of FDM .cant i do with anyother ETL .anyideas are appreciated Praveen
-
Hi All, Do anyone know uploading ABAP roles in Portal programatically instead 'Role upload' method? Thanks & Regards V.Das
-
Could Anybody tell me through which JS file the filter view will be showed ? I want to format the showing style.