J2SE 6 warning message when using type casting

With Java SE 5 and 6 version, there's always an annoying warning message when I write the following code:
LinkedList<MyBean> cart0 = (LinkedList<MyBean>) session.getAttribute("cart");The warning message is because I use the type casting with the getAttribute method and thus this is not type-safe. So how do I get around the warning message and write standard code that sticks to the J2SE 6 standards? Thank you.

Add a @SuppressWarnings annotation to the method. A bit intelligent IDE will provide you a quickfix option for it.
Keep in mind: it's a warning, not an error. The sessionMap is cannot be specifically parameterized and will never be, it should be able to store any object to your taste. Further on this has not much to do with JSF at itself.

Similar Messages

  • Getting warning message when using bulk option

    Hi
    I have a very strange problem. When I am trying to insert records into my table (Using Buld Loader Options) I am receiving warning says "ODBC data source <xxxxxxxx> warning message for operation <bcp_bind ScheduleID>: <[Microsoft][ODBC SQL ServerDriver]Invalid use of null pointer>, SQLState <HY009>."
    but when I remove the selection of Bulk Loader option then it works fine and run successfylly without any warning ...
    SQL Query -
    > Target
    Can anybody please help me in this case as i could not figure it out what could be the problem
    Edited by: Jerry Tsia on Apr 27, 2009 6:18 PM
    Edited by: Jerry Tsia on Apr 27, 2009 6:19 PM

    what is the version of DI or Data Services ? if you are using DS XI 3.0 (12.0.0.0) or DS XI 3.1 (12.1)
    then this issue if fixed in 12.1.1, check the following similar post related to this
    Can not load Nulls into INT column using MS Sql Server 2005 Bulk load api

  • [svn] 1594: Update the warning message when outbound throttle policy of REPLACE is used one more time .

    Revision: 1594
    Author: [email protected]
    Date: 2008-05-07 11:10:27 -0700 (Wed, 07 May 2008)
    Log Message:
    Update the warning message when outbound throttle policy of REPLACE is used one more time. Now the warning says this. . .
    Throttle outbound policy 'REPLACE' found on message destination 'MESSAGE_DESTINATION'. The 'REPLACE' throttle outbound policy has been deprecated. Please remove it from your configuration file.
    Modified Paths:
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/MessageDestination.java

    hamish72 wrote:
    You can still download as much as you can only a lot slower during peak times off peak will not be restricted.
    Thanks for this explanation. I had taken it that it was at all times.
    As I said in the first place it will be great if they throttle me to 1Mb at peak times as it will be better half the time than I am getting anyway!!!!!!!!!
    hamish72 wrote:
    Have you chased up why your line is so bad, long way from exchange and so on
    Posting your router stats may get advice from someone
    enter for homehub for other routers will differ
    192.168.1.254 in browser click A to Z top right
    then ADSL enter pas and click MORE DETAIL
    POST RESULTS
    Also post results of test at ( best done from master test socket)
    http://speedtester.bt.com/
    Connection Information
    Line state
    Connected
    Connection time
    6 days, 11:57:55
    Downstream
    5,760 Kbps
    Upstream
    448 Kbps
    ADSL Settings
    VPI/VCI
    0/38
    Type
    PPPoA
    Modulation
    G.992.1 Annex A
    Latency type
    Interleaved
    Noise margin (Down/Up)
    5.7 dB / 21.0 dB
    Line attenuation (Down/Up)
    44.6 dB / 24.0 dB
    Output power (Down/Up)
    8.9 dBm / 1.6 dBm
    Loss of Framing (Local/Remote)
    0 / 0
    Loss of Signal (Local/Remote)
    0 / 0
    Loss of Power (Local/Remote)
    0 / 0
    FEC Errors (Down/Up)
    25279 / 134
    CRC Errors (Down/Up)
    700 / 196
    HEC Errors (Down/Up)
    5427 / 142
    Error Seconds (Local/Remote)
    477 / 102

  • Error message when using xrpcc in JWSDP 1_0_01

    Dear all,
    I've got the following error message when using xrpcc of JWSDP 1_0_01 for my config.xml file.
    D:\jwsdp-1_0_01\Message>xrpcc -classpath build -both -d build config.xml
    error: invalid element "{http://java.sun.com/jax-rpc-ri/xrpcc-config}configurati
    on" in configuration file (line 2)
    The content of 'config.xml' is shown as follows.
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration xmlns="http://java.sun.com/jax-rpc-ri/xrpcc-config">
    <rmi name="MessageService"
    targetNamespace="http://messageuri.com/wsdl"
    typeNamespace="http://messageuri/types">
    <service name="MyMessage" packageName="Message">
    <interface name="Message.MessageIF"
    servantName="Message.MessageImpl"/>
    </service>
    </rmi>
    </configuration>
    Thank you for your kind attention!
    Regards,
    Eddie

    Thanks all! I've already solved my previous problem, however, i got another one now.
    =========================================================
    error: unknown model info in configuration file (line 5)
    =========================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <rmi name="MessageService"
    targetNamespace="http://messageuri.com/wsdl"
    typeNamespace="http://messageuri.com/types">
    <service name="MyMessage" packageName="Message">
    <interface name="Message.MessageIF"
    servantName="Message.MessageImpl" />
    </service>
    </rmi>
    </configuration>
    Thanks,
    Eddie

  • Adobe Air error message when using  PSE 10

    When I try using the tips in PSE 10 I get an error message from Adobe Air stating that it is damaged. Have tried uninstalling and re-installing, but that hasn't helped. I have windows 7

    Okay Jeff, this is as far as I have gotten so far. I'm using Air version 3.2.0.2070.  This is the install log.
    Runtime Installer begin with version 2.6.0.19140 on Windows 7 x86
    Commandline is: -silent -eulaAccepted -programMenu AdobeHelp.air
    Installed runtime (2.6.0.19120) located at C:\Program Files (x86)\Common Files\Adobe AIR
    Invoking Application Installer for combined install
    Launching subprocess with commandline C:\Users\Vette\AppData\Local\Temp\AIRD0CE.tmp\Adobe AIR\Versions\1.0\Adobe AIR Application Installer -runtime C:\Users\Vette\AppData\Local\Temp\AIRD0CE.tmp -silent -withRuntime -url -programMenu -eulaAccepted file:///E:/Adobe%20Photoshop%20Elements%2010/ElementsSTIInstaller/payloads/AdobeHelp/Adob eHelp.air
    Application Installer begin with version 2.6.0.19140 on Windows 7 x86
    Commandline is: -runtime C:\Users\Vette\AppData\Local\Temp\AIRD0CE.tmp -silent -withRuntime -url -programMenu -eulaAccepted file:///E:/Adobe%20Photoshop%20Elements%2010/ElementsSTIInstaller/payloads/AdobeHelp/Adob eHelp.air
    Installed runtime (2.6.0.19120) located at C:\Program Files (x86)\Common Files\Adobe AIR
    Unpackaging file:///E:/Adobe%20Photoshop%20Elements%2010/ElementsSTIInstaller/payloads/AdobeHelp/Adob eHelp.air to C:\Users\Vette\AppData\Local\Temp\flaE4EA.tmp
    Application signature verified
    Unpackaging/validation complete
    No app located for appID 'chc' and pubID '4875E02D9FB21EE389F73B8D1702B320485DF8CE.1'
    Converting unpackaged application to a native installation package in C:\Users\Vette\AppData\Local\Temp\fla71A.tmp
    Native installation package creation succeeded
    Starting silent combined runtime update and app install.
    Updating runtime from version 2.6.0.19120 to version 2.6.0.19140.
    Installing app chc.4875E02D9FB21EE389F73B8D1702B320485DF8CE.1 version 3.5.23 to C:\Program Files (x86)\Adobe  using the source file at file:///E:/Adobe%20Photoshop%20Elements%2010/ElementsSTIInstaller/payloads/AdobeHelp/Adob eHelp.air
    Reinstalling C:\Users\Vette\AppData\Local\Temp\AIRD0CE.tmp\setup.msi
    Installing msi at C:\Users\Vette\AppData\Local\Temp\fla71A.tmp\setup.msi with guid {BD7F1DA3-5EA0-65F8-52B0-5E103FDC045A}
    Application Installer end with exit code 0
    Subprocess app installer succeeded
    Runtime Installer end with exit code 0
    Runtime Installer begin with version 2.6.0.19140 on Windows 7 x86
    Commandline is: -silent "E:\Adobe Photoshop Elements 10\AdobePhotoshopDotcomInspirationBrowser.air"
    Installed runtime (2.6.0.19140) located at C:\Program Files (x86)\Common Files\Adobe AIR
    Invoking Application Installer for combined install
    Launching subprocess with commandline C:\Users\Vette\AppData\Local\Temp\AIR4EA4.tmp\Adobe AIR\Versions\1.0\Adobe AIR Application Installer -runtime C:\Users\Vette\AppData\Local\Temp\AIR4EA4.tmp -silent -withRuntime -url file:///E:/Adobe%20Photoshop%20Elements%2010/AdobePhotoshopDotcomInspirationBrowser.air
    Application Installer begin with version 2.6.0.19140 on Windows 7 x86
    Commandline is: -runtime C:\Users\Vette\AppData\Local\Temp\AIR4EA4.tmp -silent -withRuntime -url file:///E:/Adobe%20Photoshop%20Elements%2010/AdobePhotoshopDotcomInspirationBrowser.air
    Installed runtime (2.6.0.19140) located at C:\Program Files (x86)\Common Files\Adobe AIR
    Unpackaging file:///E:/Adobe%20Photoshop%20Elements%2010/AdobePhotoshopDotcomInspirationBrowser.air to C:\Users\Vette\AppData\Local\Temp\fla634C.tmp
    Application signature verified
    Unpackaging/validation complete
    No app located for appID 'PhotoshopdotcomInspirationBrowser' and pubID '4C35C4D325D350FE0114230CBADCA2DDD0AC8D25.1'
    Converting unpackaged application to a native installation package in C:\Users\Vette\AppData\Local\Temp\fla7325.tmp
    Native installation package creation succeeded
    Starting silent app installation to C:\Program Files (x86)\Adobe. Installing app PhotoshopdotcomInspirationBrowser.4C35C4D325D350FE0114230CBADCA2DDD0AC8D25.1 version 3.07 using the source file at file:///E:/Adobe%20Photoshop%20Elements%2010/AdobePhotoshopDotcomInspirationBrowser.air
    Installing msi at C:\Users\Vette\AppData\Local\Temp\fla7325.tmp\setup.msi with guid {4C184855-B85A-6873-C642-60A58682E721}
    Application Installer end with exit code 0
    Subprocess app installer succeeded
    Runtime Installer end with exit code 0
    Launching subprocess with commandline C:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Resources\Adobe AIR Updater -updatecheck
    Runtime Installer begin with version 2.6.0.19140 on Windows 7 x86
    Commandline is: -updatecheck
    Installed runtime (2.6.0.19140) located at C:\Program Files (x86)\Common Files\Adobe AIR
    Performing pingback request
    Pingback request completed with HTTP status 200
    Starting runtime background update check
    Begin Background update download from http://airdownload.adobe.com/air/3/background/windows/x86/patch/2.6.0.19140/update
    Unpackaging http://airdownload.adobe.com/air/3/background/windows/x86/patch/2.6.0.19140/update to C:\Users\Vette\AppData\Roaming\Adobe\AIR\Updater\Background
    Unpackaging complete
    Download success
    Runtime updated downloaded
    User has selected immediate install of the update
    Starting runtime background update installation
    Launching subprocess with commandline C:\Users\Vette\AppData\Roaming\Adobe\AIR\Updater\Background\updater -update
    Runtime updater successfully launched
    Runtime Installer end with exit code 0
    Runtime Installer begin with version 3.1.0.4880 on Windows 7 x86
    Commandline is: -update
    Installed runtime (2.6.0.19140) located at C:\Program Files (x86)\Common Files\Adobe AIR
    Relaunching with elevation
    Launching subprocess with commandline c:\users\vette\appdata\local\temp\airafa3.tmp\adobe air installer.exe -ei
    Runtime Installer begin with version 3.1.0.4880 on Windows 7 x86
    Commandline is: -stdio
    .\pipe\AIR_704_0 -ei
    Installed runtime (2.6.0.19140) located at C:\Program Files (x86)\Common Files\Adobe AIR
    Starting silent runtime update. Updating runtime from version 2.6.0.19140 to version 3.1.0.4880
    Installing msi at c:\users\vette\appdata\local\temp\airafa3.tmp\setup.msi with guid {FE23D063-934D-4829-A0D8-00634CE79B4A}
    Runtime Installer end with exit code 0
    Elevated install completed
    Runtime Installer end with exit code 0
    Launching subprocess with commandline c:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Resources\Adobe AIR Updater -updatecheck
    Runtime Installer begin with version 3.1.0.4880 on Windows 7 x86
    Commandline is: -updatecheck
    Installed runtime (3.1.0.4880) located at c:\Program Files (x86)\Common Files\Adobe AIR
    Performing pingback request
    Pingback request completed with HTTP status 200
    Starting runtime background update check
    Clearing unused background update directory
    Begin Background update download from http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.1.0.4880/update
    Unpackaging http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.1.0.4880/update to C:\Users\Vette\AppData\Roaming\Adobe\AIR\Updater\Background
    Runtime update not available
    Unpackaging cancelled
    Runtime Installer end with exit code 0
    Runtime Installer begin with version 3.1.0.4880 on Windows 7 x86
    Commandline is: -arp:uninstall
    Installed runtime (3.1.0.4880) located at c:\Program Files (x86)\Common Files\Adobe AIR
    Runtime Installer end with exit code 6
    Runtime Installer begin with version 3.2.0.2070 on Windows 7 x86
    Commandline is:
    Installed runtime (3.1.0.4880) located at c:\Program Files (x86)\Common Files\Adobe AIR
    Relaunching with elevation
    Launching subprocess with commandline c:\users\vette\appdata\local\temp\aire7af.tmp\adobe air installer.exe -ei
    Runtime Installer begin with version 3.2.0.2070 on Windows 7 x86
    Commandline is: -stdio
    .\pipe\AIR_4784_0 -ei
    Installed runtime (3.1.0.4880) located at c:\Program Files (x86)\Common Files\Adobe AIR
    Starting silent runtime update. Updating runtime from version 3.1.0.4880 to version 3.2.0.2070
    Installing msi at c:\users\vette\appdata\local\temp\aire7af.tmp\setup.msi with guid {47FA2C44-D148-4DBC-AF60-B91934AA4842}
    Runtime Installer end with exit code 0
    Elevated install completed
    Launching subprocess with commandline c:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Resources\Adobe AIR Updater -installupdatecheck
    Runtime Installer end with exit code 0
    Runtime Installer begin with version 3.2.0.2070 on Windows 7 x86
    Commandline is: -installupdatecheck
    Installed runtime (3.2.0.2070) located at c:\Program Files (x86)\Common Files\Adobe AIR
    Performing pingback request
    Pingback request completed with HTTP status 200
    Starting runtime background update check
    Begin Background update download from http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.2.0.2070/update
    Unpackaging http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.2.0.2070/update to C:\Users\Vette\AppData\Roaming\Adobe\AIR\Updater\Background
    Runtime update not available
    Unpackaging cancelled
    Runtime Installer end with exit code 0
    Runtime Installer begin with version 3.2.0.2070 on Windows 7 x86
    Commandline is: -arp:uninstall
    Installed runtime (3.2.0.2070) located at c:\Program Files (x86)\Common Files\Adobe AIR
    Relaunching with elevation
    Launching subprocess with commandline c:\program files (x86)\common files\adobe air\versions\1.0\resources\adobe air updater.exe -eu
    Runtime Installer begin with version 3.2.0.2070 on Windows 7 x86
    Commandline is: -stdio
    .\pipe\AIR_3840_0 -eu
    Installed runtime (3.2.0.2070) located at c:\Program Files (x86)\Common Files\Adobe AIR
    Starting runtime uninstall. Uninstalling runtime version 3.2.0.2070
    Uninstalling product with GUID {47FA2C44-D148-4DBC-AF60-B91934AA4842}
    Runtime Installer end with exit code 0
    Elevated install completed
    Runtime Installer end with exit code 0
    Runtime Installer begin with version 3.2.0.2070 on Windows 7 x86
    Commandline is:
    No installed runtime detected
    Relaunching with elevation
    Launching subprocess with commandline c:\users\vette\appdata\local\temp\airbda4.tmp\adobe air installer.exe -ei
    Runtime Installer begin with version 3.2.0.2070 on Windows 7 x86
    Commandline is: -stdio
    .\pipe\AIR_764_0 -ei
    No installed runtime detected
    Starting silent runtime install. Installing runtime version 3.2.0.2070
    Installing msi at c:\users\vette\appdata\local\temp\airbda4.tmp\setup.msi with guid {47FA2C44-D148-4DBC-AF60-B91934AA4842}
    Runtime Installer end with exit code 0
    Elevated install completed
    Launching subprocess with commandline c:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Resources\Adobe AIR Updater -installupdatecheck
    Runtime Installer end with exit code 0
    Runtime Installer begin with version 3.2.0.2070 on Windows 7 x86
    Commandline is: -installupdatecheck
    Installed runtime (3.2.0.2070) located at c:\Program Files (x86)\Common Files\Adobe AIR
    Performing pingback request
    Pingback request completed with HTTP status 200
    Starting runtime background update check
    Begin Background update download from http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.2.0.2070/update
    Unpackaging http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.2.0.2070/update to C:\Users\Vette\AppData\Roaming\Adobe\AIR\Updater\Background
    Runtime update not available
    Unpackaging cancelled
    Runtime Installer end with exit code 0
    Runtime Installer begin with version 3.2.0.2070 on Windows 7 x86
    Commandline is:
    No installed runtime detected
    Relaunching with elevation
    Launching subprocess with commandline c:\users\vette\appdata\local\temp\air2fa8.tmp\adobe air installer.exe -ei
    Runtime Installer begin with version 3.2.0.2070 on Windows 7 x86
    Commandline is: -stdio
    .\pipe\AIR_5396_0 -ei
    No installed runtime detected
    Starting silent runtime install. Installing runtime version 3.2.0.2070
    Installing msi at c:\users\vette\appdata\local\temp\air2fa8.tmp\setup.msi with guid {47FA2C44-D148-4DBC-AF60-B91934AA4842}
    Runtime Installer end with exit code 0
    Elevated install completed
    Launching subprocess with commandline c:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Resources\Adobe AIR Updater -installupdatecheck
    Runtime Installer end with exit code 0
    Runtime Installer begin with version 3.2.0.2070 on Windows 7 x86
    Commandline is: -installupdatecheck
    Installed runtime (3.2.0.2070) located at c:\Program Files (x86)\Common Files\Adobe AIR
    Performing pingback request
    Pingback request completed with HTTP status 200
    Starting runtime background update check
    Begin Background update download from http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.2.0.2070/update
    Unpackaging http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.2.0.2070/update to C:\Users\Vette\AppData\Roaming\Adobe\AIR\Updater\Background
    Runtime update not available
    Unpackaging cancelled
    Runtime Installer end with exit code 0
    Application Installer begin with version 3.2.0.2070 on Windows 7 x86
    Commandline is: -playerVersion=11,2,202,233 -sandboxType=remote -securityDomain=airdownload.adobe.com -https=false -fromUserEvent=true -- -url http://www.adobe.com/support/chc/air/350/AdobeHelp.air -- WWW aHR0cDovL3d3dy5hZG9iZS5jb20vc3VwcG9ydC9jaGMv
    Installed runtime (3.2.0.2070) located at c:\Program Files (x86)\Common Files\Adobe AIR
    Begin air file download from http://www.adobe.com/support/chc/air/350/AdobeHelp.air
    Download destination is C:\Users\Vette\AppData\Local\Temp\fla7A97.tmp
    Received download status 200
    Response URL is http://www.adobe.com/support/chc/air/350/AdobeHelp.air
    Download success
    Unpackaging file:///C:/Users/Vette/AppData/Local/Temp/fla7A97.tmp to C:\Users\Vette\AppData\Local\Temp\flaB22B.tmp
    Application signature verified
    Unpackaging/validation complete
    No app located for appID 'chc' and pubID '4875E02D9FB21EE389F73B8D1702B320485DF8CE.1'
    Converting unpackaged application to a native installation package in C:\Users\Vette\AppData\Local\Temp\flaC7B.tmp
    Native installation package creation succeeded
    Starting app installation to C:\Program Files (x86)\Adobe. Installing app chc.4875E02D9FB21EE389F73B8D1702B320485DF8CE.1 version 3.5.23 using the source file at file:///C:/Users/Vette/AppData/Local/Temp/fla7A97.tmp
    Got an unexpected fatal error while in stateInstalling: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="Unhandled exception Error: Directory can't be written to" errorID=5006]
    Launching subprocess with commandline c:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Adobe AIR Application Installer -runtime "c:\Program Files (x86)\Common Files" -silent -logToStdout -url -location "C:\Program Files (x86)\Adobe" -desktopShortcut -programMenu file:///C:/Users/Vette/AppData/Local/Temp/fla7A97.tmp
    Relaunching with elevation
    Application Installer begin with version 3.2.0.2070 on Windows 7 x86
    Commandline is: -stdio
    .\pipe\AIR_4952_0 -runtime "c:\Program Files (x86)\Common Files" -silent -logToStdout -url -location "C:\Program Files (x86)\Adobe" -desktopShortcut -programMenu file:///C:/Users/Vette/AppData/Local/Temp/fla7A97.tmp
    Installed runtime (3.2.0.2070) located at c:\Program Files (x86)\Common Files\Adobe AIR
    Unpackaging file:///C:/Users/Vette/AppData/Local/Temp/fla7A97.tmp to C:\Users\Vette\AppData\Local\Temp\fla3260.tmp
    Application signature verified
    Unpackaging/validation complete
    No app located for appID 'chc' and pubID '4875E02D9FB21EE389F73B8D1702B320485DF8CE.1'
    Converting unpackaged application to a native installation package in C:\Users\Vette\AppData\Local\Temp\fla3BF3.tmp
    Native installation package creation succeeded
    Starting silent app installation to C:\Program Files (x86)\Adobe. Installing app chc.4875E02D9FB21EE389F73B8D1702B320485DF8CE.1 version 3.5.23 using the source file at file:///C:/Users/Vette/AppData/Local/Temp/fla7A97.tmp
    Installing msi at C:\Users\Vette\AppData\Local\Temp\fla3BF3.tmp\setup.msi with guid {BD7F1DA3-5EA0-65F8-52B0-5E103FDC045A}
    Application Installer end with exit code 0
    Elevated install completed
    Launching subprocess with commandline C:\Program Files (x86)\Adobe\Adobe Help\Adobe Help.exe
    Application Installer end with exit code 0
    Date: Thu, 12 Apr 2012 17:10:46 -0600
    From: [email protected]
    To: [email protected]
    Subject: Adobe Air error message when using  PSE 10
        Re: Adobe Air error message when using  PSE 10
        created by Jeff A Wright in Downloading, Installing, Setting Up - View the full discussion
    Vetteski65 I would recommend reviewing Troubleshoot AIR installation | Windows - http://helpx.adobe.com/air/kb/troubleshoot-air-installation-windows.ht ml for steps on how to resolve your difficulties.  Please feel free to respond to this thread if you have any questions about the steps listed within the document.  If you could also respond with the specific error message you receive it would be appreciated.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4331328#4331328
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4331328#4331328. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Downloading, Installing, Setting Up by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Why we use type casting  ' ?='

    Hii Team
    sample code for fetching the input value from search view which is connected to btq1order contextnode
    DATA : lr_qs TYPE REF TO cl_crm_bol_dquery_service,
           lr_qr TYPE REF TO if_bol_bo_col,
    lr_qs ?= me->typed_context->btq1order->collection_wrapper->get_current( ).
    lr_qr = lr_qs->get_query_result( ).
    I am new to SAP CRM .while understanding the code i got stuck in one problem that ,
    1.what is the main purpose behind
    TYPE CASTING ie;  '?='
    2.what happens if we write ?=  becoz if we write  '='  instead of  '?='  the system thows an error.
    3.when to use this operator ?= and when we cannot use ?
    It is used almost every where in BOL coding .please help me  by giving complete explaination with an example if possible.
    Thanks in Advance

    Hi Abhishek,
    Please check returning parameter type for get_current_dquery() method. In case returning type is mutually convertible then you don't have to use type casting.
    But in case where you are taking results in some other type where results are compatible but with different structure then you use type casting.
    best example would be cl_crm_bol_entity and if_bol_bo_property_access. Here property access is an interface to class and hence we use type casting.
    Please refer to:
    type casting
    You can find more documentation on internet if you search for type casting.
    Regards,
    BJ

  • How to use type cast change string to number(dbl)?can it work?

    how to use type cast change string to number(dbl)?can it work?

    Do you want to Type Cast (function in the Advanced >> Data Manipulation palette) or Convert (functions in the String >> String/Number Conversion palette)?
    2 simple examples:
    "1" cast as I8 = 49 or 31 hex.
    "1" converted to decimal = 1.
    "20" cast as I16 = 12848 or 3230 hex.
    "20" converted to decimal = 20.
    Note that type casting a string to an integer results in a byte by byte conversion to the ASCII values.
    32 hex is an ASCII "2" and 30 hex is an ASCII "0" so "20" cast as I16 becomes 3230 hex.
    When type casting a string to a double, the string must conform the the IEEE 32 bit floating point representation, which is typically not easy to enter from the keyboard.
    See tha attached LabView 6.1 example.
    Attachments:
    TypeCastAndConvert.vi ‏34 KB

  • I'm getting a error message when using Apple Configurator "unable to send ClearPasscode command to device"

    I'm getting a error message when using Apple Configurator "unable to send ClearPasscode command to device"

    Yes, that is correct.  My spreadsheet has the following information in those cells if you want to compare yours on Monday:
    Product Type
    Application
    |
    AdamId:
    <and a 9 digit number>
    I ended up bringing the Macbook Pro home with me after struggling with it for a half hour at the end of a long day. I called and within 5 minutes the problem was corrected.  The technician said they were getting calls all day. 

  • ERROR MESSAGE WHEN USING PACK COMMAND   Missing file ////presenter.css   Also:  "This course requires JavaScript to be enabled in your browser. Please enable JavaScript, then relaunch the course."  I have Java enabled in all browsers

    ERROR MESSAGE WHEN USING PACK COMMAND   Missing file ////presenter.css    Command then fails
    Also:  "This course requires JavaScript to be enabled in your browser. Please enable JavaScript, then relaunch the course."  I have Java enabled in all browsers
    Thoughts?  Using Presenter 10  Win 8.1  Intel I7  new HP with plenty of memory
                   Thanks

    I had saved one copy as an .asp but then resaved it to .xhtml 
    I'm assuming this is a static web site.  Rename (F2) all your pages with .html or .htm extension. 
    .xhtml is not a valid extension.
    Nancy O.

  • Error message when using search

    why do i keep getting an error message when using the "search" tabe in iTunes. This happend whe i upgraded t the latest version of itunes.

    Well, I believe JHeadstart does not really have this functionality.
    One way is use a Query Operator 'startsWith', but then you always query like LIKE '<entered search value>%'
    This is probably not what you want...
    But you could hack it into advancedSearch in YourApplicationModuleImpl
    try {
    if (viewCriterium.getQueryValue() != null) { //This is where exception JHS-00116 is raised...
    value = viewCriterium.getQueryValue().toString();
    } else {
    value = null;
    catch (NumberFormatException ex) {
    //insert check for wildcard
    value = viewCriterium.getValue().toString();
    if (value.indexOf('%')>=0) {          
    sLog.debug("Ja, een wildcard!!!");
    operator = "LIKE";
    } else {//original exceptionhandling code here...
    ...and a bit later, add test for "LIKE":
    if (viewCriterium.isDate() || viewCriterium.isString() || "LIKE".equals(operator)) {
    value = "'" + value + "'";
    very nasty code, and does not raise an exception for searches like '%xxx'
    Good luck,
    HJH
    Edited by: HJHorst on Mar 5, 2009 12:03 AM

  • Error message when using FM 'BAPI_BUPA_ADDRESS_CHANGE'.

    I'm continually getting an error message when using FM 'BAPI_BUPA_ADDRESS_CHANGE'. The message being 'Table BAPIADTEL entry to be changed not found in target system'.
    I have looked up this message but all links seem to refer to FM 'BAPI_BUPA_CENTRAL_CHANGE', which I'm not using, and has different parameter settings.
    I'm simply trying to update the telephone number and I'm updating strcuture BAPIADTEL and BAPIADTELX but still the message appears. I know that there is a really simple reason for this, but I have been double-checking everything and experimenting with lots of different areas, but with no effect.
    Has anyone encountered this problem using the specific FM ''BAPI_BUPA_ADDRESS_CHANGE' ?.
    Jason

    Hi Jason,
    In case your database tables had already value for field telephone number, then only the flag should be "U".
    If the telephone number field was empty, and we will try to change it by using the flag as U, it wont work. In this case, we should be using "I".
    I even wrote that before in this post, but somehow I guess the post was locked, and a lot of comments from you and me were not visible apart from the first two. So, I couldnt get any update from you.
    Anyway, its good that its working for you. Thank you for the update.
    Regards,
    Susanta

  • Error Message-When using DataScroller

    Hi
    I get the following error message when using DataScroller. I am using Oracle Jdeveloper 9i production release.
    Application Error
    Return
    Error Message: null
    java.lang.NullPointerException
         int oracle.jbo.server.ViewRowSetIteratorImpl.scrollRange(int)
         int oracle.jbo.server.ViewRowSetImpl.scrollRange(int)
         int oracle.jbo.server.ViewObjectImpl.scrollRange(int)
         int oracle.jbo.html.jsp.datatags.RowsetNavigateTag.doStartTag()
         void DataHandlerComponent.jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
         void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.GetParametersRequestDispatcher.include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.EvermindPageContext.include(java.lang.String)
         int oracle.jbo.html.jsp.datatags.ComponentTag.doStartTag()
         void Rate.jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
         void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.GetParametersRequestDispatcher.include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.EvermindPageContext.include(java.lang.String)
         void BrowseTab.jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
         void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()

    Issue has been resolved .Ingnore this

  • I get a Warning message when I try to open Lightroom_5_LS11.dmg that it is not recognized

    I have just bought Lightroom 5. I get a Warning message when I try to open <Lightroom_5_LS11.dmg> that it is not recognized. I have 0SX vs 10.8.5. How do I open this?

    Surrpent please try downloading a fresh copy of the Lightroom 5 installation files at Adobe - Lightroom : For Macintosh : Adobe Photoshop Lightroom 5.5.  The update contains the full installer for Lightroom 5.5.

  • In iphoto how to get the gold you delete a photo warning message when you check the box not ask

    in iphoto how to get the gold you delete a photo warning message when you check the box not ask

    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder.
    (On 10.7 or later: Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)
    (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    What's the plist file?
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.

  • How to use Type Casting in JSF Expression Language

    I have an attribute CategoryId in my VO of type oracle.jbo.domain.Number. I am trying to use the expression of Boolean item in JSF as #{row.CategoryId != 4}
    Here is the JSF code:
                          <af:column id="s141NewItem3Col" noWrap="true" width="100"
                                     rowHeader="false">
                            <f:facet name="header">
                              <af:outputLabel value="CAtIDDeq4" showRequired="false"
                                              id="ol18"/>
                            </f:facet>
                            <af:inputText id="s141NewItem3"
                                          value="#{row.CategoryId != 4}"
                                          label="CAtIDDeq4" required="false"
                                          readOnly="#{((pageFlowScope.ContractRightCategoriesTable.newRow) and (!(jhsUserRoles['RM, ADMIN, AllButTitl, AllButAdmn']))) or ((!pageFlowScope.ContractRightCategoriesTable.newRow) and (!(jhsUserRoles['RM, ADMIN, AllButTitl, AllButAdmn'])))}"></af:inputText>
                          </af:column>I am getting the run time exception as "Can not convert 4 of type class oracle.jbo.domain.Number to class java.lang.Long".
    I am wondering how the row.CategoryId is treated as Long?. PLease advise. Also, will I be able to use type casting expressions in JSF Expression Language?
    Thanks, Pradeep

    use attributeValue
    Try *#{row.bindings.CategoryId.attributeValue != 4}* ?
    Check this thread for details which discusses about the same:
    El expression to disable  or enable
    Thanks,
    Navaneeth

Maybe you are looking for

  • Is there anyway that I fix my IPod screen or send it in?

    I cracked my screen is there a way that I can send it in and get it fixed? How much would that be?

  • Downloading Ovi Music to my PC

    The Ovi music seems to be downloaded successful but can't be played. There is also a key next to each song. Has anyone got a solution?

  • Can anyone explain CRMS_IC_CROSS_SYS

    Hi All, I am new to this forum. I want to create a transaction launcher for CV02N in CRM_UI. I am facing some problems in steps in BD97 and CRMS_IC_CROSS_SYS . Can any body explain this step by step (like how to map the systems, how to create url etc

  • Creation variable

    hello, How can i do a bindvariable with a datatype Clob?? thanks

  • Please help, all I have is WSDL, URI and that's it...!

    I have a standalone Java application, which needs to call a webservice and several methods on that service. All I have is a WSDL file for the service, and the URI to call it. I have RAD 6, but I haven't done much work with web services. Can someone p