Problems implementing Patrick Wolf's reCAPTCHA

I've attempted to implement Patrick Wolf's captcha paradigm at http://www.inside-oracle-apex.com/adding-captcha-to-your-oracle-apex-application/ to no avail.
The required "checkRecaptcha" function has been uploaded to my schema.
Depending on where I place the page items or the javascript code, I get one of the following errors;
HTTP-404 \nwwv_flow.accept: SIGNATURE (parameter names) MISMATCH\nVARIABLES IN FORM NOT IN PROCEDURE: UNDEFINED\nNON-DEFAULT VARIABLES IN PROCEDURE NOT IN FORM: \n
HTTP-404 \nwwv_flow.accept: SIGNATURE (parameter names) MISMATCH\nVARIABLES IN FORM NOT IN PROCEDURE: UNDEFINED,RECAPTCHA_RESPONSE_FIELD\nNON-DEFAULT VARIABLES IN PROCEDURE NOT IN FORM: \n
HTTP-404 \nwwv_flow.accept: SIGNATURE (parameter names) MISMATCH\nVARIABLES IN FORM NOT IN PROCEDURE: RECAPTCHA_CHALLENGE_FIELD\nNON-DEFAULT VARIABLES IN PROCEDURE NOT IN FORM: \nAt this point, I have a dedicated region containing the captcha related page items (only ones in the region) with the javascript in the region source. This arrangement does not work (same types of errors).
I'm a fairly novice apex developer and the difficulty is understanding what these errors mean, how they are caused or how to troubleshoot them. I've extensively visited support.oracle.com and google and have found no clear explanation on the nature of these errors and what causes them. I'm happy to admit I'm asking the wrong questions in the wrong places...
Hopefully one of you folks out there can offer advice.
Many Thanks!
Paul
PS - more details of error...
Wed, 24 Nov 2010 17:50:34 GMT
wwv_flow.accept: SIGNATURE (parameter names) MISMATCH
VARIABLES IN FORM NOT IN PROCEDURE: UNDEFINED
NON-DEFAULT VARIABLES IN PROCEDURE NOT IN FORM:
  DAD name: strainint
  PROCEDURE  : wwv_flow.accept
  URL        : http://<servername>.jax.org:80/strainint/wwv_flow.accept
  PARAMETERS :
  ===========
  P_FLOW_ID:
   130
  P_FLOW_STEP_ID:
   1
  P_INSTANCE:
   2192648522248539
  P_PAGE_SUBMISSION_ID:
   4178748372894033
  P_REQUEST:
   CREATE
  P_ARG_NAMES:
   11575531492595717
   11575928670595718
   11576125314595721
   11576322294595722
   11576527405595722
   11576712936595723
   11577309811595724
   11576910608595723
   11577721685595726
   11577115988595724
   11573904301595707
   11577518806595725
   11574113261595713
   11574921234595715
   11574314190595713
   11575110416595716
   11574500155595714
   11575302176595716
   11574715417595715
   11577924123595726
  P_T01:
  P_ARG_VALUES:
   071B90D8C7B7FDAFAA1638E501544F52
  P_T03:
  P_T04:
  P_T05:
  P_T06:
   %null%
  P_T07:
  P_T08:
  P_T09:
  P_T10:
   %null%
  P_T11:
  P_T12:
  P_T13:
  P_T14:
  P_T15:
   %null%
  P_T16:
  P_T17:
  P_T18:
  P_T19:
   %null%
  P_T20:
   000003
  F01:
   a
  F02:
   Once
  F03:
   Female
  F04:
   Individual Mice
  F05:
  FCS:
   745AFCAE1A306367955C8FCA792EE269
  UNDEFINED:
   03AHJ_VuuC3DyB3T6d-saC7Eszp5QixAWR5kKWi1aR5inbScamnnEfvIJg8J19eVZKkT0JWVqFve0Y76BOMTLzAO_z8NhoTJiS76FzgpfW0mjgC4rqROmE8943Yk3HAbQLMjMkE51R-NACuDrVlqqLVAnumRWo0UKbLg
  P_MD5_CHECKSUM:
  ENVIRONMENT:
  ============
    PLSQL_GATEWAY=WebDb
    GATEWAY_IVERSION=2
    SERVER_SOFTWARE=Oracle-Application-Server-10g/10.1.2.2.0 Oracle-HTTP-Server
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PORT=80
    SERVER_NAME=<servername>.jax.org
    REQUEST_METHOD=POST
    QUERY_STRING=
    PATH_INFO=/wwv_flow.accept
    SCRIPT_NAME=/strainint
    REMOTE_HOST=
    REMOTE_ADDR=209.222.204.147
    SERVER_PROTOCOL=HTTP/1.1
    REQUEST_PROTOCOL=HTTP
    REMOTE_USER=APEX_PUBLIC_USER
    ORACLE_SSO_USER=
    OSSO_IDLE_TIMEOUT_EXCEEDED=
    OSSO_USER_GUID=
    HTTP_CONTENT_LENGTH=1228
    HTTP_CONTENT_TYPE=application/x-www-form-urlencoded
    HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; .NET4.0E)
    HTTP_HOST=<servername>.jax.org
    HTTP_ACCEPT=application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
    HTTP_ACCEPT_ENCODING=
    HTTP_ACCEPT_LANGUAGE=en-US
    HTTP_ACCEPT_CHARSET=
    HTTP_COOKIE=jaxFontSize=68.75; __utma=95497475.355517976.1290438979.1290619284.1290619508.10; __utmz=95497475.1290438979.1.1.utmcsr=jax-db1:7777|utmccn=(referral)|utmcmd=referral|utmcct=/pls/jrad02dv/f; __utmb=95497475.17.10.1290619508; __utmc=95497475
    HTTP_IF_MODIFIED_SINCE=
    HTTP_REFERER=http://<servername>.jax.org/strainint/f?p=strainint:1:2192648522248539::::P1_URL_SC:000003
    HTTP_SOAPACTION=
    HTTP_ORACLE_ECID=462602480001,1
    HTTP_ORACLE_CACHE_VERSION=10.1.2
    HTTP_AUTHORIZATION=
    WEB_AUTHENT_PREFIX=
    DAD_NAME=strainint
    DOC_ACCESS_PATH=docs
    DOCUMENT_TABLE=wwv_flow_file_objects$
    PATH_ALIAS=
    REQUEST_CHARSET=AL32UTF8
    REQUEST_IANA_CHARSET=UTF-8
    SCRIPT_PREFIX=
    HTTP_IF_MATCH=
    HTTP_CACHE_CONTROL=
    SOAP_BODY=
    HTTP_X_ORACLE_DEVICE_CLASS=
    HTTP_X_ORACLE_DEVICE_ORIENTATION=
    HTTP_X_ORACLE_DEVICE_MAXDOCSIZE=
    HTTP_X_ORACLE_DEVICE=
    HTTP_X_ORACLE_ORIG_ACCEPT=
    HTTP_X_ORACLE_ORIG_USER_AGENT=
    HTTP_X_ORACLE_USER_LOCALE=
    HTTP_X_ORACLE_USER_NAME=
    HTTP_X_ORACLE_USER_DISPLAYNAME=
    HTTP_X_ORACLE_USER_USERKIND=
    HTTP_X_ORACLE_USER_AUTHKIND=
    HTTP_X_ORACLE_USER_DEVICEID=
    HTTP_X_ORACLE_USER_LOCATION_ADDRESSLINE1=
    HTTP_X_ORACLE_USER_LOCATION_ADDRESSLINE2=
    HTTP_X_ORACLE_USER_LOCATION_ADDRESSLASTLINE=
    HTTP_X_ORACLE_USER_LOCATION_BLOCK=
    HTTP_X_ORACLE_USER_LOCATION_CITY=
    HTTP_X_ORACLE_USER_LOCATION_COMPANYNAME=
    HTTP_X_ORACLE_USER_LOCATION_COUNTY=
    HTTP_X_ORACLE_USER_LOCATION_STATE=
    HTTP_X_ORACLE_USER_LOCATION_POSTALCODE=
    HTTP_X_ORACLE_USER_LOCATION_POSTALCODEEXT=
    HTTP_X_ORACLE_USER_LOCATION_COUNTRY=
    HTTP_X_ORACLE_USER_LOCATION_TYPE=
    HTTP_X_ORACLE_USER_LOCATION_X=
    HTTP_X_ORACLE_USER_LOCATION_Y=
    HTTP_X_ORACLE_SERVICE_HOME_URL=
    HTTP_X_ORACLE_SERVICE_PARENT_URL=
    HTTP_X_ORACLE_HOME_URL=
    HTTP_X_ORACLE_MODULE_CALLBACK_URL=
    HTTP_X_ORACLE_MODULE_CALLBACK_LABEL=
    HTTP_X_ORACLE_CACHE_USER=
    HTTP_X_ORACLE_CACHE_SUBID=
    HTTP_X_ORACLE_CACHE_AUTH=
    HTTP_X_ORACLE_CACHE_DEVICE=
    HTTP_X_ORACLE_CACHE_LANG=
    HTTP_X_ORACLE_CACHE_ENCRYPT=
    HTTP_X_ORACLE_ASSERT_USER=Edited by: pgtaviator on Nov 24, 2010 1:14 PM

