Using DateAdd and getting Null Pointer Error

I am using the following code below:
<cfoutput query="getpeople">
<cfset time2 = TimeFormat(getpeople.lunch_out_time,
"hh:mm")>
<!---<cfset time3 = DateAdd("h", 0, time2)> --->
<cfset time4 = DateAdd("n", 10, time2)>
I have commented out the adding 0 hours and am trying to add
10 minutes to time2 a variable that is set by getting a value from
a database however when I try and do this I get a
The system has attempted to use an undefined value, which
usually indicates a programming error, either in your code or some
system code.
Null Pointers are another name for undefined values.
Please help, thanks!

No the issue was that I had someone in the dateabase with no
time listed so that was the issue. Took care of it and it's working
fine now :-) Thanks for the thought.

Similar Messages

  • I am using podbean and get a parsing error message when submitting my feed??

    I submit my feed and this error message shows up
    Error parsing feed: Invalid XML: error on line 24: The element type "link" must be terminated by the matching end-tag "</link>"
    I'm not literate in this department of tech
    Any help would be greatly appreciated
    The url is
    http://afishownado.podbean.com/feed/

    This is an open forum, not Adobe support... you need Adobe support to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • Simple question re: Avoiding null pointer errors

    In my program, I ask the user to enter a 3-letter code, then try to determine whether that code belongs to one of a list of objects.
    I keep getting null-pointer errors. I understand why, but don't know how to get around it. I don't know how to format my loop.
    (Simple, I know. But I'm just starting out!)
    Any help would be appreciated.

    This may not come through clearly; my first day using this system.
    The format I'm trying to use is this:
    if (chosenCode.compareTo(airport[counter].getCode()) != 0)
    counter++;
    } while ((chosenCode.compareTo(airport[counter].getCode()) != 0) && (counter != size));
    Trying to go through list until I find chosenCode.
    Any suggestions?

  • When passing Node to parse() method get NULL pointer exception.

    All,
    I trying to pass a Node to parse method to get the NodeType object back and getting
    null pointer exception.
    Example
    xml
    <root>
    <Test>
    <someData>ABC</someData>
    </Test>
    </root>
    if pass the Test node to get Test object back I am getting null pointer exception.
    Thanks for all ur help
    Shoeb

    file 2
    ~~~~
    import javax.swing.*;
    public class ExtendedPage extends BasePage
    private JTextField objJTextField = null;
    private JButton objJButtonBrowse = null;
    Change the line in bold to
    private JTextField objJTextField;
    And everything works.

  • ViewDocument.jsp gets null pointer exception when using report token instead of docid for DHTML

    <p>The following command gets a null pointer error showing up in Tomcat log:</p><p>../../viewers/cdz_adv/viewDocument.jsp?sEntry=<%=strEntry%>&lang=en&iDocID=830&ViewType=I&kind=Webi</p><p>where sEntry is a valid report token </p><p>but works fine if the ViewType is H  or id=830 is used instead of sEntry.  When the above command is issued the drill columns are displayed correctly but no report is shown and a null pointer exception is encountered.</p>

    There is a Consulting Solution called BOInterface that Business Objects Global Services sells and that may help you if you are implementing your own "InfoView".
    A description is <a href="http://www.mnsoft.org/bointerface0.0.html">here</a>.
    Particularly, see the <a href="http://www.mnsoft.org/pmiv.0.html">Poor Man's InfoView</a> web application.
    Contact me via direct email for more information if this is interesting for you.
    HTH,
    M
    Matthias Nott -  Business Objects
    Service Line Leader Products EMEA
    [email protected]

  • I just tried to install the 11.4 update (or whichever one is the most recent update as of 1/26/2014) and when it failed i tried to install manually and now whenever i try to use it, i get the following error: the application has failed to start because MS

    i just tried to install the 11.4 update (or whichever one is the most recent update as of 1/26/2014) and when it failed i tried to install manually and now whenever i try to use it, i get the following error: "The application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem." Right after i click ok i then get this error: "Itunes was not installed correctly. Please reinstall Itunes. Error 7 (Windows error 126)." I tried to uninstall Itunes and then reinstall the 11.03 version but that didnt work either. I want to know if i copy all of the music in my itunes folder to an external without consolidating can i still transfer all my itunes music from my current windows xp pc to a brand new one and have my current itunes library in my new pc? Basically i just want to know 3 things: What exactly does consolidating the itunes library do? Can i copy, paste, and transfer my itunes library to an external and from there to a new pc? Will i be able to transfer my itunes library without consolidating the files?

    I have found a temporary solution, allowing the previous version of iTunes (v. 11.1.3 (x64) in my case) to be re-installed.  It will allow you to re-establish use of iTunes until the Apple software engineers fix the most recent disasterous upgrade (v. 11.1.4).  Please see and follow the procedure in the following article:http://smallbusiness.chron.com/reverting-previous-version-itunes-32590.html   The previous version works beautifully.

  • I am facing problem while reading values from properties file ...i am getting null pointer exception earlier i was using jdeveloper10g now i am using 11g

    i am facing problem while reading values from properties file ...i am getting null pointer exception earlier i was using jdeveloper10g now i am using 11g

    hi TimoHahn,
    i am getting following exception in JDeveloper(11g release 2) Studio Edition Version 11.1.2.4.0 but it works perfectly fine in JDeveloper 10.1.2.1.0
    Root cause of ServletException.
    java.lang.NullPointerException
    at java.util.PropertyResourceBundle.handleGetObject(PropertyResourceBundle.java:136)
    at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
    at java.util.ResourceBundle.getString(ResourceBundle.java:334)
    at org.rbi.cefa.master.actionclass.UserAction.execute(UserAction.java:163)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

  • I am running 10.7.5 and getting Time Machine error The backup disk image "/Volumes/Data/Kathy P's MacBook.sparsebundle" is already in use. what do i do now?

    i am running 10.7.5 on an older MacBook and getting Time Machine error The backup disk image “/Volumes/Data/Kathy P’s MacBook.sparsebundle” is already in use. what do i do now?

    See Pondini's TM FAQs, for starters.

  • While partitioning in Lion 10.8, I get the following error message: I have been attempting to partition a 2 GB hard drive that I just formatted using the Disk Utilty in Mountain Lion (10.8) and get the following error message:  DiskManagementTool has died

    I have been attempting to partition a 2 GB hard drive that I just formatted using the Disk Utilty in Mountain Lion (10.8) and get the following error message:
    DiskManagementTool has died. Disk Utility will need to be restarted.  The log shows the following:
    2012-09-10 11:20:51 -0700: Preparing to partition disk: “HitachiG ST Media”
    2012-09-10 11:20:51 -0700:      Partition Scheme: GUID Partition Table
    2012-09-10 11:20:51 -0700:      2 partitions will be created
    2012-09-10 11:20:51 -0700:
    2012-09-10 11:20:51 -0700:      Partition 1
    2012-09-10 11:20:51 -0700:           Name          : “Alex's External Storage”
    2012-09-10 11:20:51 -0700:           Size          : 1.5 TB
    2012-09-10 11:20:51 -0700:           File system     : Mac OS Extended (Journaled)
    2012-09-10 11:20:51 -0700:           Do not erase contents
    2012-09-10 11:20:51 -0700:
    2012-09-10 11:20:51 -0700:      Partition 2
    2012-09-10 11:20:51 -0700:           Name          : “Alex's External Storage 2”
    2012-09-10 11:20:51 -0700:           Size          : 500.05 GB
    2012-09-10 11:20:51 -0700:           File system     : Mac OS Extended (Journaled)
    2012-09-10 11:20:51 -0700:
    2012-09-10 11:20:51 -0700: Beginning partition operations
    2012-09-10 11:20:51 -0700: DiskManagementTool has died. Disk Utility will need to be restarted.
    2012-09-10 11:20:52 -0700: DiskManagementTool has died. Disk Utility will need to be restarted.
    2012-09-10 11:20:52 -0700: DiskManagementTool has died. Disk Utility will need to be restarted.
    2012-09-10 11:20:52 -0700: DiskManagementTool has died. Disk Utility will need to be restarted.
    2012-09-10 11:20:55 -0700: Disk Utility started.
    Does anyone have any thoughts?  Cant find anything on the web with this

    I have been attempting to partition a 2 GB hard drive that I just formatted using the Disk Utilty in Mountain Lion (10.8) and get the following error message:
    DiskManagementTool has died. Disk Utility will need to be restarted.  The log shows the following:
    2012-09-10 11:20:51 -0700: Preparing to partition disk: “HitachiG ST Media”
    2012-09-10 11:20:51 -0700:      Partition Scheme: GUID Partition Table
    2012-09-10 11:20:51 -0700:      2 partitions will be created
    2012-09-10 11:20:51 -0700:
    2012-09-10 11:20:51 -0700:      Partition 1
    2012-09-10 11:20:51 -0700:           Name          : “Alex's External Storage”
    2012-09-10 11:20:51 -0700:           Size          : 1.5 TB
    2012-09-10 11:20:51 -0700:           File system     : Mac OS Extended (Journaled)
    2012-09-10 11:20:51 -0700:           Do not erase contents
    2012-09-10 11:20:51 -0700:
    2012-09-10 11:20:51 -0700:      Partition 2
    2012-09-10 11:20:51 -0700:           Name          : “Alex's External Storage 2”
    2012-09-10 11:20:51 -0700:           Size          : 500.05 GB
    2012-09-10 11:20:51 -0700:           File system     : Mac OS Extended (Journaled)
    2012-09-10 11:20:51 -0700:
    2012-09-10 11:20:51 -0700: Beginning partition operations
    2012-09-10 11:20:51 -0700: DiskManagementTool has died. Disk Utility will need to be restarted.
    2012-09-10 11:20:52 -0700: DiskManagementTool has died. Disk Utility will need to be restarted.
    2012-09-10 11:20:52 -0700: DiskManagementTool has died. Disk Utility will need to be restarted.
    2012-09-10 11:20:52 -0700: DiskManagementTool has died. Disk Utility will need to be restarted.
    2012-09-10 11:20:55 -0700: Disk Utility started.
    Does anyone have any thoughts?  Cant find anything on the web with this

  • When I publish a SWF/HTML5 module with Captivate 8 and try to run it using IE9 - I get the following error "The content you are viewing is not supported in the current Document Mode" - anyone know why?

    When I publish a SWF/HTML5 module with Captivate 8 and try to run it using IE9 - I get the following error "The content you are viewing is not supported in the current Document Mode" - anyone know why?

    TLCMediaDesign wrote:
    I've seen a lot of threads about getting rid of these kind of messages. Those messages are there for a reason most of the time. If you have CSS animations or other HTML5 standards that cannot be rendered in IE9 they won't magically start working becuse you got rid of a message. I use IE9 since that is the minimum standard for the client. I have never seen that message publishing to HTML5 content.
    IMO, if your client has IE9 I think that you should develop with IE9 in mind not IE11.
    When you say "develop with IE9 in mind not IE11" do you mean use SWF instead of HTML5? I used the standard question types, and a converted PowerPoint presentation. I didn't add anything out of the ordinary.

  • Null pointer error if not started with 1st in string

    hi, this little pratice is about building a simple shopping cart. the TOAD.JSP will display the item list and quantity, user could check item and input the quantity that they want. if the user input larger quantity than database, servlet will sent the back to TOAD.jsp and show message. now it works if selected from 1 item, but if selected 2nd or 3rd, it will have null pointer error over here:
    for(int i=0; i<ItemList.size(); i++)
    newit = (ItemBean)ItemList.get(i);
    if (item != null && item.equals(newit.getItem()) )
    %>
    <tr>
    <td ><input type="checkbox" name = "item" value="<%= newit.getItem() %>"><b><%= newit.getItem() %> </b><br></td>
    <td><input type=text name="<%= newit.getItem() %>Qty" value="<%= orderQty%>"></td>
    </tr>
    <tr><td colspan = 2>
    <font size="3" color="red">
    The item <%= newit.getItem() %> is NOT available in stock</font>
    </td>
    </tr>
    <%
    } else {
    %>
    <tr>
    <td ><input type="checkbox" name = "item" value="<%= newit.getItem() %>"><b><%= newit.getItem() %> </b><br></td>
    <td><b><input type=text name="<%= newit.getItem() %>Qty" value="<%= newit.getQty()%>"></b> </td>
    </tr>
    <%
    %>
    thanks for your time!

    You have prvided unsufficent information and poorly formatted code and as such no meaningful answer can given you at present.
    But here is the best that one can guess at.
    You have a null somewhere.
    Is it coming from this code? I am going to say no.
    Where does it come from? I don't know.
    Where should you look? In the code that does processing to see what happens when yuo have more than one item.
    What should you do next? Start putting in some debugging and tracing statements to see where you are heading off into the null abyss.

  • Help please I get Null Pointer Exception with my SQL query

    The following statement gives me a null pointer exception when executed
    from the doPost of my servlet.
    rs=stmt.executeQuery(sqlQuery);
    The error message reads:
    java.lang.NullPointerException
         at stockserv.Servlet1.doPost(Servlet1.java:142)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    ===etc.
    when I execute the same statement and query (same DB and table) from a standard java
    program I do not get the error and get the propper result.
    Any obvious thing I should check?
    Thanks

    Yes line 142 is as follows
    rs=stmt.executeQuery(sqlQuery);
    I also tried it with the folowing literal statement and get the same error.
    rs=stmt.executeQuery("select * from table1 Where symbol= 'brt' ");
    Does null pointer mean I am sending a null query or something else?
    Again this same statment works from a regular java (non-server)program.
    Thanks Again

  • Trying to install itunes on windows vista and get the following error message:

    Trying to install itunes on windows vista and get the following error message: An error occurred during the installation of assembly "Microsoft.VC80.CRT,version="8.0.50727.4053",type="win32",publicKey Token="1fc8b3b9a1e3b",process orArchitecture="x86"". Please refer to Help and Support for more information. HRESULT: 0x80070424.

    A broken Windows Modules Installer then. It's a bit of an involved fix getting past it, but we've had success here with it in the past.
    First, I'd strongly suggest setting up a system restore point.
    Now try the Scenario III treatment from the following document:
    Windows Update Error 80070424 in Vista
    Head back into Windows Update and attempt to get updates again. If they still fail, this time with an 8000FFFF error code, try the following Microsoft document:
    Windows Update error 8000FFFF
    If you get Windows Updates flowing again, stock up on any you're behind on (restarting the PC when requested to do so). This may take some time and may have to be done in several batches, depending on how far you've fallen behind. Basically, keep going back to Windows Update until it stops offering you new updates.
    After the updates have been installed, restart the PC one more time (in order to ensure that any pending installs requiring a restart have been resolved).
    Now try another iTunes install. Does it go through without the 0x80070424 this time?

  • I have recently restored everything on my iMac after getting a new hard drive. When i try to use Elements, i get the following error code   ERROR  150:30. Any ideas?

    I have recently restored everything on my iMac after getting a new hard drive. When i try to use Elements, i get the following error code   ERROR  150:30. Any ideas?

    Did you use migration assistant to copy over programs, documents, and settings? You can't do that with PSE. Elements is not a tidy package in accordance with the apple developer guidelines. The installer strews stuff all of your hard drive in place the migration assistant isn't programmed to look and you can never hope to find all h the bits. You must always install PSE from scratch on a new machine. By attempting to copy it you have made a lot of trouble for yourself.
    You will need to download and run this:
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    and then you can go around and manually remove what you can reach. Look in applications, your hard drive>library>application support>adobe, your username>library>preferences. In the user library also delete any saved application states for PSE.
    Then you can reinstall from scratch.

  • In trying to sync my iPad w/my MPB using iTunes, I get the following error message:  "The iPad cannot be synced.  An unknown error occurred (1140).  Any hints/ideas on how to fix?

    In trying to sync my iPad (3d gen) w/my MPB using iTunes, I get the following error:   "the iPad cannot be suynced.  An unknown error occurred (1140).   Can anyone give me a suggested fix, please?

    ok---I stopped the sync process of photos and now everything else syncs but still cannot eject my ipod.  Will try other tips on this website.  Thank you

Maybe you are looking for

  • Proxy was not working  in sap r/3

    Hi All, I have a scenario from jdbc to SAP.I have made serverproxy.The proxy was not working.I have test the proxy backend it is working fine,but i am staring jdbc channel the data was not insert in to the database table in sap.I have checked in sxmb

  • Save for Web default folder in PSE 11

    On my Windows 7 system, in PSE 8 when I select Save for Web, it defaults to saving the image in a folder I chose that is separate from the one I used in Open. (Save and Save As default to the folder I opened the image from, and PSE 11 works the same

  • How to reset a form instead of all the forms in the document?

    I installed a button in each page of my file my (ten pages, each one with a different one form) to give the user the faculty of clear specifically through a single choice But this reset button resets all the pages. I took care to rename this button i

  • Error messages BAPI

    Hi all, Again with the 'BAPI_GOODSMVT_CREATE'. I wat to create a error messages file, where it display me the reason why the paramenter gt_bapigm_headret in some cases is initial. How can I do it? Thanks in advance. Regards, Marisol.

  • How to save my photos in a different format?

    my photos seem to automatically be saved as Qmob. How can I change it to jpeg when burning to a disc?