Issue with applet reading the zero-length string values

In my application the javascript function is setting the values read from the text fields to an applet. If the text fields are blank the javascript is setting blank value only but in the applet the values have become null. Please can any one let me know what exactly is the problem here?
Its working fine in jdk 1.6.0 I upgraded it to 1.6.0_12 update and facing this problem.

In the applet class its checking the same way but there i m getting the value as 'null' for the parameter set from javascript.
But in the javascript if i try to alert the value its giving me blank i.e., zero-length string.
When i tried to google it I found the following information,
In JDK 1.1 the Java language specification was loose in dealing with null and zero-length strings in the class libraries. Some APIs may treat a zero-length string as null, while other APIs may treat null as it is. In Java SE, the Java language specification has been tightened up to specify what the exact behavior should be.
This issue is not fixable. Thus, in Java SE an applet that relies on the APIs to treat null as a zero-length string may result in an exception.
Is there anything to do with this?
The strange thing is it working fine in 1.6.0 i mean i m getting the value of parameter as blank in applet which is same set from javascript.
But if the same is not working in 1.6.0_12 inspite of javascript setting the blank value, the applet is reading it has 'null'.

Similar Messages

  • Issue with Submit and Return in passing string/values of longer length.

    Hi,
    I have a FM which has to submit a report as a job.
    I am required to send a string( length could be close to 1024 characters or more than that) to the report as the parameter.
    I am using Submit with Return.
    1.When I pass my string as parameters, in the report it gets truncated at 60 chars.( though i have defined the parameter of type char1024)I lose the data.
    2.When I split my string(aflter logical splitting the lenght is still equal to about 200 chars) and then pass as select options it gets truncated at 45 chars in the report ( though i have defined the parameter of type char1024)and i lose my data.
    3.I cannot use Export/Import as I found that it does not work with jobs.
    Please let me know how can i sumbit the report as a job while passing it a string of length 1024 characters.
    Regards,
    Sulakshana
    Edited by: Sulakshana Shinde on May 21, 2009 2:44 PM

    Option 3 should work, unless you are not using the EXPORT/IMPORT correctly.  I believe that you are going across work processes, which means you may need to use the shared buffer or shared memory when using the export/import statements.  
    Something like this.
    Data: lv_value type string.
    lv_value = 'SomeValue'.
    EXPORT lv_value = lv_value
           TO SHARED BUFFER INDX(ST) ID 'SomeUnigueKey'.
    See this.
    http://help.sap.com/abapdocu/en/ABAPEXPORT_DATA_CLUSTER_MEDIUM.htm
    Regards,
    Rich Heilman

  • Does Oracle allows zero length string

    Hi,
    I tried to insert zero length string ('') into an Oracle table, a null value and a non-empty string. But I found that zero length string and null are stored as NULL in the column.
    Create table test (col1 number(2), col2 varchar(10));
    Insert into test values (1, 'hi');
    Insert into test values (2, NULL);
    Insert into test values (3, '');
    Select * from test where col2 is null;
    Result: 2 rows
    Select * from test where col2 = '';
    Result: 0 rows
    Is this to do with some environment setting in SQL* Plus or does oracle doesn't allow zero length string?

    Oracle treats '' as NULL.
    There are frequent murmurs that some new version of Oracle is going to change this behaviour (I believe it's not ANSI-compliant) but I doubt that they will, as it will break too many old applications.
    Cheers, APC

  • HT4623 i have issue with my iphone5, the phone is open and good network signal, but when some one calling me they cant reach me, like the phone is off

    i have issue with my iphone5, the phone is open and good network signal, but when some one calling me they cant reach me, like the phone is off

    You are as far as you can be with the original iPad; only iPad 2 and greater will update to 7+

  • Is anyone else having issues with "skipping" while the songs are playing?! It is very aggravating to us... and we've had it going on for several months now.  Any ideas at all how to fix it?

    Is anyone else having issues with "skipping" while the songs are playing?! It is very aggravating to us... and we've had it going on for several months now.  Any ideas at all how to fix it?

    So, don't use youtube.
    http://www.the-top-tens.com/lists/best-alternatives-youtube.asp
    http://www.youtubealternative.com/

  • HT4972 Has anyone had issues with failure of the music player to launch after updating to OS5? My Gen 3 will no longer play music!

    Has anyone had issues with failure of the music player to launch after updating to OS5? My Gen 3 will no longer play music!

    I think a few have.
    Try the standard fixes:
    - Reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factory defaults/new iPod.

  • Viewing issue with Adobe Reader

    Hi there,
    I'm having an issue with Adobe reader, which appears to be not related to platform or version. To cut a long story short. I've created an A4 design in Photoshop. Part of this design includes some boxes, that have been given an outline (border) effect. Also bare in mind that the Photoshop files are being created at 350dpi.
    When I put my design into Illustrator/ InDesign and then generate a PDF file. I then go and look at the pdf file and when the zoom is at 100%, the edges of the boxes are not straight, you'll get a slight offset half way along for example. However, when I zoom in to 400% the problem disapears and the lines (edges) look perfectly as they should.
    Does anyone know about this issue? I'm worried that when I print from the PDF, this issue will be in the print-out - or will it be OK when I print it seeming as it dissapears at 400% zoom.
    Any prompt answers or help would be appreciated.
    Kind regards,
    Luke

    Can you open Reader by itself?  If so, try disabling Protected Mode [Edit | Preferences | Security (Enhanced)].

  • I am having a file moving issue with Adobe Reader XI

    I am having a file moving issue with Adobe Reader XI on a Windows 7 32bit system. When Adobe reader is set as the default program for PDF files moving files from one directory to another takes over a minute, regardless of the size of the file. When the default handler is set to another program, like Nuance or PDF Creator, this is instant. What in Adobe Reader is causing this and what can I do to speed up file moving? Any help will be greatly appreciated. Thank you.

    I am using Windows 7 home edition and using Internet Explorer 10
    The PDF's are online on websites that I am trying to open.  Both on the site as well as trying in a new window.
    Thank you
    Jeff

  • Issues with Adobe Reader with Windows 7

    I'm having big issues with Adobe Reader. It won't open/display PDF files and closes on it's own!

    Not sure if it can help you but I believe you have NVIDIA driver on your machine. Which version it is?
    Many tumes issue is seen with NVidia drivers on the machine. Not only Reader but other major apps also crash due to issues in this module.
    Please update the NVIDIA graphics card drivers. More information is provided in the below links
    http://windows.microsoft.com/en-us/windows/update-driver-hardware-isnt-working-properly#up date-driver-hardware-isnt-working-properly=windows-7
    Please let us know if you still face this issue.

  • I am having issues with connecting to the store...the page just hangs and when I run Diagnostics it states that a secure connection could not be established.

    I am having issues with connecting to the store...the page just hangs and when I run Diagnostics it states that a secure connection could not be established.
    I have contacted apple via email and tried all the steps they have recommended and it is still not working. 
    I have tried disabling my McAfee and that does not work either. 
    Anyone that the phone number to apple express so I don't have to keep waiting for them to email within 48 hours? 
    Thanks. 

    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • HT4623 issues with texting after the 6.1 update on my iPhone

    issues with texting after the 6.1 update on my iPhone

    My wife and I are on different networks ie GCI vs AT&T after we both updated our iphones to 6.1 we no longer can receive texts messaging even though both are phones say the message was delivered. we can however text with other iphone users as long they are withing the same carrier and with everyone as long as they are not other iphones regardless of the carrier as well as with other iphon users that are still using 6.0. My wife and I also have ipads with wifi only and the one we updated to 6.1 is having the same issue while the one that is still 6.0 has no issue and will send and receive messages with out issue even to and from the 6.1 devives that are having issues. I have contacted both service providers and was told it is a Apple messaging issue. At this point I just would like to find and reinstal the 6.

  • I got some issues with Adobe Reader.

    Hello!
    I got some issues with Adobe Reader. When I read a document in the Firefox
    I have to click in the Adobe window all the time to reactivate keyboard shortcuts
    to tale effect in the document.
    Like when I scroll up and down the document with the arrow keys, this doesn't
    work after changing to an other windows or tab and coming back to the previous
    window.
    Was there a clue to this behavior? Like a check box or what I did not see until
    now?
    Thank You Very Much.
    Sincerely,
    Steve

    Does this occur with all pdf documents or only one specific document? What version of the Mac operating system are you using? What version of Acrobat reader?

  • Is anyone else having issues with airplay after the Lion update?

    Is anyone else having issues with airplay after the Lion update? It sees the libaray but won't connect...

    I'm having the same issue.  So far all lion has done for me is make all my microsoft office documents un-readable until I upgrade (about $150) and lose my home share capabilities...can anyone assist with this?

  • Issues with lines across the screen, as well as freezing

    Issues with lines across the screen, as well as freezing
    Hello all
    Got an iMac since January 2008 and I do like it a lot, even though it has some issues:
    -- It displays (quite often) lines partially across the screen
    -- Lines appear as well when opening applications or when menus come up
    -- The system freezes more than I like to admit (more than my Windows/Ubuntu box)
    I don't know if the freezing has to do with the lines that are shown on my screen. But I assume that both issues relate to some video card problem. I can't be sure - but that's what I assume from living with this issue day to day.
    The line on the desktop (most of the time it is there before login) I can always get rid of by changing the display resolution to something else and then changing it back. Normally the line is gone, or, reappears on a different spot on the desktop. But repeating the procedure removes the line.
    However, this does not mean that the lines are not showing up again when launching apps or displaying menus!
    And since those lines appear to happen randomly, I think it's safe to assume that we're not talking dead pixels here, either...
    About the freezing:
    My iMac freezes sometimes when I move the mouse around, when switching desktops using "spaces" or when the zoom function of the Dock kicks in. Sometimes the screen goes completely black, sometimes completely white. The mouse, however, always works. But the system requires a reboot.
    Again, this happens too often to feel comfy about it.
    With my little knowledge of Mac troubleshooting I assume that there's something wrong with the ATI card that's built into my Mac. On the other hand, some people say that they started getting similar issues after updating their OS to Leopard. Again other people say that such issues stem from an ATI revision that is too old and the Mac should get a new ATI card. And how would that work? Isn't that an "all-in-one" machine with everything soldered onto the mainboard?
    So, any help in this matter is greatly appreciated...
    Cheers,
    Rainer

    Here are a few screen photos I've taken (not screenshots, as the lines are not visible when taking screenshots. I used my digicam to snap those...).
    Here's the link to those screen photos displaying some of the many lines I keep having:
    http://picasaweb.google.com/rainer.rohde/NewAlbum62508115AM
    Needless to say, as I typed this message here, I had a nice line going across my Safari window..
    Cheers,
    Rainer

  • I have an older version of Firefox 3.6.6 I believe I am having an issue with one of the websites I sign into. Is there any way to update to the newest version

    I have an older version of Firefox 3.6.6 I believe I am having an issue with one of the websites I sign into. Is there any way to update to the newest version. Without losing all my bookmarks and saved pass words?

    Hello johngervais, the latest firefox version is 26.0 (today 4 Jan 2014).
    note that [https://support.mozilla.org/en-US/kb/firefox-no-longer-works-some-versions-windows-xp Firefox no longer works with some versions of Windows XP], if you have '''xp with sp2 and above''' you can update to latest version, see : [http://www.mozilla.org/en-US/firefox/26.0/system-requirements/ Firefox 26 System Requirements]
    if you are able to update to latest version then see : [https://support.mozilla.org/en-US/kb/common-questions-after-upgrading-firefox-36 Common questions after upgrading from Firefox 3.6]
    see also : [https://support.mozilla.org/en-US/kb/firefox-just-updated-why-it-asking-me-update-again Firefox just updated - why is it asking me to update again?]
    Don't worry you won't losing bookmarks and passwords after update firefox.
    thank you

Maybe you are looking for