Problem with string constructor when using byte array as parameter

I am creating a string using constructor and passing byte array as parameter.This byte array i am getting from MessageDigest's digest() method,i.e. a hash value.
The problem is when i iterate through byte array i can able to print all the values in byte array.But when i construct a string from that byte array and printing that string ,that is printing some unknown characters.
I don't know whether i need to pass charsequence to the constructor and the type of charsequence.Can anybody help me?
Thanks in advance

Is there some problem today? I'm getting this sort of thing all over.
I already told you and so did Kayaman. Don't. String is not a holder for binary data. You have to Base-64 encode it. If you don't you cannot reconstruct the original binary digest value, so putting it into a database is completely utterly and entirely pointless.
Is that clear enough?

Similar Messages

  • Error when using byte array in web service model interface

    Hello everybody,
    I'm using a web service model in my web dynpro application. The web service requires a byte array as import parameter.
    When starting the web dynpro application the following error occurs:
    com.sap.tc.webdynpro.services.exceptions.WDTypeNotFoundException: type java:byte not found
    at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getDataType(DataTypeBroker.java:216)
    I'm using byte arrays several times in my application --> no problem. So why does the error say "byte not found" when using the web service?
    Thanks for your help!
    regards
    Christian

    Hi,
    maybe this is the problem. The type is byte and not binary.
    But I have the same problem as mentioned in the other thread: I can't change the type.
    The type in the WSDL of my web service is "base64binary". Is there maybe a possibility to import a jar-file for this type?
    Christian

  • Problem with JMS migration when using Ctrl+C to stop the managed server in cluster

              Hi,
              I am having a clustered weblogic application running on Weblogic 7.0 SP5. My application
              uses JMS as a asynchrous communication. We have MDB which listens to these JMS
              messages.
              If something is being processed on Managed Server 1 and while the request is in
              process, i am stopping the the MAnaged SErver 1 using Ctrl+C.
              After this, i go to admin console and migrate teh JTA and JMS. After this, i am
              expecting other running Managed Server should restart the incomplete transaction.
              But this is not happening. The Managed Serve2 doesn't process the requst.
              But when i restart teh MAnaged SErver 1 again, it takes up the same request and
              processes it.
              Is this a known problem with Weblogic that it doesn't support Ctlr+C case?
              Please note that the same thing is working fine when i stop the server using Admin
              console(Normal shutdown OR forced shutdown).
              Any comments in this regards are apprecciated.
              Thanks,
              Naresh
              

              Hi,
              I am having a clustered weblogic application running on Weblogic 7.0 SP5. My application
              uses JMS as a asynchrous communication. We have MDB which listens to these JMS
              messages.
              If something is being processed on Managed Server 1 and while the request is in
              process, i am stopping the the MAnaged SErver 1 using Ctrl+C.
              After this, i go to admin console and migrate teh JTA and JMS. After this, i am
              expecting other running Managed Server should restart the incomplete transaction.
              But this is not happening. The Managed Serve2 doesn't process the requst.
              But when i restart teh MAnaged SErver 1 again, it takes up the same request and
              processes it.
              Is this a known problem with Weblogic that it doesn't support Ctlr+C case?
              Please note that the same thing is working fine when i stop the server using Admin
              console(Normal shutdown OR forced shutdown).
              Any comments in this regards are apprecciated.
              Thanks,
              Naresh
              

  • PROBLEM WITH ALT-V WHEN USING CROATIAN KEYBOARD

    Hi,
    When Typing ALT GR+V (@ sign) in Croatian Keyboard, all the text from clipboard is copied into the text box (as it is pressed CTRL+V) plus the @sign.
    There were some bugs filed long back regarding a similar issue for the German keyboard where the customer was using the AltGr key for special characters, same as in our case.
    Below is the list of those bugs:
    (1)     Bug 757614: GERMAN USERS CANNOT USE ALT-GR KEY TO GET SPECIAL CHARACTERS
    (2)     666925
    (3)     767865
    (4)     768658
    I have gone through the descriptions and mail chains mentioned in these bugs, and it seems that the issue was fixed in OJDK.
    Please go through the above mentioned bugs once to get more details.
    It seems that this is not ORMS issue. It seems to be an Oracle Forms or OJDK issue.
    Can someone please advise on this as why is this happening. We are using Oracle Forms 10g.
    Thanks and Regards,
    Ashwini Swaroop Pradhan

    Tom Gewecke wrote:
    w/ all the keyboards and language settings.
    What do you mean by that? The problem being talked about here is an inability to make French accented characters on a German keyboard. What is your problem exactly?
    I've posted here because I guess it may be the same bug.
    After upgrading I wasn't able to do special characters, including some accented vocals, like "ì", very common in italian language.
    Then I've added an english keyboard, removed the italian one and added it again, so the problem with missing accented vocals was solved.
    I still have the same problem with special consonants, like "z" and "c": if I hold my thumb on such letters, I have no options like, say, "ż" (such characters are very important for my field (linguistics) and if Apple won't solve this problem I'll be forced to look elsewhere).

  • Ibook G4 having  problem with airport connection when using secure network

    Hi,
    I am currently using a brand new Macbook. I am connected wirelessly to a Comcast network through my Netgear Wireless-N 150 router model WNR 1000. The problem I am having is with the 4 year old ibook when I go to use the airport and connect to my existing network it says the password is incorrect. I spent time troubleshooting this with Netgear and basically we found out that the ibook does connect with the network when there is no security at all.
    I erased the hard drive on this ibook to prepare it for sale and it is back to the factory settings. Is there some kind of firmware or drivers I am missing to use the airport as described?? I want to be able to show the buyer that the internet works etc. I also may want to install a few things on the ibook before the sale.
    Thanks a mil
    Message was edited by: omshanti

    Did you reset the wireless router to see if by default, it has a different
    wireless security then, than however it presently is set up?
    The question you pose appears to be marked "answered or solved."
    When you reinstall an OS X, the setup asks if you have an existing
    wireless connection, or if you will be getting a new one; by default,
    the setup will make the existing one the automatic one for OS X.
    You should not have to add passwords or other, unless there has
    been one set in KeyChain or for the specific wireless base in question.
    Tiger 10.4.x does not require you to have a set password for wi-fi,
    but you will find several levels of secure options available in OS X.
    Not sure why your setup and configuration is problematic. Usually,
    a totally new OS X installation is without issue. Sometimes, you
    may have to administer a base station via Ethernet cable before
    some configurations can use it, but an existing network should be
    easy, unless it already has a password security in place.
    The Mac will work without a password-protected wi-fi internet source;
    often it will 'just work' even when moved to a new environment and
    a neighbor's network, if not password protected, will appear among
    other options in your vicinity and it will be automatically available.
    Not sure if any newer OS X update parts, from the Combo update
    files to take Tiger 10.4 to 10.4.11, plus others, would help the Mac
    connect better to whatever wireless source of internet available.
    I've not had that issue, as you state, except for when someone has
    a protected network or passwords in place. Mine has passwords to
    keep unauthorized neighbors from easy access; just in case.
    In remote locations where few neighbors exist who could access wi-fi
    from a lone source, no wireless security settings at all, work just fine.
    I've done that; and found a little greater range was gained in signals.
    And in the city (largest town in state) a computer I'd set up for use in
    a password protected wi-fi network - later worked fine and found the
    new owner's own wi-fi network without issues; and I had let the OSX
    setup assistant do its job. If a local network is protected by WEP or
    WPA2, etc with a password, one would be needed to access it. If not,
    then the connection should be automatic.
    Good luck & happy computing!

  • I have been having problems with YouTube functionality when using Firefox, some of them having begun with the latest Firefox update

    After a fairly recent update, I began having the option to paste text disappear, I've had backspace cause the browser to go back to the previous page while in a text box, and other issues which are apparently a matter of Firefox not recognizing the fact that I am typing in a text box.
    After the last update, suddenly YouTube video page URL links no longer translate into links containing the title of the video, and also things like the use of bookend asterisks in order to have text appear in bold typeface no longer work.

    i have the same problem with the above..firefox is running too slow with the games in facebook..but it runs good when browsing my updates, msgs, photos...firefox is totally opposite of IE..IE is faster with the games and slow while browsing..i love to use mozila but when i do games it really pisses me off...hope you could help me..

  • Problems with My Nano when using Accessories

    I bought my nano in November and haven't had any problem with it...until now. For x-mas I got an ITrip and a music station. My Nano doesn't like them. It worked once, and then stopped working. I took my nano to an Apple Store where they reset everything. It worked...for a day and now my nano won't play music through the ITrip or music station! Any ideas because I don't want to reset it and then re-load everything when I want to use my accessories. Thanks!
    Nano-4g   Windows XP  
      Windows XP  

    Hello Ashers,
    Welcome to Apple Discussions.
    I don't want to reset it and then re-load everything when I want to use my accessories.
    Resetting will not delete songs/photos from your nano. Sometimes there's a glitch in the nano, where you would have to reset:
    Resetting iPod
    The next time when you plug your nano to your iTrip and music station, you might want to try turning your nano on first. See if that helps.
    Gary

  • Problems with USB device when using WindowsNT

    Hi,
    my problem is that I want to use a simulator which can only be connected with USB to the computer.
    I used the VISA Driver Development Wizard as discribed in this link (http://zone.ni.com/devzone/conceptd.nsf/webmain/6792BAB18242082786256DD7006B6416) and it didn't work.
    I'm using Windows NT and VISA 3.1 and I read that it isn't possible to create a USB connection with VISA when using Windows NT. So my questions
    1) is this right
    2) Has someone a idea what I can do? I tried to use VISA USB Control and this also didn't work.
    I hope I discribed my problem detailed enough. It's my first post.
    Thanks for your responses
    Joerg

    As you can see in this table, USB is not supported by VISA under NT:
    http://digital.ni.com/public.nsf/websearch/EE34F21ECC2BE01286256C52005D1A1F?OpenDocument
    I would recommend to use Win2000 or XP. Using one of these OSes you could use this turorial  to create your VISA-driver:
    http://zone.ni.com/devzone/devzoneweb.nsf/Opendoc?openagent&1D0DD81FF1448CAE86256D90006EE2B4
    If it is not posssible to change the OS, you have to look for other ways of programming your usb-device. Check the web or the Microsoft site for help concerning Windows SDK and USB.
    Hope this helps a little!

  • Problem with path length when using oracle drive

    Hello!
    Does anybody else experience this problem with Oracle Drive?
    When I create a deep or nested hierarchy in which the path length is longer than 250 (the limit might be 255) characters, I cannot access the deeper subpages.
    Example:"X:\INET\START1\pfadlaengentest\das istein langer ordnername mit etwa 50 zeichen\and this is another veryveryvery long\and this is another veryveryvery lon2\and this is another veryveryvery lon3\and this is another veryveryvery lon4\and this is another veryveryvery lon5".
    I can access the page "and this is another veryveryvery lon4" but not "and this is another veryveryvery lon5"
    Is this problem due to WebDAV?
    What can I do - I think it is a critical error / bug?
    Regards Joerg.

    I opened a service request and oracle support could help me.
    The problem is the windows file system: the path length cannot be longer than 256 chars.
    There's a workaround with MS-Webfolders.
    More information is available via metalink: watch out for SR-Number 5659267.992.
    PS: Thanks to Bert
    bye :-j (joerg)

  • Problems with hierarchy display when using SAPBEXonRefresh

    Dear all,
    I would like to create dynamic logos in BEx Analyzer. It means I need to change the logo image depending on value of certain free characteristic ("LOGO_ID").
    At the moment, I have achieved that logo pictures (6 in total) are swapped by adding VBA code to SAPBEXonRefresh.
    Unfortunately hierarchy symbols become to act very strange. Basically there are two problems:
    1. They are not refreshed after hierarchy compression; those hierarchy symbols which are outside of result area are not removed
    2. Pressing symbols in order to expand/collapse hierarchy sometimes does not produce any effect.
    Code is show bellow and here is brief explanation of it. First, we are searching for "LOGO_ID" string in document. One cell to the right is value which tells us what logo to make visible. There are six logo pictures  in worksheet with names: "L1", "L2", "L3", "L4", "L5", "L6" and only one should be visible.
    Problem seems to be in working with Shapes (logo pictures are Shapes) since hierarchy expand/collapse symbols are also of the same type.
    Any ideas would be appreciated.
    Sub SAPBEXonRefresh(queryID As String, resultArea As Range)
    Call ShowLogo
    End Sub
    Sub ShowLogo1()
       Dim UniLogo As String
       Dim UniRange As Range
       Dim vaUnis As Variant
        If WorksheetFunction.CountIf(Cells, "LOGO_ID") = 0 Then
           Exit Sub
        End If
        Set UniRange = Cells.Find(What:="ID izvornog sustava", After:=[A1], LookIn:=xlFormulas, _
            LookAt:=xlPart, SearchOrder:=xlByColumns, _
            SearchDirection:=xlNext, MatchCase:=False)
        UniLogo = UniRange.Offset(0, 1).Value
        If UniLogo <> "" Then
           If ActiveSheet.Shapes(UniLogo).Visible = msoTrue Then
             Exit Sub
           End If
        End If
        vaUnis = VBA.Array("L1", "L2", "L3", "L4", "L5", "L6", )
        For i = 0 To 5
            ActiveSheet.Shapes(vaUnis(i)).Visible = msoFalse
        Next i
        If UniLogo <> "" Then
          ActiveSheet.Shapes(UniLogo).Visible = msoTrue
        End If
    Kind regards, Josko.

    Hi Josko,
    Where do you have this problem 3.5 or 7.0 BexAnalyzer.
    When ever heirarchy icons are created in BEx, respective hyperlink is assigned to each of them, Make sure that you dont manipulate with them,,
    If you still have problem then create OSS message.
    Regards,
    Vinay

  • Problem with whfhost.js when using Search in WebHelp

    Running RH 10 to generate and publish WebHelp, if I open the help directly from a browser, the Search function is fine. However, the application using the help opens it in a separate tab within its window. When I try to search for a string I know is there, first I get "No results". Then I try another string and I get "Unable to get property 'split' of undefined or null reference', referring to whfhost.js, and the help freezes.
    I would gladly fix this file if it were in the root folder of my project, but RH generates it in the output only. Does the application developer have to do something to fix it because it's happening on his end?

    I’m not getting that happening at all with my WebHelp launched via the application – once I expand the CSH help window to show me the left pane, search works for the left pane and top search field in my title bar.

  • Problem with 'action' attriubte when using 'rendered'

    I have something really strange;
    I have a JSF page used to insert a record and when inserting is successful, I set a REQUEST scope parameter called 'saved' with a value of 'true' as following:
    FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put("saved",true);Now, in the JSF page I already have a <h:commandButton ...> on the SAME previous JSF page used to collect the data :
    <h:commandButton rendered="#{requestScope.saved}" action="#{insertionBean.displayNew}" value="Create another"/>As it is shown, the rendering of this button is conditional ONLY after complete inserting. Until now every thing is OK, and the button rendered only as expected, but what is not expected is that when I click on the button the page only reloads and the method in the action attribute is never fired.
    Does the attribute rendered have something to do with RestoreView at the server side? Becasue when I DELETE it, the button fires the method, the problem is only when I use it in this scope.
    How I can accomplish this goal?!
    Thanks for helpful people

    The value of the rendered attribue is re-evaluated during apply request values phase. So you need to transfer it to the next request using h:inputHidden or, better, t:saveState (so that it also survives validations).

  • Problem with EL evalulation when used to assign component ID in ui:repeat

    Hello everyone,
    I've a problem when I try to assign the ID of a component with an EL within an ui:repeat component, e.g.:
    0 <ui:repeat value="#{dm.categories}" var="category">
    1      <rich:panel id="catPanel#{category.id}">
    2         ....
    3       </rich:panel>
    4       <someohtertag someatt="catPanel#{category.id}" />
    5  </ui:repeat>The above page renders correctly but the id in line 1 evaluates to ...catPanel in HTML. The other tag evaluates of course correctly to catPanel123.
    When I use an EL variable from outside of the repeat tag it evaluates.
    Am I doing something wrong here or are the ID attributes evaluated in a different rendering pass?
    Does anyone have another idea how to assign the IDs in such a manner?
    ciao,
    Elmar

    Hi,
    Check in t.code CMOD whether project is active or not (Activate the Project)
    BR,
    Vijay

  • Problem with Database Initialization when using Configuration Manager (ubuntu-jboss-mysql)

    Hello,
    When I try to initialize the database using Configuration Manager, the following error occurs:
    ALC-TTN-002-001: JDBC datasource lookup failed for resource reference [java:comp/env/jdbc/
    IdpDs]. The most likely cause is that a datasource having a JNDI
    name of [IDP_DS] does not exist or is misconfigured. Check the application
    server's configuration.
    I DO have an IDP_DS datasource configured in jboss. I carefully followed the Jboss configuration instructions, so I don't really understand which is the issue here.
    Anyone encountered a similar problem? Any help?
    Many thanks in advance,
    Artur

    Data source files have to end with ds.xml and should be copied to the /deploy folder of your JBoss configuration (all) for them to be picked up by JBoss.
    If the file was edited in Windows, make sure it does not contain DOS characters. Ubuntu Linux is not a supported LiveCycle OS platform currently. Only Red Hat Enterprise and SUSE Enterprise are.

  • Problem with page size when using redirected printer

    I have a customer who connects to another customer's network via VPN, then logs into and RDS server running Server 2012.
    This customer then opens an Excel file and tries to print it out to a printer that is local to her and of course shows as redirected when looking at Devices and Printers in her login on the RDS server.
    The problem is that when going to File / Print on the Excel document, the page size is listed as Custom Size and if you try to select any other size from the list, it won't accept it and stays at custom size. If she selects another redirected local printer,
    she can choose whatever page size she wants.
    This is not selecting the paper size. She can change that on either redirected printer. So when she is trying to print an Excel file on legal size paper, the print comes out reduced as if it is trying to print on letter size paper even though legal size
    paper is selected.
    I hope my description is clear enough. If not, please let me know and I'll try to explain further. So I'm trying to find how to fix this one redirected printer (a Brother MFC-7860DW) so that she can change the page size so when the document prints it occupies
    the full sheet of legal size paper.
    Jonathan

    Is there is a difference in printer driver for working and non-working redirected printers? If yes, can you match it?
    Do you see the same behavior if you use Generic Text Only inbox driver?
    Thanks
    Hari Kumar --- Disclaimer: This posting is provided AS-IS with no warranties or guarantees and confers no rights

Maybe you are looking for

  • How to use Device Profiles and Viewing Conditions Profile in Photoshop Elements 11?

    In trying to get to grips with the Colour management aspects of PSE11, I have encountered the following problems: Having selected "Display" a sequence of clicks (Change display settings -> Advanced settings -> Colour Management -> Colour Management t

  • Bringing pictures from old eMac to new iMac

    I have a new iMac with iPhoto '09. I want to bring over the pictures (with albums, slideshows, picture names, etc.) from my eMac with iPhoto '08. I have them set up with a Firewire connection. The last time I brought my pictures across computers (200

  • Display driver for IBM Thinkpad T60 on Windows 7

    Hi, I've just installed windows 7 on my T60. It seems that the display driver (Intel GMA 950) is not behaving the way it used to behave in windows XP. I tried to install everything I could find on the support web site. They say that the support for d

  • I selected the wrong form and now I can't select a new form, HELP

    Help!!  I selected the wrong form and now I can't select a new form, can anyone help?

  • Template Not Updating Files

    I am helping someone with implementing CSS on a website. She created the entire site in Dreamweaver MX using one dreamweaver template. I did a remote get of all the files from her ftp site, including the template file. So now I have the entire direct