Why is the giving me this error (method does not return a value) PLEASE !!

I have this code and it is giving me this error and I don't know how to fix it
can anyone out there tell me why
I have included the next line of code as I have had problems in the curly brackets in the past.
The error is
"Client.java": Error #: 466 : method does not return a value at line 941, column 3
Please help
THX TO ALL
private Date DOBFormat()
    try
      if
        (MonthjComboBox.getSelectedItem().equals("") || 
         DayjComboBox.getSelectedItem().equals("") ||
         YearjComboBox.getSelectedItem().equals("")){
      else
        String dateString = StringFromDateFields();
        SimpleDateFormat df = new SimpleDateFormat("dd/mm/yyyy");
        Date d = df.parse(StringFromDateFields());
        System.out.println("date="+d);
        return d;
    catch (ParseException pe)
      String d= System.getProperty("line.separator");
      JOptionPane.showMessageDialog( this,
       "Date format needs to be DD/MM/YYYY,"+ d +
       "You have enterd: "+ StringFromDateFields()   + d +
       "Please change the Date", "Date Format Error",
       JOptionPane.WARNING_MESSAGE);
      return  null;
  //File | Exit action performed
public void jMenuFileExit_actionPerformed(ActionEvent e) {
  System.exit(0);
  }

Fixed it needed to have a return null;
this is the code
if
        (MonthjComboBox.getSelectedItem().equals("") ||
         DayjComboBox.getSelectedItem().equals("") ||
         YearjComboBox.getSelectedItem().equals("")){
        return null;

Similar Messages

  • I've installed itunes twice. It worked the first time but after I restarted my computer it kept giving me this message: Itunes was not correctly installed. Please reinstall itunes. Error 7 (Windows error 127). What's wrong?

    I've installed itunes twice. It worked the first time but after I restarted my computer it kept giving me this message: Itunes was not correctly installed. Please reinstall itunes. Error 7 (Windows error 127). What's wrong?

    See the second box in Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help.

    Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help. BTW the same 'Save As' dialog in other applications still allow the backspace button to go up one level in the directory.

    cor-el,
    I kept forgetting and procrastinating about following your instructions, since I have internet access only for limited amounts of time and usually I am busy with important tasks when I am.
    Out of the blue, the problem corrected itself (the Save As box started to open full screen, then shrunk down to a normal size and the edges can now be dragged to a custom size).
    Even the copy and paste problem in the filenaming area seems to have been less troublesome lately even though there have been no updates to Firefox in a few weeks.
    Even though I marked the solution as not helpful, the problem has in fact been resolved. I will save the solution instructions in case the issue returns.

  • Can't run a workflow manually. I got this error: 'StartWorkflowOnListItem' does not have an implementation.

    Hello Everybody,
    I have a site collection in sharepoint 2013. When I go to site contents and then click on workflows I got this error:
    Method 'StartWorkflowOnListItem' in
    type 'Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider' from
    assembly 'Microsoft.SharePoint.WorkflowServices, Version=15.0.0.0,
    Culture=neutral, PublicKeyToken=71e9bce111e9429c' does not have an
    implementation.
    Then I created a site workflow using SharePoint designer 2013 and I published, Still the same error.
    I created a list and a workflow associated to that list. That workflow is configured to run manually for every item in that list. Again when I go to the item in the list and click workflows I got the same error.
    What Am I missing?
    Please, Can anyone help me?

    I'm having this issue as well, the apparent fix is to install
    an additional patch to the farm servers. I installed the patch in my dev environment and it takes SharePoint down for about 5 minutes per install, but doesn't require a reboot.
    Source:
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/b189e4b8-bb9e-4ade-a3d5-cd2e0f90e93f/workflow-not-working-after-installing-service-pack-1-and-patches?forum=sharepointadmin

  • I have installed IOS5 on my iPhone. There is supposed to be a camera icon on the lock screen giving the ability to take a photo without unlocking the phone. That camera icon does not appear. Help, please.

    I have installed IOS5 on my iPhone. There is supposed to be a camera icon/button on the lock screen that enables you to take photos without unlocking the camera. That icon/button does not appear. Do I need to configure something to get the icon to appear?

    Double click your home button when the phone is locked. The camera icon will show up then.

  • Why this candlestick Chart does not returns an URL as a link ?

    Hi,
    I have done a nice Candlestick Flash Chart. But The problem is that the link does not work. When I click on a point - the cross -, nothing happens, which means the URL is not displayed in the URL zone of the navigator - I am under Firefox. I have been using this technique on other charts (2D Column) and it was working nicely. I don't see why it is not working in the Candlestick type chart. I have been outputting the result of the PL/SQL into an item to check if the SLQ generated by the PL/SQL function was coorect and tested it under SQL Developper and I do get good results and nices URLS under SQL Developper. Thus is why i don't understand why this is not working here.
    DECLARE
    X VARCHAR2 (4000);
    BEGIN
    x := 'SELECT
    ''f?p=&APP_ID.:8:&SESSION.:GET_DETAIL_MONTH:NO::P8_MONTH:''
    ||TO_CHAR(TRUNC(DATE1, ''MM''), ''MM/YY'') LINK,
      TO_CHAR(TRUNC(DATE1, ''MM''), ''MM/YY'') LABEL,
      AVG(VALEUR) OPEN,
      MAX(VALEUR) HIGH,
      MIN(VALEUR) LOW,
      AVG(VALEUR) CLOSE FROM EVV_'|| UPPER (:p184_ename) ||
    ' WHERE CLEF_VAR = (SELECT CLEF_VAR FROM SITE_ECHELLE WHERE SITE = '''
    || UPPER (:p184_ename) ||
    ''') AND DATE1 BETWEEN TO_DATE (''01/01/'
    ||:P8_YEAR||'000000'', ''DD/MM/YYYYHH24MISS'') AND TO_DATE (''31/12/'
    ||:P8_YEAR||'235959'', ''DD/MM/YYYYHH24MISS'')
    GROUP BY TRUNC(DATE1, ''MM'')
    ORDER BY TRUNC(DATE1, ''MM'')';
    RETURN (X);
    END;Example of SQL generated by the above function :
    SELECT 'f?p=12400:8:1473118156348570:GET_DETAIL_MONTH:NO::P8_MONTH:'
    ||TO_CHAR(TRUNC(DATE1, 'MM'), 'MM/YY') LINK,
    TO_CHAR(TRUNC(DATE1, 'MM'), 'MM/YY') LABEL ,
    AVG(VALEUR) OPEN,
    MAX(VALEUR) HIGH,
    MIN(VALEUR) LOW,
    AVG(VALEUR) CLOSE
    FROM EVV_E007
    WHERE CLEF_VAR =
    (SELECT CLEF_VAR FROM SITE_ECHELLE WHERE SITE = 'E007'
    AND DATE1 BETWEEN TO_DATE ('01/01/2006000000', 'DD/MM/YYYYHH24MISS') AND TO_DATE ('31/12/2006235959', 'DD/MM/YYYYHH24MISS')
    GROUP BY TRUNC(DATE1, 'MM')
    ORDER BY TRUNC(DATE1, 'MM')
    Example of output of the link :
    f?p=12400:8:1473118156348570:GET_DETAIL_MONTH:NO::P8_MONTH:01/06     f?p=12400:8:1473118156348570:GET_DETAIL_MONTH:NO::P8_MONTH:02/06     
    Thank you for your kind answers !

    Hello Christian,
    I first thought that your url shouldn't contain / (in your month format - better to use a dash -).
    But then I remembered the Candlestick chart that is standard in APEX is having a bug.
    I did a quick test here: http://anychart.apex-evangelists.com/pls/apex/f?p=454:8:0::NO:::
    On the left you see the default chart in APEX (based on Anychart 3.3), if you click on the candle it doesn't show hello. If you click on the right chart it does.
    The right chart is based on Anychart 5 and makes use of our integration kit.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/
    REWARDS: Please remember to mark helpful or correct posts on the forum

  • Custom Integrator - Date Picker/LOV does not return a value to the cell

    Hi,
    I have configured a webADI template with a date picker in it. Though the picker is rendered when i double-click on the cell, the selected date is not populated back. Same happens for any other list of values may render in the integrator. Any suggestions on debugging this issue.
    Regards,
    Vinayaka

    I have got the LOV working now. The issue was that I had not provided the table-select-column with the interface column name. It was set to the table column name.
    Regards,
    Vinayaka

  • The .blueMultiplier (movie clip color property) does not take new value..?

    It seems I can not assign a new value to the .blueMultiplier (a movie clip color property) using AS3 ????!!!
    I have a basic movie clip 'mymc' in my scene, and this AS3 code:
    trace (mymci.transform.colorTransform.blueMultiplier);
    mymc.transform.colorTransform.blueMultiplier = 0;
    trace (mymc.transform.colorTransform.blueMultiplier);
    Values that are returned:
    1
    1
    What am I missing?
    Thanks.

    you can't assign transform/colorTransform properties directly.  you update a transform/colorTransform instance and assign your object's transform/colorTransofrm instance to be the updated transform/colorTransform instance:
    var ct:ColorTransform = mymc.transform.colorTransform;
    ct.blueMultiplier = 0;
    mymc.transform.colorTransform = ct;

  • Toplink generate the SQL statement correctly but it does not return any row

    Hi
    I faced an strange problem when using Toplink as JPA provider. Following snippet shows how I create and execute a query using Toplink JPA:
    q = em.createQuery("SELECT B FROM Branch B WHERE B.street LIKE :street");
    q.setParameter("street", "'%a%'");
       List<Branch> l = q.getResultList();
      System.out.println("List Size: " + l.size());The SQL statement resulted by this query is as follow (according to the generated log file)
    SELECT ID, STREET FROM BRANCH WHERE (STREET LIKE CAST (? AS VARCHAR(32672) ))
      bind => [%a%]Problem is that List size is always 0, independent of what I provide as parameter. I tried and executed the generated SQL statement in the SQL manager and I got some tens of record as the result. The SQL statement i tested in the SQL manager is like:
    SELECT ID, STREET FROM BRANCH WHERE (STREET LIKE CAST ('%a%' AS VARCHAR(32672) ))Can someone please let me know what I am missing and how I can fix this problem?
    Thanks.

    Hi,
    Thank you for reply.
    All data are stored in lower case so, the case sensitivity is not a problem. I am wondering how the generated query works fine when I execute it in the sql manager but it return no result when it is executed by the JPA.
    Thanks for looking into my problem.

  • Res.getPathTranslated() does not return correct URL of the page requested

    Hi,
    The res.getPathTranslated() statement in the below code (in doFilter method) does not return the correct URL of the requested webpage.
    Whenever a web page is accessed using a return statement (eg : return "nextPage"; ) inside a button's action method or a hyperlink's action method, the res.getPathTranslated() returns the URL of the current webpage instead of returning the URL of the webpage that is actually requested.
    For example if there is a button on the page http://localhost:29080/MyJaas/faces/firstPage.jsp
    And the button_action() is as follows
    button_action()
    return "nextPage";
    The res.getPageTranslaged() returns "http://localhost:29080/MyJaas/faces/firstPage.jsp" instead of "http://localhost:29080/MyJaas/faces/nextPage.jsp"
    However, if the webpage is requested by populating the URL property of the hyerlink in creator IDE, the res.getPathTranslated() returns the correct (requested) web page.
    How to make res.getPathTranslagted() return the correct URL when the webpage is accessed from hyperlink's / button's action method?
    I know that the explation is not very clear, so please bear with me. Let me know if you need more clarificatons. Thanks in advance for showing interest in this issue.
    And by the way, the code below is the same as that used in Jaas Authentication tutorial :- http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/jaas_authentication.html
    package jaasauthentication;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.http.HttpSession;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class SecurityFilter implements Filter{
        /** Creates a new instance of SecurityFilter */
        private final static String FILTER_APPLIED = "_security_filter_applied";
        public SecurityFilter() {
        public void init(FilterConfig filterConfig) {
        public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws java.io.IOException, ServletException{
            HttpServletRequest req = (HttpServletRequest)request;
            HttpServletResponse res = (HttpServletResponse)response;
            HttpSession session = req.getSession();
            String requestedPage = req.getPathTranslated();
            String user=null;
            //We dont want to filter certain pages which include the Login.jsp/Register.jsp/Help.jsp
            if(request.getAttribute(FILTER_APPLIED) == null) {
                //check if the page requested is the login page or register page
                if((!requestedPage.endsWith("Login.jsp")) && (!requestedPage.endsWith("Register.jsp")) && (!requestedPage.endsWith("Help.jsp"))){
                    //Requested page is not login.jsp or register.jsp therefore check for user logged in..
                    //set the FILTER_APPLIED attribute to true
                    request.setAttribute(FILTER_APPLIED, Boolean.TRUE);
                    //Check that the session bean is not null and get the session bean property username.
                    if(((jaasauthentication.SessionBean1)session.getAttribute("SessionBean1"))!=null) {
                        user = ((jaasauthentication.SessionBean1)session.getAttribute("SessionBean1")).getUsername();
                    if((user==null)||(user.equals(""))) {
                        res.sendRedirect("Login.jsp");
                        return;
            //deliver request to next filter
            chain.doFilter(request, response);
        public void destroy(){
    }

    Guys any solution for the above problem?
    Right answer fetches 10 duke dollars..

  • Error: Driver does not support this function

    Hi there people!
    I'm a newbie in jsp and I encountered this error: Driver does not support this function. I'm using odbc:jdbc and access. Can someone please tell me what is wrong?
    <%@ page import = "java.sql.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="java.util.*" %>
    <HTML>
    <title>Stock Portfolio</title>
    <body>
    <body bgcolor="gray"><center>
    <table border = 1>
    <tr>
         <td><th>Symbol</td></th>
         <td><th>Type of Transaction</td></th>
         <td><th>Date</td></th>
         <td><th>Shares</td></th>
         <td><th>Price</td></th>
         <td><th>Stock Commission</td></th>
         <td><th>Stock Brocker Name</td></th>
    <tr>
    <%     String symbol = request.getParameter("symbol");
           String type = request.getParameter("type");
           String date = request.getParameter("date");
            String shares = request.getParameter("shares");
            int ishares = Integer.parseInt(shares);
            String price = request.getParameter("price");
            float fprice = Float.parseFloat(price);
            String commission = request.getParameter("commission");
            float fcommission = Float.parseFloat(commission);
            String bname = request.getParameter("bname");
    %>
    <% String url ="jdbc:odbc:Product";
       try
       { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection con = DriverManager.getConnection(url,"","");
         String query = "INSERT INTO Stock (dbsymbol,dbtype,dbdate,dbshares,dbprice,dbcommission,dbname) VALUES (?,?,?,?,?,?,?)";
          PreparedStatement pstmt = con.prepareStatement(query);
          pstmt.setString(1,symbol);
           pstmt.setString(2,type);
           pstmt.setString(3,date);
           pstmt.setInt(4,ishares);
           pstmt.setDouble(5,fprice);
           pstmt.setDouble(6,fcommission);
           pstmt.setString(7,bname);
           pstmt.executeUpdate(query);
          }catch (Exception e)
           {System.out.println(e.getMessage());
    %>
    </body>
    </html>      Thanks!

    Sorry I need to hurry up. But here is link i found relating same problem. Please check this and see if it might help you.
    [http://forum.java.sun.com/thread.jspa?threadID=564872&messageID=2784526|http://forum.java.sun.com/thread.jspa?threadID=564872&messageID=2784526]
    Read reply #5.
    It says
    You're getting this exception because you're using the executeUpdate() method that returns a ResultSet. That's a JDBC 3.0 function, and the JDBC-ODBC bridge only supports JDBC 1.0.Good Luck.

  • This XML file does not appear to have any style information associated with

    Hi All,
    I have IDOC to XML file scenario.
    In SXMB_MONI, it showed the message processed successfully (checkered flag).
    I open the payload in the target, I'm able to see the XML format without error.
    then I checked in RWB the overall status is successful.
    But when I checked the detail (message content) I got the following message:
    "This XML file does not appear to have any style information associated with it".
    So physical file created is like corrupted.
    If using XML marker to open the file it show warning "Invalid Unicode Sequence".
    The thing is when rerun the whole interface again, which is mean the same idoc send from the source, the file created successfully. Sometimes need to rerun twice or more than that to get the file.
    Anyone has idea on what is wrong here?
    Thanks,
    Victor.

    Hi Baskar,
    Thanks for your reply.
    It's PI 7.0.
    Overall status is successful but when I go to RWB to check the message content i got the error message above.
    Target system is only normal FTPS server.
    XML file is created as well but it's showing error when we open it.
    The weird thing is without fixing anything if we rerun the same interface with same set of data sometimes the error is gone by itself.
    Thanks,
    Victor.

  • Server does not return metadata, check the query.

    Hi,
    I need your help in using report designer of Bex, The issue is when we try to open a query in the report designer we get a Error Server does not return metadata, check the query.
    Thanks in Advance
    Kind Regards
    Phutane

    Hi,
    All the yellow and red lights will have an effect on query performance or execution.  Read up on them as there are too many to explain via this forum.
    There is a document on SDN on query performance.  Some useful links:
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9f4a452b-0301-0010-8ca6-ef25a095834a]
    [http://help.sap.com/saphelp_nw70/helpdata/en/41/b987eb1443534ba78a793f4beed9d5/frameset.htm]
    [http://help.sap.com/saphelp_nw70/helpdata/en/d9/31363dc992752de10000000a114084/frameset.htm]
    [http://help.sap.com/saphelp_nw04/helpdata/en/2e/caceae8dd08e48a63c2da60c8ffa5e/frameset.htm]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0501cb9-d51c-2a10-239c-c141a22c45a6]
    Cheers...

  • Error : Contract does not match customer and item information[OSCI.ManufSN]

    I need to add Service Call from Service Contract through DIAPI. "Mfr. Serial no" is set as  "Unique serial no by" in system general settings.
    Creating two Customer Equipment Card from the cfl provided on Service Contract in Item Tab and Internal serial is blank in created Cutomer Equipment Card.
    One is terminated and other is active have the same ItemCode but different customers then while adding Service Contract I am paraller generating service call through DIAPI but the system is throughing error - "Contract does not match customer and item information [OSCL.IntrnalSN]"
    Thanks
    deepak gaur

    HI,
    Service Contract can be for a specific customer
    The contract type cound be (Coverage):
    1. including all items (Type Customer) in this case the dates of the coverage is defined in the head!
    2. Including specific serial numbers
    3. Including item groups
    The status every case should have to be Enabled/Approved  for valid contract (OCRT.Status = 'A').
    In case of Do not forget to set the valid from and valid to dates to define in the system the coverage. (header and items tab from/to dates)
    Now, If you create service all, the system will use the first possible Service Contract. IF you have more: you have to select the contract manually.
    Ex:
    1. One for customer including all items
    2. One for a specific serial number
    Best Regadrs,
    János

  • Apple account none payment methode does not appear

    when i creat my apple id the none option in payment methode does not appear . please tell me what I do ?????

    Unless the instructions on this page are followed when creating an account : Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method - Apple Support…
    then credit card details will need to be entered before the account can be used to download any item from the store.
    If you are being prompted to review the account then you could see if this post by mountaingoatgirl lets you do so without needing to enter credit card details : https://discussions.apple.com/message/24303054#24303054
    If not then you will either need to enter your credit card details (you should be able to remove it after entering it), or create a new account (and use the instructions on the above link when creating it).

Maybe you are looking for

  • How do I use "Search Query" for nontrivial searches?

    After a few years in the community, this is my _first_ question to the boards ;-) In speaking with a colleague today, I learned about an NI forum feature that would be useful for me. When I tried to configure it, I then learned that I didn't know how

  • Can't start Windows Vista HELP!!!!

    When booting Vista, the screen goes black with the following error: ======================= Windows failed to start. A recent hardware or software change might be the cause. To fix the problem : 1. Insert your Windows installation disk and restart yo

  • Intuos3 pen tip acts like right click in Photohop CS4

    I have a Intuos3 5 wide. It works great in various applications under Windows Vista 32bit and the latest drivers. I'm using a normal Logitech mouse which is set to left-handed because I use the mouse with my left hand. The Intuos pen is set to the de

  • Working with Top Secret

    Hi, Has any one worked with Top Secret Resource Adapter , We want to create , delete , modify accounts in OS/390 mainframe (proabaly) in this project.I was anxious to know if these operations are supported by the Top Secret adapter that comes with Su

  • Create Sales Order: Necessary Enrty

    Hi friends, Actually I'm FI consultant. But my SD consultant friend has throwed up a frost. So i advise you. Do I customize necessary enrty field at create sales order transaction (VA01)? Thanks, sincerely.