UTF problem in a legacy library

Hello,
I'm new to java world, but have been programming for 10 years already.
I have a java library, on which we write our servlets which receives MMS messages from the mobile operator.
The MMS messages are sent as SOAP multipart messages.
Our library was created once upon a time by a 3rd party and we don't have any access to either source or the company, as they went out of business.
Library function receives the SOAP message, parses it and gives us the fields in a more OO manner.
The catch is, it works perfectly as soon as MMS message subject line contains only ASCII characters.
If there are some other stuff in it, it screws up all the string.
I've checked the net dump and saw that they were perfect UTF-8 strings, but as we don't have any access to the code, we can't set the encoding of the reader it uses.
So, how can I restore the original string sent from the garbage created by the library?
Any ideas?
Best regards,
Salih Goncu

Can you post the bytes before and the characters after? Preferably as 8-bit hex bytes and 16-bit hex characters?
A good sign is if they match up numerically...

Similar Messages

  • Ok so I cant open my Itunes due to Windows Error 2 and the message says to uninstall and re-install Itunes but I'm pretty sure that would wipe the library right? Is there any way to fix the problem and keep my library?

    Ok so I cant open my Itunes due to Windows Error 2 and the message says to uninstall and re-install Itunes but I'm pretty sure that would wipe the library right? Is there any way to fix the problem and keep my library?

    Hi neffn!
    I have an article for you that can help you go through that process of uninstalling and reinstalling iTunes. If you have Windows 7, you will want to see this article:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    http://support.apple.com/kb/ht1923
    and if you are using Windows XP, you will want to reference this article:
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    http://support.apple.com/kb/ht1925
    Note that, as it says in those articles:
    iTunes Store purchases or songs imported from CDs are saved in your My Music folder by default and are not deleted by removing iTunes. While it is highly unlikely that you will lose any contents of your iTunes Library when following these steps, it is always a good idea to ensure that your iTunes library is backed up. If you're unsure how to backup, see iTunes: Back up your iTunes library by copying to an external hard drive.
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • Problem calling simplebutton from library

    Hi guys,
    I'd like to ask for your assistance. I have a problem calling
    SimpleButton from library. I already checked the Linkage:Export for
    actionscript but still an error appear "Call to a possibly
    undefined method OkBtn". I'm just wondering because this method
    works on my MovieClips except for SimpleButtons. Is there another
    way to call SimpleButtons?
    Here's my code calling MovieClip:
    var mc:MovieClip = new ourProduct();
    and same in calling my SimpleButton:
    var myOkBtn:SimpleButton = new OkBtn();
    please help.
    Thank you very much

    Hi again,
    Since I could not call my SimpleButton inside the library, I
    was thinking of putting my button inside the movieclip and call
    that clip inside my library.
    On my stage, I called
    underConstructionPane() movieclip. This
    underConstructionPane contains
    myOkBtn which previously I wanted to call but as a work
    around, I just put it inside
    underConstructionPane movieclip with instance name of
    okBtn. I added eventHandler on
    okBtn which supposed to call
    showHome() function outside
    underConstructionPane.
    showHome() was declared on the stage or root (I don't know
    the correct term. hehehe
    sorry.) but I don't know how to call that function.
    I tried this:
    var home = new showHome();
    but it won't work.
    Please help me
    Thank you.

  • Problem when renaming iPhoto Library

    I recently renamed two iPhoto Libraries. A day later I plugged in my external HDD to do a Time Machine (TM) backup and noticed that TM deleted ALL my previous backups except the last one, stating there was not enough space.
    My conclusion is that renaming these libraries caused TM to see them as NEW libraries and wanted to back them up all over again, meaning I needed 40GB of space rather than the 15GB available and let to the deletion of all my previous backups (without warning)!
    I have posted about this in the TM forum, but decided to mention it here as well to warn others of this potential problem.

    problem when copying iphoto library from ext hd to ext hd. stops after 2 gb saying there was data with same name on target hd. but that one is brandnew and freshly formatted.
    How are your external HDs formatted?  Both need to be formatted MacOS Extended (Journaled, not case sensitive) to work with iPhoto.
    If the file system differ, you may have problems with ambitious filenames, for example, if one drive is case sensitive and the other not.

  • [Solved] Yaourt (warning:problem in pkgbuild.sh library)

    Что это за ошибка, и как ее исправить?
    После warning:problem in pkgbuild.sh library, пишет:
    /usr/local/lib/yaourt/util.sh line 164: package-query: команда не найдена.
    Ошибка появляется после обновления яорта, или после написания команды яорта установить что-то, например: yaourt -S broadcom-wl.
    Last edited by anp (2012-11-09 11:21:02)

    Trilby wrote:If google-translate was right, you need the following:
    INSTALL: https://aur.archlinux.org/packages/package-query/
    Спасибо за подсказку.
    Скачал package-query, перенес его в папку tmp и из консоли начал устанавливать (по инструкции в файле install)
    cd /tmp/pacage-query-1.1
    ./configure
    make
    make: Не заданы цели и не найден make-файл.
    google-translate:
    Thanks for the tip.
    I downloaded the package-query, transferred it to the tmp folder and started from the console to install (the instructions in the file install)
    cd / tmp/pacage-query-1.1
    . / configure
    make
    make: do not set targets and not found make-file.

  • Problems with loading native library/missing methods: no ttJdbcCS1121

    Hi guys,
    Im getting this problem in glassfish 2.1, but in glassfish 3 or in tomcat, i dont get this problem. (Windows)
    Any thoughts?
    java.sql.SQLException: Problems with loading native library/missing methods: no ttJdbcCS1121 in java.library.path
    at com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcOdbcConnection.java:1750)
    at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:305)
    at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:161)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:193)
    at com.summitinvt.mdaq.db.handler.DBConnector.getConnection(DBConnector.java:108)
    at com.summitinvt.mdaq.db.handler.DBConnector.initiateConnection(DBConnector.java:101)
    at com.summitinvt.mdaq.db.handler.DBConnector.<init>(DBConnector.java:34)
    at com.summitinvt.mdaq.db.handler.DBConnector.<init>(DBConnector.java:14)
    at com.summitinvt.mdaq.db.handler.DBConnector$DBConnectorUtil.<clinit>(DBConnector.java:24)
    at com.summitinvt.mdaq.db.handler.DBConnector.getInstance(DBConnector.java:28)
    at com.summitinvt.mdaq.rats.server.CommunicatorImpl.getPnLByCurrency(CommunicatorImpl.java:1074)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562)
    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:207)
    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243)
    at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
    at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:382)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
    at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    regards
    John

    A similar problem was reported before on this Forum - see
    Re: not able create connection to timesten
    checking the Release Notes I can see 11.2.1.8.0 has been tested against Glassfish 3 but I
    can't see any mention about Glassfish 2 in the v7 or v11 Release Notes (albeit only on a quick
    search).
    In my full install on XP, ttJdbcCS1121.dll is in C:\TimesTen\tt1121_32\bin

  • Problems with loading native library/missing methods:no ttJdbcCS in java.li

    Iam facing one problem while connecting the timesten client to the server The SQL Exception which Iam getting is pasted below:-
    Problems with loading native library/missing methods: no ttJdbcCS in java.library.path
    I am working with MAC OS X 10.7.2 and my timesten client version is 11.2.1.0
    I have also changed the Java Preferences from 64-bit to 32-bit but still whenever i tried to connect with the SQL Developer it gives me the above error.

    I just tried this out. My environment is OS X 10.7.4, Timesten (32-bit) client 11.2.1.9.0, SQL Developer 3.1.07, Oracle Java 1.7.0_04.
    The key things you need to be sure to do (in a terminal window) are:
    1. Be sure to . in the TimesTen environment script <tt_install_dir>/bin/ttenv.sh to set the full TT environment.
    2. Change directory to SQLDeveloper.app/Contents/Resources/sqldeveloper
    3. Run 'sh sqldeveloper.sh -J-d32'
    and all should be fine.
    Note that if you are using Java7 as I am then there is a step 1a. Change the CLASSPATH environment variable to specify ttjdbc6.jar not ttjdbc5.jar. For some reason running the app directly from Finder does not work even if you add -J-d32 into the sqldeveloper launch script. I'm still looking into that.
    Chris

  • Problems with loading native library missing methods ttJdbc1122.dll

    Problems with loading native library/missing methods: C:\TimesTen\tt1122_64\bin\ttJdbc1122.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
    Hi,
    I have installed TimesTen 11.2.2 64-bit version on 64-bit windows 7.
    I have TimesTen 7 64-bit as well installed on my machice
    When trying to connect to TimesTen (Direct connection) using jdbc from eclipse, I get the following error "Problems with loading native library/missing methods: C:\TimesTen\tt1122_64\bin\ttJdbc1122.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform".
    The JDK version is 1.6.25 - 64 bit version.
    Please help me resolving this error.
    Thanks in Advance,
    Balamurugan

    Are you using SQL Developer?
    There is or used to be a restriction of only being able to using 32 bit. A suggestion might be to try the 32 bit client.

  • Problems porting a legacy C++ library with "const char *"

    I need some help, i'm trying to "port" a legacy Windows C++ library into a Windows Runtime Component Static Library.
    I am getting hundreds of errors of the this type:
      argument of type "const char *" is incompatible with parameter of type "const wchar_t *"
    Short of a global edit, is there a better solution for this?

    Without context it's hard to say. Depending on what the library does you may be able to provide an interface on the edge which takes wchar_t*s and converts them to char*s then calls the internal functions.

  • Problems Moving I-Tunes Library to External Hard Drive

    I've ran out of disk space on my internal hard drive so have bought an external hard drive and want to move my iTubes database and music to the new drive and free up my internal hard drive. I have music that has been ripped from my CDs in iTunes, plus I have loaded into iTunes other music I had lying around elsewhere on my internal hard drive. I changed the location of the iTunes database to the new drive and then selected Consolidate Library. It then starts copying the files elsewhere on my internal hard drive and then errors before it gets around to copying the rest of the files in the iTunes library ie. none of the music that I have imported directly into iTunes has copied across to the external hard drive, only a large number of the other music files I had on the drive before I installed iTunes. Any ideas how I either (a) find the offending file(s) and remove them, or (b) get around this problem and continue copying everything I possibly can without erroring out.
    thanks in advance
    Andy

    Ick, that message usually shows up while trying to sync an iPod. Well, iTunes thinks one of the files is corrupt and doesn't tell you which one, lovely, isn't it?
    The only thing I can think of is what I had to do when I got an error message from the consolidate command. I kept watching the folder it was consolidating to using Windows Explorer, look at the column Date Modified or Date Added. The last file in there is the last file iTunes was able to copy with success.
    Now, you need to go hunt for the next file, the file that made it error in iTunes. The consolidate command copies files in the order they were added to your library.
    iTunes menu > View Options > Date Added must be checked off.
    Now click twice on the Date Added column so iTunes will sort by Date Added, oldest files at the top. Find the file AFTER the last successful song. Either delete it from the iTunes libary list (not your hard drive), or rename it (which is waht I did - I had to rename a whoel album it was freaking on).
    Hope that makes sense. It took me hours to consolidate my 200G+ library.
    Some people just give up and create a new library with no playcounts or ratings, but I persevered; perhaps you will, too.

  • Problem downloading to network library

    I'm using iTunes 8 and have my library mapped to a network drive on a NAS device. I access it over WiFi, which has been great for wireless access to my whole collection. I recently subscribed to some video podcasts, but am having issues downloading the larger files. I used ProcMon to determine that iTunes is saving it's temporary download files to a Downloads folder under my library before moving them to the Podcasts folder in my library. Since this is all happening over WiFi, it causes iTunes to completely lock up. Ideally, I'd like to have my Podcasts stored locally on my computer (rather than with my music on the network). I'd also be just as happy if I can change the cache location to something local. I think either solution would fix my locking up problem. Please help! I can't find anywhere to specify either of these settings.

    Hi Amit,
    Try using Logical file path..
    Goto T-Code FILE assign ur physical file path to logical file..
    Once ur assignment to FILE is over.
    In ur program use the Function Module:
    CALL FUNCTION 'FILE_GET_NAME'
    to get the file name in a varibale gv_filename just a exapmle.
    Then use the following sample as refernce for ur Open dataset:
    OPEN DATASET gv_filename FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    Hope this helps..

  • Iphoto 9.3 and Mountain Lion Problems : Cant access my library : rebuilding doesn't work just hangs for hours

    My Macbook Pro running Snow Leopard, had hard drive failure so I had to borrow a friends similar machine to access my iPhoto library ( 523 GB) on a 1TB drive after editing the photos and after exporting one folder of images the program quit and then asked me to repair which I tried hung up at 99% and would not open the event thumbnails . I have tried everything even trying to transfer the particular event from that library to a new library using iphoto manager just so I can export my project and send but still no success as it is telling me that it is getting no info from the library, I changed permissions on the drive ..still no success . I restarted Iphoto and it took hours to show the images but all events thumnails said "0" and it shows all the event cover photos as a gray photo with a palm tree in it or something . I tried rebuilding again this morning and the new library says "0" photos and a library size of 7.3 mb
    I got my own Macbook 17in back yesterday and downloaded Mountain Lion to my machine and Iphoto 9.3
    I tried to open the library which is 523 GB of images that used to work fine before getting an error message saying it needed to be repaired. I tried opening it with Iphoto 9.3 via I photo manager which told be that there were inconsistencies in the library and it needed to be repaired I chose that option and it is now the following day still "rebuilding thumbnails" since last night . This is a huge problem I have missed project deadlines and my income is severely affected by this situation of not being able to access my work. What can I do to fix this, access my files and export my overdue project at this point ?

    Terence I find it surprising that you would say use Iphoto Manager after saying that I used it to rebuild using it took me to 99% of the way and just hung. I even spent my $20 and got the latest version 3.8.3  which was supposed to remedy these issues. See below my email to Fat Cat software the makers of Iphoto Manager:
    "Email to Fat Cat Software : Re Iphoto problems:
    My Macbook Pro running Snow Leopard, had hard drive failure so I had to borrow a friends similar machine to access my iPhoto library ( 523 GB) on a 1TB drive
    after editing the photos and after exporting one folder of images the program quit and the asked me to repair which i tried …it hung up at 99% and would not open the event thumbnails .I have tried everything trying to transfer the particular event from the library to a new library using Iphoto Manager just so I can work on my project but still no success as IPLM is telling me that it is getting no info from the library, I changed permissions on the drive ..still no success .
    I opened it using IPLM and it took hours to show the images but all events said "0" and it shows all the event cover photos as a gray photo with a palm tree in it or something . I tried rebuilding again this morning and the new library says "0" photos and a library size of 7.3 mb . There
    really seems to be a serious problem with Iphoto 9.3 as it
    asks you to rebuild or repair the library then IPLM stops at 99% leaving
    the thumbnails
    unviewable and just hangs up after that or wont open and there the problems start.
    Please advise and give me some viable options on this issue."
    Its days later and the support at Fat Cat software emailed me asking a question and are apparently just as floored as I am with this malfunction ..I hope they are working feverishly to address this as my conclusion and solution is as follows :
    Using the older version of Iphoto Library Manager when my machine asked me to upgrade and rebuild instead of the first aid function in Iphoto 9.3 did not help but actually corrupted my library and downloading the latest version did not help remedy it either. What I should have done and am now doing is using the Iphoto first Aid function in Mountain Lion and Iphoto 9.3 using option command to rebuild the entire library. So far it is working with no hangups ...it is now rebuilding image version number 6715 and counting with 33000+ images to go ..if this solution really rebuilds then that is the ONLY way to go with this issue which has cost me a lot of time and money in missed deadlines , lost income and lost business . Iphoto and Iphoto Library manager are normally great in what their purposes are and in ease of use and function but whenawry with compatibility in version software issues arise things go terribly awry and the tedious painstaking fixes available that go for days on end  just do not cut it.

  • How can i open itunes if there is a problem with the itunes library file?

    Hi to everybody,
    it's my first time in itunes and after installing it I moved the folder in music. Then i was questioned about something on sharing or account, I can't remember, and i choised not to share anymore. After that every time i try to open my itunes there's an error message appearing that says he has not the possibility of open or write the library file. i've already tried to reinstall the program but the problem isn't fixed. my platforme is windows7. thanx for any help

    Contact iTunes customer support.

  • Problems while restoring iPhoto library with Time machine

    Hello,
    I've had some problems in iPhoto 11 for a while. Pics being removed or altered in different ways.
    I then decided to restore my iPhoto library to an earlier date using Time machine. I used a one week old backup and after 2 hours or so when it was done, no pictures in the folder anymore! I panicked and restored once again, this time on the whole "Pictures" folder. Now i cannot even open the folder, i get this message - "The folder “Pictures” can’t be opened because you don’t have permission to see its contents."
    I am the system administrator.. ive checked the "get info" option and made sure that all users can "read and write" in the folder.
    When I try to restore the Pictures folder again i get a message telling me that it cannot be restored because the folder is being used... even if i dont use it!
    I really need help to solve this... 60Gb pictures are gone
    Please help me! What can i do? Is there any way to do a complete system restore for 1 week so i get rid of these problems? Or what would be the best and easiest fix?
    Sorry if i placed this thread in the wrong place, but i think there are multiple problems that belong in different areas...

    First ry the following on the library:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete the contents the following folder:
    User/Library/Containers/com.apple.iPhoto
    3 - reboot, launch iPhoto and try again.
    NOTE: For Mavericks, 10.9,  go to your Home folder and use the View ➙ Show View Options menu to bring the this window:
    where you can check the Show Library Folder checkbox.
    If there's no improvement continue with: Try the following:
    1 - launch iPhoto with the Command+Option keys held down to open the First Aid window.
    2 - Run Option #4, Rebuild Database, and if needed Option #1 and Option #2.

  • Hitting a problem when transferring iPhoto library to External Hard Drive.

    Hi
    I am running a 3 year old MacBook with iPhoto 08, my hard drive is nearly full mainly with photos so I have just purchased a G-Drive Hitachi 500GB external hard drive, with a view to storing my iPhoto library thus enabling me to create some space on the computer hard drive.
    I did some online research and transferred my iPhoto library as follows:-
    I quit iPhoto and went into my pictures folder, located by iPhoto library file and dragged it to my external hard drive, after it had copied I went back into my pictures folder and re-named the original library 'iPhoto Library.Old', I then opened iPhoto by holding down the 'alt' key and was given the prompt to choose a library to open, I selected 'iPhoto Library.Old' from the pane and my pictures loaded up.
    This is when I came across a problem, I was under the impression that once the library had been transferred the the EHD in this way that the pictures/events on the EHD would remain in place. I deleted a few of my events on my computer HD, but when I checked the EHD they had vanished from there too.
    No photos are lost as I have them all backed up to CD, on line albums etc, but I am puzzled as to what I am doing wrong and how I get the photos on the EHD to stay put.
    My Time Machine automatic updates are off, any suggestions would be greatly appreciated as I seem to have hit a brick wall with this one.
    Thanks
    Ruth

    Hi Terence
    I have just opened the internal iphoto library to delete some photos, without the EHD being attached, when I plug in the EHD and open the iphoto library from there the pictures that I have just deleted on the internal library have gone from the EHD. I am obviously doing something wrong but I cannot fathom out what. My internal library has a different name ie 'iPhoto Library.Old' but both internal and external libraries seem to be still acting as one.
    I hope I'm making sense ?
    Regards
    Ruth

Maybe you are looking for