In trying to chase the problems I was having with recaptcha as a non-plugin entity in 3.2, I realized that I had set the region I put the plugin in to condition=never at some point in the past and didn't removed that condition with my efforts today. My apologies, it was a oversight on my part of having abandoned this a while back and completing another project and coming back to this.
I have it working now. Sorry for the confusion.
Paul

Similar Messages

  • Patrick wolf's apexlib_tabform is misbehaving

    Hi Fellow APEX developers,
    I'm trying to implemented a 'logical delete' functionality in APEX 3.1, i.e. mark a record as deleted by updating a a database table column but not phyically delete it. I have a tabular form with default row selector which I am trying to interogate using the code below.
    The code below is copied and amended from Patrick Wolfe's web site. It belongs to a APEX On-submit- After Computations and Validations process and is called by a new manually created Delete button.
    The update statement is not being executed at all. The process is being executed when the button is pressed I've checked in Debug.
    I hope someone can shed some light on this.
    Thanks in advance.
    Regards,
    Austin
    -- Used to perform a 'Soft' or 'Logical' delete of a sales_contact record
    -- that is marked deletion.
    -- Do NOT physically DELETE a record that is marked for deletion.
    DECLARE
    v_sales_contact_id sales_contact.sales_contact_id%TYPE;
    BEGIN
    FOR v_index IN 1 .. ApexLib_TabForm.getRowCount LOOP
    IF ApexLib_TabForm.hasRowChanged(v_index) THEN
    IF apexlib_tabform.isrowselectorchecked(v_index) THEN
    v_sales_contact_id := APEXLIB_TABFORM.nv('SALES_CONTACT_ID'
    ,v_index);
    UPDATE sales_contact sc
    SET sc.termination_date = SYSDATE
    WHERE sc.operator_id = v_sales_contact_id;
    END IF;
    END IF;
    END LOOP;
    END;

    Hi All,
    From my investigations the arrays used in apexlib_tabform are not being initialised when I set a row for deletion using (the default row selector).
    I've also googled and searched the web for apexlib_tabform entries and found the following : http://www.inside-oracle-apex.com/2006/12/drop-in-replacement-for-v-and-nv.html
    I've followed the instructions on the url above and still no success..
    If anybody has encountered this issue please let me know how you resolved them.
    Regards,
    Austin

  • Having problems implementing OMS

    Please be patient with me as I am new to Oracle,
    I have not been able to configure and run OMS even though I
    have followed the instructions I have found in several
    locations including the OMS Configuration Guide and the Oracle
    By Example Series.
    I have tried running 9i Database in Windows XP Pro, Windows
    2000 Pro, Windows 2000 Advanced Server, and now Windows .NET
    Enterprise Server all with the same results. I have even tried
    8i with the same results.
    I have created a database specifically for OMS. I have run the
    OEM Configuration Assistant to create my repository in that
    database. I have made sure that the Database service is
    running and the Database is open. I have made sure that the
    Intelligent Agent service is running. I have configured a
    static IP address.
    The problem is that the OMS Service will not start. I don't
    know if it is because OMS is not configured correctly, not
    installed correctly, or is incompatible with my software or
    hardware.
    If anyone could point out what I have overlooked, or could
    point me in the direction of a "baby-steps" kind of "how-to"
    for implementing OMS, or tell me I am just plain ignorant, I
    would greatly appreciate it.
    Thanks and Merry Christmas,
    Dwayne Croteau

    After a couple of months and about 20 reinstallations I figured
    it out.
    When I installed Oracle 9i for the first time I tried to
    install into Program Files\Oracle\Ora90 but the installer
    complained that Oracle couldn't be installed into a location
    that had a space in the path. So I substituted the DOS
    compatible path for that directory Progra~1\Oracle\Ora90. OMS
    started without a problem after I installed Oracle into a
    directory without a space in it's name.
    Woo-Hoo!
    Dwayne

  • Problems Implementation Password Policy on OIM 9.1.0

    Hello,,,
    Please help me,
    i was create password policy on OIM, i inject that pass policy to one of resource object, i create object form and process form with same configuration ( field table ), i use data flow to transmit the data between object form and process form..
    i set process definition with check AUTO SAVE FORM, and AUTO PRE-POPULATE,
    the Problems is :
    1. When i try to do provisioning process ( with delegated admin : xelsysadm ) to that resource object (target system) , after admin submit , status process is provisioning, and the detail is System Validation : Pending
    2. Then i try to remove password policy on resource object, and i try again to do the provisioning, and the process working fine, status process provisioned, detail process
    system validation : completed, Create user : completed
    why it'is happen ?
    that the important point is, why AUTO SAVE FORM cannot working fine if i inject Password Policy on resource Object...
    Warm regards,
    Ricky R
    Manila

    When you say you have checked auto prepop means that there are pre pops attached to certain fields on your process form that you want to be auto triggered before provisioning commences. So i'm assuming that you are pre-populating password field. Is the password value that you are prepopping the field with conform to the standards of the password policy? If not that could be the reason why your provisioning process isnt getting kicked off. you will need to supply a password (either manually or if you want to automate it (pre pop it)) that coforms to the password policy defined on the resource object. Also i think the name of the password field must be _PASSWORD.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Window inheritance problem, implementation question

    This is a multi-part message in MIME format.
    --------------F5AF60803BB8EFA34C8D4288
    Content-Type: multipart/alternative;
    boundary="------------24CDBE5DFBEC0C4205C15C80"
    --------------24CDBE5DFBEC0C4205C15C80
    Content-Type: text/plain; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    Hi!
    I have a window inheritance and implementation question. I'm using
    Forte 3.0.J.1.
    I have a super (base) window with a PushButton on it. I want to
    handle the Click event of the button in this super window therefore
    I create an event handler.
    <MyBtn> : PushButton
    I create a sub window inheriting from the previous super window.
    I put some data widgets on it and group all of them (the inherited
    button as well) into a GridField. When I set the mapped type of the grid
    the name of the inherited PushButton widget changes:
    <MainGrid.MyBtn> : PushButton
    When I run the application I get a SystemException with the
    message:
    Attempt to register an event on a NIL object (qqds_C_FieldWidget, 10).
    Traceback:
    SuperWindow.EH at line 0
    SubWindow.Display at line 5
    C++ Method(s)
    UserApp.Run at offset 105
    It is quite understandable that in runtime there is no widget called
    <MyBtn>
    and the event handler of the super class fails.
    But what I don't know : after specifing a mapped type of a GridField why
    changes
    the name of those widgets that haven't got mapped type e.g.: PushButton,
    PictureButton etc.
    How to solve this situation?
    I made a sall example which i send in attachment.
    Thanks for any help and advice in advance...
    Attila Racz Lufthansa Systems
    Hungary
    BUD LSYH
    E-mail: [email protected] .-``'.
    Tel.: (36 1) 431-2910 .` .' Mazsa ter 2-6.
    Fax : (36 1) 431-2977 _.-' '._ H-1107 Budapest,
    Hungary
    --------------24CDBE5DFBEC0C4205C15C80
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
    <html>
    <tt>    Hi!</tt><tt></tt>
    <p><tt>I have a window inheritance and implementation question. I'm using</tt>
    <br><tt>Forte 3.0.J.1.</tt><tt></tt>
    <p><tt>I have a super (base) window with a PushButton on it. I want to</tt>
    <br><tt>handle the Click event of the button in this super window therefore</tt>
    <br><tt>I create an event handler.</tt><tt></tt>
    <p><tt>&lt;MyBtn> : PushButton</tt><tt></tt>
    <p><tt>I create a sub window inheriting from the previous super window.</tt>
    <br><tt>I put some data widgets on it and group all of them (the inherited</tt>
    <br><tt>button as well) into a GridField. When I set the mapped type of
    the grid</tt>
    <br><tt>the name of the inherited PushButton widget changes:</tt><tt></tt>
    <p><tt>&lt;MainGrid.MyBtn> : PushButton</tt><tt></tt>
    <p><tt>When I run the application I get a SystemException with the</tt>
    <br><tt>message:</tt><tt></tt>
    <p><tt>Attempt to register an event on a NIL object  (qqds_C_FieldWidget,
    10).</tt>
    <br><tt>      Traceback:</tt>
    <br><tt>          SuperWindow.EH
    at line 0</tt>
    <br><tt>          SubWindow.Display
    at line 5</tt>
    <br><tt>          C++ Method(s)</tt>
    <br><tt>          UserApp.Run
    at offset 105</tt><tt></tt>
    <p><tt>It is quite understandable that in runtime there is no widget called
    &lt;MyBtn></tt>
    <br><tt>and the event handler of the super class fails.</tt><tt></tt>
    <p><tt>But what I don't know : after specifing a mapped type of a GridField
    why changes</tt>
    <br><tt>the name of those widgets that haven't got mapped type e.g.: PushButton,</tt>
    <br><tt>PictureButton etc.</tt><tt></tt>
    <p><tt>How to solve this situation?</tt>
    <br><tt>I made a sall example which i send in attachment.</tt><tt></tt>
    <p><tt>Thanks for any help and advice in advance...</tt><tt></tt>
    <p><tt>---------------------------------------------------------------------------</tt>
    <br><tt> Attila Racz                                    
    Lufthansa Systems Hungary</tt>
    <br><tt>                                                
    BUD LSYH</tt>
    <br><tt>E-mail: [email protected]      
    .-``'.</tt>
    <br><tt>Tel.: (36 1) 431-2910               
    .`   .'     Mazsa ter 2-6.</tt>
    <br><tt>Fax : (36 1) 431-2977           
    _.-'     '._    H-1107 Budapest, Hungary</tt>
    <br><tt>---------------------------------------------------------------------------</tt>
    <br><tt></tt> </html>
    --------------24CDBE5DFBEC0C4205C15C80--
    --------------F5AF60803BB8EFA34C8D4288
    Content-Type: application/x-zip-compressed;
    name="Inh.zip"
    Content-Transfer-Encoding: base64
    Content-Disposition: inline;
    filename="Inh.zip"
    UEsDBBQAAAAIAAdlGicvhmSHbAUAAFITAAAHAAAASW5oLnBleO1YbW/bNhD+bAP+D/yWDGsN
    Uq9WvQxwHQfx4MSGra7oR0qkYq2yZEhys/z73ZGSLdty0A7rMAyloDfy7rkXUndHBfIpTok/
    n8/INF3LPC6nm23yMU6HvW6vG6dhshOyILdxsU34yyLP/pBhOWyM3OV8I5+z/DN03o9WZLGc
    LyZL/xOZFrM4yHn+Qm7I3Wi2mijEt2/Jyh8tfXI3X34cLW/JeDZarcjtBO7LkT+dP6563SjL
    n3kuCFntAlBFZM8kLsiGb7dSDI+GtzJvIQAhk8fbV0W0afJhuZovT+hOodpoGlhj6PBHjz5Q
    3E0fp8cg7YNNbnI78kfE/7SYtANcGm9iVMYejYYJL4p2d5FYT3tBojzbnEx0/0NRcyBMr7vm
    BdnugiQOCdnIcp2JmmPYOjhN43J4yii/yLQka56KROZkcn/904Ekz0DH8qXX7RRrnktxc82T
    JHu+ydI3JPsi8zwWUr0IGfFdUt5kUYTsnTLnacHDMs5Snnw11yYDBbNvkSPioszjYFc2eKKo
    yaQJlT297s82s5nlmIxiY1zouyO9SJqUUdVv4N2gdTPgcCj1LDqgFCAYMHlRFClyC4gjeGDM
    UO+MucijxuumhQTBgEacKgh63oDVQTFnzRPIClfFrFsNwUAlEw4G4sQZp6HNUS2iFrXh7tQj
    GkITVF6AM9j36WYq6mN/2ACFZCFCGIreRlyXo4OspnfwuOQdJUZroeTbIojwbMjWB6prUYvT
    g/2H5gmcVGDzxBEzNvSO4wxqg04ENLyDWnjqSbnnxF4XDjRvAHCGGrGpbQnXswzXcqTqsQDC
    YMeHspUpW+u5ETCNpmfD1TDAV9KmbIBaqBO1ONhso7su2BxKhNCsh8ZogBConOVEsGY9Fyeq
    uQpcxj3mhXhwEyGovkq8OpI5zMMFzs2BYzim6wJxUJFTxRKGwC6hT4aKkTZARA2FWjCT4aut
    kO1I4+NKhdgIi8SSpufpGCZTQVRAHDZD41miOQmMx9mx34il/0Rk/N+EvY7yZxKnkj9JyPzX
    0NVJoUSA56vLPry6GDINt4ogzPwRMpXFP0ImvRgyQzRP6QrB0xIOczxHWq5rwN1SYQLXQ6vF
    qMnAthzbHbgWBDQGsZZ5kmpnhwctVNixB14Ik214ATVNd6/HSThtWy3KnRiQIdKJI2ZsSgt2
    mGDDhWgHBln6rTkjVBnC6oVcLefq+6h8Ze0ZcWIG6lF5rrnAIdQqPc0aH6LuoHkCRUs+Aojj
    lNSaj4yTfBSGDp46FwHEIR01nOfSr85FB0MgHb2ai/ilXAQQ+OBxvHKFHqiUCTklYt7XZCeA
    eC1BUWapfkfovKQMMJRQtxatVie3TnRgAsOKoQDBxVqrfVrj1GQ8Ok9r9X6hbS+w3ymsJsvf
    p+MJmb//bTJu37G8RtLcc9S7opYtS8tQgxO3MjDWyto61uB9mPj389vz4b/fet0qOe/LgX6V
    w3vdADfKvW4hk6g/38pUbVr0TibJsi2K7mxzmQNZUcoc0179TApMdP39RqfzvJYpKXnxub9a
    70oQkxKRIYf8UxUFOJUKelgJHCdZIbVEGNJKDr+DtViUHExVWmPXd5S8rwC+wdP/Pf8drPjX
    PHi8iW6qgOtsr0Kvq5z1y8PL+zL9FRwRh5+1s5T/Fjwv+7Ps6eEp7y925QzqtuurBti7d0ec
    VZnW9G/1sbZ9jM3fQSBwnG22vIyDOInLlxnwJ1ATUqwZq78N/ssWy8TRYjGbjtXPFRxcSqw8
    Qyg8Gz+SOg9QnMb+OpdcqAF/+UH1T1P44KAUbtJW/6Eeqyq0quvjKxxbleCBOH160FMJBave
    ENwcvoo3dcl+U1f02gvaD2d/zf4CUEsBAhQAFAAAAAgAB2UaJy+GZIdsBQAAUhMAAAcAAAAA
    AAAAAQAgALaBAAAAAEluaC5wZXhQSwUGAAAAAAEAAQA1AAAAkQUAAAAA
    --------------F5AF60803BB8EFA34C8D4288--

    import javax.swing.JOptionPane;
    public class Test{
         public static void main(String[] args)
              String newItem = "Item";
              float newSerial = 4234;
              float newCode = 3424;
              int newBase = 1000;
              boolean YesWarranty = true;
              boolean NoWarranty = true;
              Machinery test1 = new Machinery(newItem, newCode, newSerial, newBase, YesWarranty, NoWarranty);
              JOptionPane.showMessageDialog(null, "Item: " + test1.getItem() + " Serial: " + test1.getSerial() + " Code: " + test1.getCode()
              + " Warranty: " + test1.IncludeWarranty() + " No Warranty: " + test1.ExcludeWarranty()+ " Base: " + test1.getPrice());
    }Tested with this and it seems to be ok?
    Changed my final code too because it seemed to always add the 10% whether YesWarranty was true or false, so made it
              if (TrueWarranty==true) //There is a warranty, it returns the base price plus 10%
                   return (base+((base/100)*10));May have posted here too early if it does work, but there is another part so if ive trouble with that il be back :P
    Edited by: dave_the_bear on 16-Nov-2010 07:17
    Changed base to double and used the *0.1 method

  • Problems Implementing SnapShots Scenario for Stock Management

    Hello All,
    I am trying to configure the Inventory Management with snapshots and I am using the snapshot scenario. According to the document I have created alternative ODS ODSSNAP and infocubes to accumulate 2LIS_03_BX, 2LIS_03_BF and 2LIS_03_UM.
    My problem is with the key figures ZTOTALST,ZVALSTCKV and ZVALSTCKQ.
    I am facing this problem in the ODS when i try to create the update rule for 2LIS_03_BX. I have the two Characteristics Unit and Currency automatically mapped but i don´t see the key figures of the ODS. I supposed that my key figures may appear without assignment but they don´t appear.
    I should have my key figures non mapped but instead I cannot see them.I tried with another standard infosource 2LIS_03_BF and I see my key figures.
    I have BW 3.5 patch level 20.
    Can you please let me know any ideas?
    Thanks
    TK

    OK, non cumulative are not stored in your provider but calculated on the fly:
    NonCum = InFlow - OutFlow.
    then you have to work with your good receipts and goods issue flow key figures....
    For your scenario, as far as I understood you just need to see a "snapshot" (latest know stock values) you just need to update your receipts and issues with summation in your ODS; your stock will then be calculated.
    Usually a "snapshot" scenario means that you want to store your stock at the end of each month for example; in this case you need to use cumulatives with exception aggregation "LAST" on your time period so that the stocks aren't summarized over time. This way you update your cumulative Stk KF is updated with goods receipts - good issues. Also remind that in this scenario you'll have to load the previous month stock into the next
    Stock July = Stock June + Receipts July - Issues July.
    As you realize, it can get quite complex...
    Please precise your requirement and we'll help you further since I am doing all kind of scenario re stocks...
    hope this helps...
    Olivier.

  • Problems implementing abstract classes

    hello.
    this is james mcfadden. I am developing a multiplayer BlackJack card game in Java. the game consists of three programs: BlackJack.java, BlackJackServer.java and BlackJackClient.java (three 3 programs are shown below). i don't know how to implement abstract classes. i am trying to get the BlackJack.java program working with the BlackJackServer.java program. there should be "extends BlackJackServer" somewhere in the BlackJack.java program, but i don't know where.
    import javax.swing.*;
    public class BlackJack extends JPanel{
       public BlackJack(){
          //FlowLayout is default layout manager for a JPanel
          add(new JButton("Hit"));
          add(new JButton("Stay"));
          add(new JButton("New Game"));
       public static void main(String[] args){
          JFrame frame=new JFrame("BlackJack");
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setSize(500,500);
          frame.setLocation(200,200);
          BlackJack bj=new BlackJack();
          frame.setContentPane(bj);
          frame.setVisible(true);
    import java.io.*;//Provides for system input and output through data streams, serialization and the file system
    import java.net.*;//Provides the classes for implementing networking applications
    import java.util.*;//Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes
    import java.awt.*;//Contains all of the classes for creating user interfaces and for painting graphics and images
    import javax.swing.*;//Provides a set of lightweight components that, to the maximum degree possible, work the same on all platforms
    public class BlackJackServer extends JFrame{
       private JTextArea jta=new JTextArea();//a text area for displaying text
       public static void main(String[] args){  
              new BlackJackServer();//invokes the constructor BlackJackServer()
       }//end main
       public BlackJackServer(){
          setLayout(new BorderLayout());//places the text area on the frame
          add(new JScrollPane(jta),BorderLayout.CENTER);//lays out a text area, arranging and resizing its components to fit in the centre region;and provides a scrollable view of a lightweight component
          setTitle("BlackJack Server");//Sets the title for this frame to the specified string
          setSize(500,300);//Resizes this component so that it has a width and a height
          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//Sets the operation that will happen by default when the user closes this frame
          setVisible(true);//shows the frame
          try{
             ServerSocket serverSocket=new ServerSocket(8000);//creates a server socket
             jta.append("Server started at "+new Date()+'\n');//displays the current date in the text area
             Socket socket=serverSocket.accept();//listens for a connection request
             DataInputStream inputFromClient=new DataInputStream(socket.getInputStream());//creates a data input stream
             DataOutputStream outputToClient=new DataOutputStream(socket.getOutputStream());//creates a data output stream
             while(true){
                float bet=inputFromClient.readFloat();//receives bet from the client
                float doublebet=bet+bet;//computes double the bet
                outputToClient.writeFloat(doublebet);//sends double the bet back to the client
                jta.append("Bet received from client: "+bet+'\n');//displays the bet in the text area
                jta.append("Double the bet found: "+doublebet+'\n');//displays double the bet in the text area
             }//end while
          }//end try
          catch(IOException ex){
             System.err.println(ex);//displays an error message
          }//end catch
       }//end constructor
    }//end class BlackJackServer
    import java.io.*;//Provides for system input and output through data streams, serialization and the file system
    import java.net.*;//Provides the classes for implementing networking applications
    import java.awt.*;//Contains all of the classes for creating user interfaces and for painting graphics and images
    import java.awt.event.*;//Provides interfaces and classes for dealing with different types of events fired by AWT components
    import javax.swing.*;//Provides a set of lightweight components that, to the maximum degree possible, work the same on all platforms
    public class BlackJackClient extends JFrame{
       private JTextField jtf=new JTextField();//a text field for receiving text
       private JTextArea jta=new JTextArea();//a text area for displaying text
       private DataOutputStream toServer;//output stream
       private DataInputStream fromServer;//input stream
       public static void main(String[] args){
          new BlackJackClient();//invokes the constructor BlackJackClient()
       public BlackJackClient(){
          JPanel p=new JPanel();//holds the label and text field
          p.setLayout(new BorderLayout());//sets the layout of the content pane of this component by default
          p.add(new JLabel("Enter bet"),BorderLayout.WEST);//displays the bet and lays out a JLabel, arranging and resizing its components to fit in the western region
          p.add(jtf,BorderLayout.CENTER);//lays out the text field, arranging and resizing its components to fit in the centre region
          jtf.setHorizontalAlignment(JTextField.RIGHT);//Sets the horizontal alignment of the text to the right
          setLayout(new BorderLayout());//places the text area on the frame
          add(p,BorderLayout.NORTH);//lays out the text field, arranging and resizing its components to fit in the northern region
          add(new JScrollPane(jta),BorderLayout.CENTER);//lays out a text area, arranging and resizing its components to fit in the centre region;and provides a scrollable view of a lightweight component
          jtf.addActionListener(new ButtonListener());//invokes the ButtonListener class
          setTitle("BlackJack Client");//Sets the title for this frame to the specified string
          setSize(500,300);//Resizes this component so that it has a width and a height
          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//Sets the operation that will happen by default when the user closes this frame
          setVisible(true);//shows the frame
          try{
             Socket socket=new Socket("localhost",8000);//creates a socket to connect to the server
             fromServer=new DataInputStream(socket.getInputStream());//creates an input stream to receive data from the server
             toServer=new DataOutputStream(socket.getOutputStream());//creates an output stream to send data to the server
          }//end try
          catch(IOException ex){
             jta.append(ex.toString()+'\n');//displays an error message
          }//end catch
       private class ButtonListener implements ActionListener{
          public void actionPerformed(ActionEvent e){
             try{
                float bet=Float.parseFloat(jtf.getText().trim());//gets the bet from the text field
                toServer.writeFloat(bet);//Converts the float argument to an int using the floatToIntBits method in class Float, and then writes that int value to the underlying output stream
                toServer.flush();//Flushes this output stream and forces any buffered output bytes to be written out
                float doublebet=fromServer.readFloat();//gets double the bet from the server
                jta.append("Bet is "+bet+"\n");//displays the bet in the text area
                jta.append("Double the bet received from the server is "+doublebet+'\n');//displays double the bet in the text area
             }//end try
             catch(IOException ex){
                System.err.println(ex);//displays an error message
             }//end catch
          }//end method
       }//end class
    }//end class BlackJackClient

    there should be "extends BlackJackServer" somewhere in the BlackJack.java programI very much doubt that.
    It's possible you might need to create a BlackJackServer object or something like that. But I don't see the point in subclassing it.

  • Having problem implementing enhancement spot 'OI0_OGSD_XM06'

    Hi,
    I have an enhancement spot using BADI  'OI0_OGSD_XM06'. It has property 'Can only be implemented SAP-internally' checked
    under usability options. I want to know if this enhancement spot could be implemented. If yes, how?
    Thanks in advance!

    I am facing the same issue. However I learnt that we might need to use Adjusting Tool from  Object Navigator/SE80 on the implementation before transporting.

  • Problem implementing web services with types generated by jdeveloper 10.1.3

    Hello,
    I have generated a web service using JDeveloper 10.1.3.3. from a WSDL. This WSDL includes a schema with some types defined. There is a element with the following definition:
    <xs:element name="OptionalInputs" type="AnyType"/>
    where:
    <xs:complexType name="AnyType">
    <xs:sequence>
    <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    The meaning of the element OptionalInputs is that it can include other elements, of any type, definied within the same schema.
    After generating the web service from the WSDL, I get the following:
    - A Class named 'AnyType' that consists of one element of type
    protected javax.xml.soap.SOAPElement[] _any;
    - Some classes which must be included in an object of type 'AnyType', and that implements java.io.Serializable.
    However, I do not know how to include successfully one of this (serializable) classes into an object of type 'AnyType' (SOAPElement[]).
    Could you be so kind as to help me, please?
    Thank you very much in advance.

    Hi there,
    10.1.3 is not production ready yet, and you will find this warning on the oracle page http://www.oracle.com/technology/tech/java/oc4j/1013/index.html
    "Under no circumstances should it be used in production environments."
    Does this mean that it's not possible to deploy a Doc/Lit webservice to production using JDeveloper? Is there any other way of getting it to work with 10.1.2?
    Thanks,
    Vid.

  • Problems implementing AUTH TLS and AUTH SSL in VSFTPD

    I have followed the common recommendations to require ssl on login and ssl on data, I have set made a self-signed certificate and key in a single file and set the pointer. When FireFTP client set up for TLSv1 tries to connect the following is the result (debug info in client):
    DEBUG: ({account:" FireFTP Profile Name ", host:"6#.5#.##. ### ", port:"21", login:"bbop", password:"", anonymous:false, security:"authtls", pasvmode:true, ipmode:false, treesync:false, localdir:"", remotedir:"", webhost:"", prefix:"", downloadcasemode:0, uploadcasemode:0, encoding:"UTF-8", notes:"", timezone:0, folder:"", privatekey:""})
    DEBUG: gConcurrent:2, gMaxCon:10, gRefreshMode:true, gTempPasvMode:true, gLoadUrl:false, fileMode:2, hiddenMode:true, keepAliveMode:true, networkTimeout:30, proxyHost:, proxyPort:0, proxyType:, activePortMode:false, activeLow:1, activeHigh:65535, reconnectMode:true, sessionsMode:true, timestampsMode:false, useCompression:true, integrityMode:true, userAgent:Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9 (.NET CLR 3.5.30729)
    *220 This FTP Site provided by the State University System Board of Governors, Information Resource Management. Information available for download and uploaded by authorized users is subject to all state and federal privacy regulations and use of this site implies user understanding and acceptance of all responsibilities therein.*
    AUTH TLS
    *234 Proceed with negotiation.*
    PBSZ 0
    *200 PBSZ set to 0.*
    USER bbop
    *331 Please specify the password.*
    PASS (password not shown)
    *230 Login successful.*
    FEAT
    *211-Features:
    AUTH SSL
    AUTH TLS
    EPRT
    EPSV
    MDTM
    PASV
    PBSZ
    PROT
    REST STREAM
    SIZE
    TVFS
    211 End*
    PWD
    *257 "/"*
    TYPE A
    *200 Switching to ASCII mode.*
    PROT P
    *200 PROT now Private.*
    PASV
    *227 Entering Passive Mode (6#,5#,##,###,216,96)*
    LIST -al
    <<<20 seconds later.......>>>
    QUIT
    The pam.vsftpd looks as follows:
    #%PAM-1.0
    auth required pam_listfile.so item=user sense=deny file=/etc/vsftpd.ftpusers onerr=succeed
    auth required pam_stack.so service=system-auth
    auth required pam_shells.so
    account required pam_stack.so service=system-auth
    session required pam_stack.so service=system-auth
    and the vsftpd.conf has the following associated with ssl and chroot jailing:
    chroot_local_user=YES
    pam_service_name=vsftpd
    userlist_enable=YES
    listen=YES
    tcp_wrappers=YES
    ssl_enable=YES
    allow_anon_ssl=NO
    force_local_data_ssl=YES
    force_local_logins_ssl=YES
    ssl_tlsv1=YES
    ssl_sslv2=NO
    ssl_sslv3=NO
    rsa_cert_file=/etc/vsftpd/vsftpd.pem
    pasv_address=6#.5#.##.###
    I must be missing something, but I cannot figure out what! I need to have this site up for users in 14 hours!!!!!

    The problem was not in the vsftpd settings really. It was a network security (firewall) issue.
    I defined pasv_min_port=#### and pasv_max_port=#### in vsftpd.conf. I had my network administrator open the ports in this range for TCP for this server.
    Clients connecting pasv/tlsv1 now have no issues.

  • Problems implementing comboboxes and having the program work

    import java.text.DecimalFormat; //class for format decimals
    import java.awt.*;
    import javax.swing.*;
    import java.applet.Applet;
    import java.awt.event.*;
    public class MortgageCal2 extends JApplet {
    JLabel principal_Label;
    JLabel interestRate_Label;
    JLabel termYear_Label;
    JTextField principal_TF;
    JTextField interestRate_TF;
    JComboBox interestRate_CB;
    JTextField termYear_TF;
    JComboBox termYear_CB;
    JButton calculate_button;
    JButton clear_button;
    JLabel monthlyPI_Label;
    JLabel payment_Label;
    //*********************Main Program for MortgageCal2 Class***************************
    public static void main(String[] args) {
         JFrame calculator = new JFrame();
         MortgageCal2 calc = new MortgageCal2();
         calculator.getContentPane().add(calc);
         calc.init();
         calculator.pack();
         calculator.setVisible(true);               
    public void init() {
         MortgageCalLayout customLayout = new MortgageCalLayout();
         Container con1 = getContentPane();
         con1.setLayout(customLayout);
         principal_Label = new JLabel("PRINCIPAL:");//1
              con1.add(principal_Label);
         interestRate_Label = new JLabel("INTEREST RATE:");//2
              con1.add(interestRate_Label);
         termYear_Label = new JLabel("TERM YEARS:");//3
              con1.add(termYear_Label);
         principal_TF = new JTextField();//4
              con1.add(principal_TF);
              interestRate_TF = new JTextField();//5
              con1.add(interestRate_TF);
              String[] interestArray = {"5.35", "5.50", "5.75"};
              interestRate_CB = new JComboBox(interestArray);
              termYear_TF = new JTextField();//6
              con1.add(termYear_TF);
              String[] termArray = {"7", "15", "30"};
              termYear_CB = new JComboBox (termArray);
              JButton calculate_button = new JButton("CALCULATE");//7
              con1.add(calculate_button);
         monthlyPI_Label = new JLabel("MONTHLY P&I: ");//8
              con1.add(monthlyPI_Label);
         JButton clear_button = new JButton("CLEAR");//9
              con1.add(clear_button);
         payment_Label = new JLabel();
              con1.add(payment_Label);
              if (termYear_CB.getSelectedItem().equals ("7"))
                   interestRate_CB.setSelectedIndex(1);
                        else if(termYear_CB.getSelectedItem().equals ("15"))
                   interestRate_CB.setSelectedIndex(2);
                        else if(termYear_CB.getSelectedItem().equals ("30"))
                   interestRate_CB.setSelectedIndex(0);
         //********Listener for Interest Rate ComboBox***********************
         interestRate_CB.addItemListener(new ItemListener(){
              public void itemStateChanged(ItemEvent ev)
              int idx=interestRate_CB.getSelectedIndex();
              termYear_CB.setSelectedIndex(idx);
         //*********Listener for Calculate Button*****************************
         calculate_button.addActionListener(
              new ActionListener() {
    public void actionPerformed(ActionEvent h) {
    //***********************Decimal Format**************************
    java.text.DecimalFormat DF = new DecimalFormat("###,###.00");
    //***************Variables***************************************
    double principal = Double.parseDouble(principal_TF.getText());
    double interestRate = Double.parseDouble(interestRate_TF.getText());
    double monthlyInterest;
    double termYear = Double.parseDouble(termYear_TF.getText());
    double termMonthly;
    double monthlyPI;
    //*****************Calculations************************************
    monthlyInterest = interestRate / 12 / 100;
    termMonthly = termYear * 12;
    monthlyPI = (principal * monthlyInterest) / (1 - Math.pow(1 + monthlyInterest, -termMonthly));
    //*****************Displays Payment***********************************
    payment_Label.setText("$" + DF.format(monthlyPI));
    //***************Listener for Clear Button************************
    clear_button.addActionListener(
    new ActionListener() {
    public void actionPerformed(ActionEvent h) {
    principal_TF.setText("");
    interestRate_TF.setText("");
    termYear_TF.setText("");
    payment_Label.setText("");
    class MortgageCalLayout implements LayoutManager {
         //***********Constructor for the MortgageCal Layout object*************************
         public MortgageCalLayout() { }
         //********Adds a feature to the LayoutComponent attribute for the MortgageCal Layout object**********
         public void addLayoutComponent(String name, Component comp) {
         //**************Method description************************
    public void removeLayoutComponent(Component comp) {
         public Dimension preferredLayoutSize(Container parent) {
              Dimension dim = new Dimension(0, 0);
              Insets insets = parent.getInsets();
         dim.width = 250 + insets.left + insets.right;
         dim.height = 250 + insets.top + insets.bottom;
    return dim;
         public Dimension minimumLayoutSize(Container parent) {
         Dimension dim = new Dimension(0, 0);
    return dim;
         public void layoutContainer(Container parent) {
         Insets insets = parent.getInsets();
         Component c;
         c = parent.getComponent(0);
              if (c.isVisible()) {
                        c.setBounds(insets.left + 20, insets.top + 10, 100, 25);
         c = parent.getComponent(1);
              if (c.isVisible()) {
                        c.setBounds(insets.left + 20, insets.top + 40, 100, 25);
         c = parent.getComponent(2);
              if (c.isVisible()) {
                        c.setBounds(insets.left + 20, insets.top + 72, 100, 25);
         c = parent.getComponent(3);
              if (c.isVisible()) {
                        c.setBounds(insets.left + 115, insets.top + 10, 115, 25);
         c = parent.getComponent(4);
              if (c.isVisible()) {
                        c.setBounds(insets.left + 115, insets.top + 40, 115, 25);
         c = parent.getComponent(5);
              if (c.isVisible()) {
                        c.setBounds(insets.left + 115, insets.top + 75, 115, 25);
         c = parent.getComponent(6);
              if (c.isVisible()) {
                        c.setBounds(insets.left + 115, insets.top + 105, 115, 25);
         c = parent.getComponent(7);
                   if (c.isVisible()) {
                        c.setBounds(insets.left + 20, insets.top + 140, 100, 25);
         c = parent.getComponent(8);
              if (c.isVisible()) {
              c.setBounds(insets.left + 115, insets.top + 200, 120, 25);
         c = parent.getComponent(9);
              if (c.isVisible()) {
              c.setBounds(insets.left + 115, insets.top + 140, 75, 25);

    import java.text.DecimalFormat; //class for format decimals
    import java.awt.*;
    import javax.swing.*;
    import java.applet.Applet;
    import java.awt.event.*;
    public class MortgageCal2 extends JApplet {
    JLabel principal_Label;
    JLabel interestRate_Label;
    JLabel termYear_Label;
    JTextField principal_TF;
    JTextField interestRate_TF;
    JComboBox interestRate_CB;
    JTextField termYear_TF;
    JComboBox termYear_CB;
    JButton calculate_button;
    JButton clear_button;
    JLabel monthlyPI_Label;
    JLabel payment_Label;
    //*********************Main Program for MortgageCal2 Class***************************
    public static void main(String[] args) {
         JFrame calculator = new JFrame();
         MortgageCal2 calc = new MortgageCal2();
         calculator.getContentPane().add(calc);
         calc.init();
         calculator.pack();
         calculator.setVisible(true);               
    public void init() {
         MortgageCalLayout customLayout = new MortgageCalLayout();
         Container con1 = getContentPane();
         con1.setLayout(customLayout);
         principal_Label = new JLabel("PRINCIPAL:");//1
              con1.add(principal_Label);
         interestRate_Label = new JLabel("INTEREST RATE:");//2
              con1.add(interestRate_Label);
         termYear_Label = new JLabel("TERM YEARS:");//3
              con1.add(termYear_Label);
         principal_TF = new JTextField();//4
              con1.add(principal_TF);
              interestRate_TF = new JTextField();//5
              con1.add(interestRate_TF);
              String[] interestArray = {"5.35", "5.50", "5.75"};
              interestRate_CB = new JComboBox(interestArray);
              termYear_TF = new JTextField();//6
              con1.add(termYear_TF);
              String[] termArray = {"7", "15", "30"};
              termYear_CB = new JComboBox (termArray);
              JButton calculate_button = new JButton("CALCULATE");//7
              con1.add(calculate_button);
         monthlyPI_Label = new JLabel("MONTHLY P&I: ");//8
              con1.add(monthlyPI_Label);
         JButton clear_button = new JButton("CLEAR");//9
              con1.add(clear_button);
         payment_Label = new JLabel();
              con1.add(payment_Label);
              if (termYear_CB.getSelectedItem().equals ("7"))
                   interestRate_CB.setSelectedIndex(1);
                        else if(termYear_CB.getSelectedItem().equals ("15"))
                   interestRate_CB.setSelectedIndex(2);
                        else if(termYear_CB.getSelectedItem().equals ("30"))
                   interestRate_CB.setSelectedIndex(0);
         //********Listener for Interest Rate ComboBox***********************
         interestRate_CB.addItemListener(new ItemListener(){
              public void itemStateChanged(ItemEvent ev)
              int idx=interestRate_CB.getSelectedIndex();
              termYear_CB.setSelectedIndex(idx);
         //*********Listener for Calculate Button*****************************
         calculate_button.addActionListener(
              new ActionListener() {
    public void actionPerformed(ActionEvent h) {
    //***********************Decimal Format**************************
    java.text.DecimalFormat DF = new DecimalFormat("###,###.00");
    //***************Variables***************************************
    double principal = Double.parseDouble(principal_TF.getText());
    double interestRate = Double.parseDouble(interestRate_CB.getText());
    double monthlyInterest;
    double termYear = Double.parseDouble(termYear_CB.getText());
    double termMonthly;
    double monthlyPI;
    //*****************Calculations************************************
    monthlyInterest = interestRate / 12 / 100;
    termMonthly = termYear * 12;
    monthlyPI = (principal * monthlyInterest) / (1 - Math.pow(1 + monthlyInterest, -termMonthly));
    //*****************Displays Payment***********************************
    payment_Label.setText("$" + DF.format(monthlyPI));
    //***************Listener for Clear Button************************
    clear_button.addActionListener(
    new ActionListener() {
    public void actionPerformed(ActionEvent h) {
    principal_TF.setText("");
    interestRate_TF.setText("");
    termYear_TF.setText("");
    payment_Label.setText("");
    class MortgageCalLayout implements LayoutManager {
         //***********Constructor for the MortgageCal Layout object*************************
         public MortgageCalLayout() { }
         //********Adds a feature to the LayoutComponent attribute for the MortgageCal Layout object**********
         public void addLayoutComponent(String name, Component comp) {
         //**************Method description************************
    public void removeLayoutComponent(Component comp) {
         public Dimension preferredLayoutSize(Container parent) {
              Dimension dim = new Dimension(0, 0);
              Insets insets = parent.getInsets();
         dim.width = 250 + insets.left + insets.right;
         dim.height = 250 + insets.top + insets.bottom;
    return dim;
         public Dimension minimumLayoutSize(Container parent) {
         Dimension dim = new Dimension(0, 0);
    return dim;
         public void layoutContainer(Container parent) {
         Insets insets = parent.getInsets();
         Component c;
         c = parent.getComponent(0);
              if (c.isVisible()) {
                        c.setBounds(insets.left + 20, insets.top + 10, 100, 25);
         c = parent.getComponent(1);
              if (c.isVisible()) {
                        c.setBounds(insets.left + 20, insets.top + 40, 100, 25);
         c = parent.getComponent(2);
              if (c.isVisible()) {
                        c.setBounds(insets.left + 20, insets.top + 72, 100, 25);
         c = parent.getComponent(3);
              if (c.isVisible()) {
                        c.setBounds(insets.left + 115, insets.top + 10, 115, 25);
         c = parent.getComponent(4);
              if (c.isVisible()) {
                        c.setBounds(insets.left + 115, insets.top + 40, 115, 25);
         c = parent.getComponent(5);
              if (c.isVisible()) {
                        c.setBounds(insets.left + 115, insets.top + 75, 115, 25);
         c = parent.getComponent(6);
              if (c.isVisible()) {
                        c.setBounds(insets.left + 115, insets.top + 105, 115, 25);
         c = parent.getComponent(7);
                   if (c.isVisible()) {
                        c.setBounds(insets.left + 20, insets.top + 140, 100, 25);
         c = parent.getComponent(8);
              if (c.isVisible()) {
              c.setBounds(insets.left + 115, insets.top + 200, 120, 25);
         c = parent.getComponent(9);
              if (c.isVisible()) {
              c.setBounds(insets.left + 115, insets.top + 140, 75, 25);
    MortgageCal2.java:122: cannot resolve symbol
    symbol : method getText ()
    location: class javax.swing.JComboBox
    double interestRate = Double.parseDouble(interestRate_CB.getText());
    ^
    MortgageCal2.java:124: cannot resolve symbol
    symbol : method getText ()
    location: class javax.swing.JComboBox
    double termYear = Double.parseDouble(termYear_CB.getText());
    Everything worked until I added the combo boxes. Now I get these errors.

  • Problem implementing image sharing feature using ANE

    Has anyone implemented an image sharing feature on an Android app?
    I tried out the ANE provided here http://www.smallscreendesign.com/2011/09/29/air-native-extensions-rock/ , but have been receiving the error below and have no idea what to do next.
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at com.ssd.ane::AndroidExtensions$/get context()[/Users/anto/git/Android-AIR-Extensions/AndroidExtensions/src/com/ssd/ane/Androi dExtensions.as:158]
              at com.ssd.ane::AndroidExtensions$/shareText()[/Users/anto/git/Android-AIR-Extensions/Androi dExtensions/src/com/ssd/ane/AndroidExtensions.as:48]
              at views::ShareTextView/shareBtn_clickHandler()[/Users/VivShwz/Downloads/mr-archano-Android- AIR-Extensions-d53f591/AndroidExtensions_Demo/src/views/ShareTextView.mxml:12]
              at views::ShareTextView/__shareBtn_click()[/Users/VivShwz/Downloads/mr-archano-Android-AIR-E xtensions-d53f591/AndroidExtensions_Demo/src/views/ShareTextView.mxml:59]
    I downloaded the code from https://github.com/mr-archano/Android-AIR-Extensions and imported the project folder (AndroidExtensions_Demo) in Flash Builder 4.6, changed the air version to 3.1, changed the flex compiler to 4.6 as that is what I’m using and ran it on the device.
    However, when I clicked on Share Text button, I got the error shown above. I'm believe I'm missing something small here but have no idea what it could be.

    Hi Mattie,
    The role of this program while mailing ends with the popping up of the email box.Any error that occurs afterwards must be due to the mail client.Which mail client are you using?You have mentioned that it saves and closes, so is there any message that is popped about it being saved?
    Cheers,
    Chhaya

  • Problems implementi​ng the elapsed time express vi into my vi

    I am trying to implement the Elapsed Time Express VI into my VI so that my VI runs for a specified amount of time. I currently have the express VI working, but now that I have implemented it into my VI, my graphing functions do not work. If anyone has any suggestions, I would greatly appreciate your help. I have attached my VI for reference.
    -Kelly
    Attachments:
    Inj&Sam_C348_C_wrt_File_and_Timed.vi ‏405 KB

    The way you have your VI configured, the outer while loop will only run once. It will run, but will not be able to continue until the inner loop has completed. The inner loop will continue to acquire data until the desired time has passed. A this time a true will be written to the stop terminal on the inner loop, and then passed to the stop terminal on the outer while loop, stopping it when it has only run through one iteration. I'm not sure what you are trying to do, but my guess is that you want your second while loop to be outside of the first one. You can then stop them both by using a local variable or some synchronization mechanism.
    Regards,
    Ryan K.

  • Problems implementing MouseListener Interface

    I'm going nuts trying to figure out what is wrong with this code. Need a fresh pair of eyes.
    I'm pretty sure I"m overriding all MouseListener methods. Not done with the MouseListener,
    just getting it to a point where I can compile. Netbeans tells me the following:
    EdunasSystemTray is not abstract and does not override abstract method mouseExited()
    {code}
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package edunas;
    import java.awt.TrayIcon;
    import java.awt.SystemTray;
    import java.awt.Image;
    import java.awt.Toolkit;
    import java.awt.PopupMenu;
    import java.awt.AWTException;
    import java.awt.event.MouseListener;
    * @author rico
    public class EdunasSystemTray implements MouseListener {
    public EdunasSystemTray() {
    TrayIcon trayIcon = null;
    SystemTray tray = SystemTray.getSystemTray();
    Image image = Toolkit.getDefaultToolkit().getImage("C:\\Documents and Settings\\rico\\My Documents\\NetBeansProjects\\Edunas\\files\\911.gif");
    public void mouseExited(MouseEvent e) {
    public void mouseEntered(MouseEvent f) = new MouseListener() {
    public void mouseReleased(MouseEvent g) = new MouseListener() {
    public void mousePressed(MouseEvent h) = new MouseListener() {
    public void mouseClicked(MouseEvent i) = new MouseListener() {
    PopupMenu popup = new PopupMenu();
    trayIcon = new TrayIcon(image, "Edunas", popup);
    trayIcon.setImageAutoSize(true);
    try {
    tray.add(trayIcon);
    catch (AWTException awt_exec) {
    System.out.println("awt_exc in Edunas " + awt_exec.getMessage());
    {code}

    Whats with all the "= new MouseListener()" in your method headers?
    This is all you need:
            public void mouseExited(MouseEvent e) {
            public void mouseEntered(MouseEvent e) {
            public void mouseReleased(MouseEvent e)  {
            public void mousePressed(MouseEvent e) {
            public void mouseClicked(MouseEvent e)  {
            }Also, you can't create methods inside the constructor...they need to be at the class level.
    Edited by: newark on Jul 22, 2008 11:11 AM

  • Problem implementing call back script

    I'm having problems getting my message call back script to work.  The idea is that someone makes a call and if no agents are available after a few minutes they'll get a prompt asking them to leave their phone number for an agent to call them back.  The bulk of the script is taken from Cisco's script repository.  Everything works except for when the call terminates and is supposed to place a call to the BaseLineMessageCallback.aef script which will seek out the next available agent and then play a message stating the caller's phone number and a brief message.  Seems like no matter what I try when it goes to redirect the call to the BaseLineMessageCallback script the status is BUSY.  Here are the steps that I've done so far
    1.) Created trigger for BaseLineMessageCallBack with the phone number of 6580
    2.) Created a 2nd Call Control Group with the ID of 5, CTI route points are 7300 and 7301
    3.) Created separate Dialog Group with the ID of 1
    4.) The AdvMessageQueueing script is using the same CSS and Partition as BaseLineMessageCallBack, phone number is 6507
    5.) Set Media Termination Point to True for Call Control Group 5.
    6.) AdvMessageQueueing and BaseLineMessageCallBack are using different call control group and dialog group
    I'm able to call both the 6580 and 6507 numbers without a problem from my phone.  The problem is just the redirecting from 6507 to 6580.
    Any ideas?

    There's a lot more that we'll need to know, to properly figure this out for you.  I would suggest this: start out small, and validate that you can even make a call with the Place Call step to a trigger, since that seems to be the area you've highlighted as a problem.
    You can do this very easily by creating a brand new script with a single variable and two steps.  It's really just that simple.  No extra trigger, no application, just the one script, with its one variable, and two steps.  You can think of it like a disposible napkin that you'll use one time and then throw away.
    Script1
    Variables
    Contact c = null
    Steps
    StartPlace Call (dest = "6507"; timeout = 30; CCG ID = 5; dialog group = 1; contact = c)  Successful    /* Place a comment step here, so when the called script answers, we should see this highlight in red. */  ...End
    Start a reactive debug in the script editor: CTRL+Shift+R
    For the Script, select: AdvMessageQueueing.aef (I think I read your post correctly and 6507 is the AdvMessageQueueing.aef script, right?  If not, let me know because that's important for this test)
    For the Timeout, select: 60
    Click OK
    Now, make sure your Script1 window is the active window and press F10 three times (1 time to start active debugging; 1 time execute the Start step; 1 time to execute the Place Call step - Note 1: the Place Call Step will remain highlighted in red for now - Note 2: If you press F10 too quickly, the editor may not recognize your key press, so be sure to pause between key presses at this juncture).
    What you should see happen is, a new window should open, and it should be the AdvMessageQueueing.aef script, but in reactive debug mode.  Since this is a phone call test, you will need to make sure the AdvMessageQueueing.aef script window is active and press F10 until the red highlighted step is whatever step immediately after the Accept step.  This answers the call and back in Script1 you should see the comment step highlighted now.
    If you don't see that, then you know there is a problem with a CTI Port in CCG 5 calling a CTI Port in whatever CCG 6507 is associated with.  I know you said the Partitions and CSSes are the same, but I would ask that you just double check that the CSS on CCG5 contains the Partitions for both the 6507 Trigger and the CCG 6507 is associated with.
    Let me know if you get past that part, or if we need to address any problems you encounter.
    Good luck.
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

Maybe you are looking for