Encoding issues with web application

Hi guys,
I have this wired problem that I can't seem to understand.
I use Tomcat 6 and Eclipse 3.5.1.
when I'm debugging my project, I come to this simple line:
String str = "Hebrew word";
when I look at the code, the Hebrew word is just fine, but after the debugger commit this line, the 'str' variable holds gibberish.
my project is in utf8. I have no idea what cause this.
please advise.
EDIT:
I tried using Glassfish 2.1 to see what happens, the same thing. maybe its not the server...?
Edited by: MadUser on Feb 15, 2010 1:48 AM

Thanks but not really.
I don't think that My problem concern the HTML encoding, it looks like something else messes things up.
if I write in a simple class:
String str = "non English text";
and I see it just fine in the Eclipse editor but on run time or debug the str variable holds gibberish, I am not sure who or what part is responsible for this issue.
P.S
This project use AspectJ.
Edited by: MadUser on Feb 23, 2010 2:13 AM

Similar Messages

  • TS1702 I'm not able to update Smurf's Village. Tried most of the things proposed on the net including restarting the iPad and trying syncing with the computer. Had a similar issue with another application. Had to delete and reinstall it, with all history

    I'm not able to update Smurf's Village. Tried most of the things proposed on the net including restarting the iPad and trying syncing with the computer. Had a similar issue with another application. Had to delete and reinstall it, with all history lost.
    Tried following up with the developer's instruction. Didn't help. Developer suggested contacting Apple if their instruction didn't work. Tried the various methods recommended on the Apple site. Same result.

    Telling is that you tried most of the things on the net doesn't tell us exactly what you did try, so we are all still left to guess .....
    Sign out of your account, restart the iPad and then sign in again.
    Settings>Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>Store>Sign in and then try to update again
    If that doesnt work - go to Settings>General>Date and Time - set the date ahead by a few months. Try to update again. If you get an error message of any kind - go back and change the date and time to automatic again. Then try again.
    If that doesn't work, restart your router and reboot the iPad.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • Print a Web Template with Web Application Designer 3.X

    Hello
    I would know how I can print a web template made with Web Application Designer 3.X and that it is in the Intranet.
    Actually I'm printing that page with the option of the browser (Internet Explorer) but it print only I see, no print all the chart and the rest of the columns.
    How can I print all the data that compose  the web template?
    Thank you.

    Hello Sharath,
                         First check whether you have change authorizations for WAD, check you user name is added in the role for web templates and also check the authorizations.
    then in the web template in the menu bar go to view option ,select web items and properties , so that you can find them in the left hand side, then replace the chart item with the table and assign the query to the table.
    hope it is clear,
    assign points if useful.

  • Integration office365 with web applications

    Hi, I'm develop web application where I have my own storage for files. I wan't add functionality that provide editing files via web browser.
    1. Is there possibility to call office365 app from my app by some API, send my file stream, edit and on save get back file stream to save in my storage?
    2. If you provide functionallity from 1.how looks architecture solustion? Do I conect some global office server or should I have office365 app instantion on my server?
    Thanks,
    Chris

    Hi,
    According to your post, my understanding is that you want to integration office365 with web applications.
    For your task the
    file API
    should be the right one. With it you can access and manipulate Office and OneDrive for Business documents.
    Here is a similar thread for your reference:
    http://stackoverflow.com/questions/27396671/office-365-integration-with-asp-net-web-application-mvc-application
    More information:
    http://channel9.msdn.com/Series/Deep-Dive-Integrate-Office-365-APIs-in-Your-Web-Apps
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • URGENT: Tomcat, Connection Pool - Issue with web.xml & server.xml

    Folks,
    I am trying to connect to a MS SQL database using Tomcat/JSP but having issues. The code that I am using is as follows:
    Context ic = new InitialContext();
    DataSource ds = (DataSource) ic.lookup("java:comp/env/jdbc/test");
    Connection conn = ds.getConnection();
    Statement stmt = conn.createStatement();
    I have added the following code to my Server.xml:
    <Resource name="jdbc/test" auth="Container" type="javax.sql.DataSource"
    maxActive="100" maxIdle="30" maxWait="10000"
    username="DB_AW_DATA" password="tester" driverClassName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
    url="jdbc:microsoft:sqlserver://192.168.0.1\\Newcastle"/>
    And the complete web.xml
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE web-app (View Source for full doctype...)>
    - <web-app>
    - <resource-ref>
    <description>Resource reference to java.sql.Connection factory defined in server.xml</description>
    <res-ref-name>jdbc/test</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    The error message that I am getting is as follows:
    java.sql.SQLException: Cannot load JDBC driver class 'null'
    What confuses me is that I have placed the following files in Tomcat\common\lib...
    mssqlserver.jar
    msbase.jar
    msutil.jar
    I think this is purely an issue with how I configured server.xml and web.xml
    In the Tomcat documentation it states to put the code in the server.xml - but nested inside the Context element. This is something that I have not done as I am clear what the Context should be..
    Can someone assist...
    <Context path="" docBase="ROOT" debug="0"> ???
    what should be the path and the docBase.
    I have deployed the following application:
    http://localhost:8080/SCWAPP/index.jsp
    THANKS IN ADVANCE FOR ALL SUPPORRT

    you should put the code you typed in server.xml into context.xml
    in the META-INF folder and this will fix your problem.
    the latest tomcat docs detail what to do.

  • Activity log design issue in web application .. Whatabout AOP ?

    Hi guys. ..
    I am working on a big web application in which there is module called activity log which actually logs most of the activities one perform in application like make a payment , defere the payment , issue the check etc. Almost all components in the application less or more use this component.
    Now what is my issue is its design sucks. Every time a new activity has to added one has to add a separate class for that and make a call at a particular place in other component depending on some logic. sometime it becomes a nightmare to maintain all this.
    I am sure there should be better way to do it .without making a call to this component every othere class.
    I dont know much about AOP. Is AOP got some solution for that.? or any design pattern I should use to make it maintainable or simple to add new activities whenever need arise.
    Thanks
    HibernFan.

    Hi guys. ..
    I am working on a big web application in which there
    is module called activity log which actually logs
    most of the activities one perform in application
    like make a payment , defere the payment , issue the
    check etc. Almost all components in the application
    less or more use this component.
    Now what is my issue is its design sucks. Every time
    a new activity has to added one has to add a separate
    class for that and make a call at a particular place
    in other component depending on some logic. sometime
    it becomes a nightmare to maintain all this.
    I am sure there should be better way to do it
    .without making a call to this component every othere
    class.
    I dont know much about AOP. Is AOP got some solution
    for that.? or any design pattern I should use to make
    it maintainable or simple to add new activities
    whenever need arise.You are thinking exactly the right thing. AOP is born for this sort of thing, and it addresses exactly the problem you've experienced: Move all that code that's duplicated with every new activity into the advice class.
    You can do AOP if you have AspectJ or, better yet, Spring.
    If not, you can think of Filters as a kind of AOP. Since this is a Web app you can write a Filter that does the logging for you.
    Either way, you've nailed the idea. Good thinking.
    %

  • Urgent :- Issue with deploying application in Oracle Application server

    Hello All,
    Hope all of you are doing good ! I am facing an issue relating to deploying applications using the Enterprise manager. When i deploy the war file using Deploy WAR file option in the OEM, i get the following error -
    Failed to deploy web application "gCube". Failed to deploy web application "gCube". . The configuration files for this OracleAS 10G instance are inconsistent with the
    configuration stored in the repository. In order to protect the repository,
    no further configuration or deployment operations are allowed until the problem with the configuration on the filesystem is resolved. This condition arises when a prior operation was unsuccessful. The exception associated with this failed operation is:
    {0}
    . Please also check the logs located at
    ORACLE_HOME/dcm/logs to determine why DCM was unsuccessful in updating
    the configuration files on disk. Some possible causes are:
    * permissions on files
    * file contention issues on Windows NT
    * internal Oracle error
    After resolving the problem that prevented DCM from updating the configuration
    files, you may use the dcmctl resyncInstance command to resolve the problem.
    Alternatively, you can stop and then restart the active dcmctl or EMD
    process and resyncInstance will automatically be performed.
    Root Cause: invalid stream header
    Resolution: . invalid stream header
    Please could you throw some light on this issue and also provide a resolution to fix this issue at the earliest ?
    Your help in this , will be greatly appreciated.
    Thanks and Regards,
    Ramanan.

    Hello All,
    Could anyone assist me with a fix for the problem ?
    Would appreciate it greatly.
    Thanks.

  • Encoding issue with " " Less than sign

    Hello Experts,
       I am working on Receiver Webservice scenario where I am facing issue with "<" less than sign. SAP XI system automatically replace it with "&#60;" sign. I can see the changed value in Audit log of communication channel.
    Web service is not able to accept the data and I can see error message in audit log
    SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAPEXCEPTION - soap fault: Server was unable to read request. ---> There is an error in XML document (1, 573). ---> The specified node cannot be inserted as the valid child of this node, because the specified node is the wrong type._
    When I check the payload in audit log I can see the XML structure properly but as I open it in Notepad I can see character code "&#60;" instead of  u201Cless than <u201D symbol.
    Audit log XML file is as given below
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns1:TurnaroundDetail xmlns:ns1="http://isotrak.com/webservices">
      <ns1:sessionid>3f2f2592-39d5-456e-8cf2-5d7ee81402c8</ns1:sessionid>
      <ns1:data><Request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><TurnaroundDetail><PlannedJobDepartureDatesFrom="2011-03-01T12:01:23.00" To="2011-03-01T12:07:10.00"/><DepotReference DepotReference="EASTLEIGH"/><DepotReference DepotReference="CHANDLERS"/></TurnaroundDetail></Request></ns1:data>
      </ns1:TurnaroundDetail>
    When I open it in notepad I can see converted value
    <?xml version='1.0' encoding='utf-8'?>
    <TurnaroundDetail xmlns='http://isotrak.com/webservices'><sessionid>dcc4adcd-ce8f-403d-a1cf-01fcc5aab066</sessionid><data>&#60;Request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">&#60;TurnaroundDetail>&#60;PlannedJobDepartureDatesFrom="2011-03-02T08:28:29.00" To="2011-03-02T08:38:09.00"/>&#60;DepotReference DepotReference="EASTLEIGH"/>&#60;DepotReference DepotReference="CHANDLERS"/>&#60;/TurnaroundDetail>&#60;/Request></data></TurnaroundDetail>
    I hope this is not caused due to AnonymizerBean configured in receiver SOAP comm channel.
    anonymizer.acceptNamespaces   http://isotrak.com/webservices ''
    anonymizer.encoding  ISO-8859-1 (also tried utf-8)
    anonymizer.quote  ''
    Could you please suggest if I can get rid of "&#60;" character and get < less than sign? Or it is obvious behaviour by SAP XI system w.r.t Encoding and Receiver end needs to decode this character?
    Note: As per Web service requirement whole XML data to be processed by webservice is populated in single Data field. As here we are populating whole XML data file in one field named data
    Thanks in advance.
    Vinit.

    Simply typing "Test <test> test" into a frame and exporting that yields
    <ParaStyle:Body>Test \<test\> test
    and reading it back into ID gives the expected result.

  • Issue with Web Service Security

    Dear Forum Members and Readers,
    I am a beginner to Web Services, and facing an issue with WS-Security.
    My issue seemingly is quite specific to my projects though, It will be great if you can provide me your views.
    Context Description:
    I am developing a Java Web Service application that is deployed on JBoss Application Server.
    This application will communicate with two other applications those are not deployed in same JBoss Application Server.
    These 2 applications are third party applications, one is C++ based web services and other is Java based web services.
    My application gives a call to Third Party Application1 and receives the response back form it. It then passes this received response to Third Party Application 2.
    Issue Description:
    I now need to enable https paradigm among these 3 applications. (I need to implement web service security model here)
    I started with looking in to JBoss specific WS-Security but found it not suitable in my case, as it requires to configure both the client and server. I have the control over my application but not on other 2 third party applications.
    To this extent, I am unable to identify a solution that can address my issue.
    Can anybody please provide me with initial thoughts or any reference material that might help me to give this a start.
    Any clue will be highly appreciated!
    Thanks in advance
    Mukul

    mukul.object wrote:
    Actually, my SOAP messages contains some critical information that needs to be encrypted.You think that its critical information however your third party doesn't. If they would have had same thought they would have enabled the security. As I said earlier, you will have to discuss this with them.
    Another solution (however I don't know the viability in your case) could be to deploy one component before each third party service. Your web service will call this new component (Which is installed in their environment i.e. local to third party web service) and new component will forward the request to third party service. Now you can apply security/encryption/decryption between your web service and your component.
    I have had a look in to XMLEncrytion using that I can encrypt my SOAP messages but I wonder how would other tools decrypt that.My above comments answers this.
    Is there anyway I can encrypt my SOAP messages (without having to customize third party tools) in this scenario ??My above comments answers this.

  • Performance Issue in Web Application: Event 12605 "Web: Text Content"

    Dear All,
    we are about to deploy a couple of rather complex web applications (built with WAD) and are currently running performance tests with Mercury Loadrunner.
    According to these tests our web application become very slow once more than 30 (virtual) users are running the application.
    When analyzing the BW statistics data we found out that most of the runtime of our application comes from an event called "Web Java: Return Text-Type Content" (ID 12605).
    Has anyone experienced the same issue? Or does anyone know what exactly this event means?
    We are using XPATH in our web applications. Could this be a cause for poor performance?
    Any help is highly appreciated!
    Best Regards
    Christian

    Can you tell me more about the detail of loadrunner stress test for BI WAD scripts? We met error when run the load runner for BI WAD report.
    1. We develop the BI report basing WAD 7.x, setup Iview in sap EP for BI report and get the BI report URL.
        2. We fill the report URL in IE(6.0) to run this report and display the bi report successfully ,
    eg: http://epserver:50000/irj/servlet/prt/portal/prtroot/com.sap.ip.bi.web.portal.integration.launcher?sap-bw-iViewID=pcd%3aportal_content%2fcom.ahepc.BI%2fcom.ahepc.iView%2fcom.ahepc.FI%2fcom.ahepc.BI_I_ZWAFI_006&sap-ext-sid=1

  • Hierarchy issue with Web Intelligence Report

    Hi All,
    We are facing an issue with OLAP Universe where we are using hierarchy for cost center in reports.
    BEx query shows correct data in RSRT with hierarchy nodes.
    We have built a Universe on top of this BEx Query.
    We are using couple of nodes of cost enter hierarchy in WebI report but if we keep more than one node in WebI query, data comes double (probably because of duplicate rows). Instead if I keep just one of the node in WebI query, WebI report returns correct data.
    Please suggest, why such behavior with OLAP universe and how to resolve this?
    Best Regards,
    Ashish

    Thanks for your suggestions.
    I am little confused on how to check SQL generated for OLAP WebI Query.
    But other reports on same universe behave same way and I'll give a try to another universe but I don't expect it to behave in different way. I saw a setting for relational Universes like restriction on duplicate rows but the same is not present in case of OLAP Universe.
    Do you know how WebI behaves with BEx hierarchies?
    There has to be some setting to make it work...
    Best Regards,
    Ashish

  • Strange issue with WEBI schedule Report

    Hi All,
    I have a strange issue with schedule WEBI reports, a schedule report runs for Hours , i reschedule it again by deleting the instance and the schedule report never got succeed even after running for hours.
    Any idea???
    regards

    Hi Manoj,
    1. Try to put some filters in the report and then run the report. if it takes less time, then probably your query is fetching very    large data.
    2. MDX query error may be the reason , this error come when a query runs endless, please try running the query 2-3 times, or when load on server is less.
    Hope this will help,
    Anamika.

  • Please need Help with web application deployment in Jdeveloper 12c

    Hi,
    I am desperate for help guys. am trying to deploy a web application in weblogic server, but nothing works!!
    I created a project in jdeveloper and created a jsp page inside the project, all what i want is to run that page!
    I followed the instruction here: Deploying Fusion Web Applications , I don't really know if i did it right or wrong, the document is too detailed and not understood clearly.
    I am a newbie oracle user, and trying to build jsp web application connected to oracle database. application deployment fails it says: cannot run application error deploying IntegratedWeblogic..
    please could you tell me the steps of application deployment in Jdeveloper 12c?
    what deployment profiles I need to create (ear, war , mar)?
    what deployment descriptor I need for my app to work?
    please guys I am newbie to oracle, if you could give me simplified answers and straight instructions it will be appreciated .
    thank you

    hi Timo,
    I am building a local web application, meaning the server is internal and will not connect to the web, only to local pcs via network. the application will insert/select data from the database server. My company wants to embed oracle technology on the datatabse and that what am trying to. I am not that expert in java and oracle in general, my main knowledge are in php, html and mysql programming. through my long internet research a lot has recommended jsp with html to be a good choice.
    At beginning I played around with ADF faces, I found it annoying because I prefer coding than using drag and drop interfaces, which always create unwanted results.
    Also am not that professional java programmer, i started learning jsp and found it easier.
    What I am thinking of is to make a web based application that works in browsers (like php), this application has forms to insert data, and also has forms to output data for printing. that's all. I tried to make it in php, but through my little knowledge and internet researches it seems php does not work with oracle and java is the recommended choice (or it works with php but too complicated to make it)
    any recommendation will be much appreciated
    thank you

  • Issues with web browsers

    Over the past week or so, I have gradually been encountering issues with all three of the browsers that I have installed on all my Apple computers.
    I have the following three browsers installed:
    Safari (version 5.1.5)
    Firefox (version 11.0)
    Google Chrome (Version (17.0.963.83)
    On all the following computers:
    iMac 2.8 Ghz, Intel Core 2 Duo running OS X (10.5.8)
    iMac 2.66GHz Intel Core i5 running OS X (10.6.8)
    MacBook Pro 2.4 GHz Intel Core i5 running OS X (10.6.8)
    It seems that the issues are more noticeable when accessing sites like Facebook, Pinterest, YouTube, Yahoo or Yahoo Mail... (which makes me wonder if the issues are possibly linked to Flash?) Either the sites don't load or load partially (always quite slowly) and I keep having to refresh/reload the page to hopefully get the full pages to load. But even that doesn't get me anywhere most of the time and I am left with blank pages or partially loaded pages. Today I also noticed issues while trying to use Skype where I kept having connection issues. Not sure if those were linked to the issues with the browsers.
    FYI, I keep all my Mac computers and applications up to date with automatic updates and am not sure whether these issues are Mac related, application/browser related or even possibly ISP related? Although when trying to assess my ISP connection speed via speedtest.net it appears to connect at the normal usual rate, both for download (about 13 Mb/s) and upload (about 6 Mb/s) from all three computers.
    I have not really seen any other similar recent post on the forums here but did find a post where it was recommended to unchecked the box on the info window to open both Safari and Firefox in 32-bit mode, but it didn't fix anything for me.
    I've never had issues with these computers before and they were all running perfectly fine when accessing the internet about a week ago. I am not using any anti-virus software on any of the three computers and I have not installed any new software or made any changes to the computers recently other than scheduled updates. They are all working fine when using applications (MS Word or Excel, Adobe InDesign, Illustrator, Photoshop, Lightroom...) not accessing the internet.
    Anyone else has experienced similar issues? Anyone know of a solution? Any help or feedback would be greatly appreciated!
    Thanks in advance!
    Laurent

    Hi Laurent ...
    Try troubleshooting the Flash plugin ...
    Quit all your browsers.
    Now uninstall the Flash plugin then reinstall new >  Troubleshoot Flash Player | Mac OS
    (Use Safari for a test). Launch Safari From your Safari menu bar click Safari > Empty Cache
    Now try a video.
    BTW... if you have the ClickToFlash extension installed, that can prevent Flash based video from streaming. It can also be installed as a plugin in /Library/Internet-Plug-Ins.
    When it comes to browsers, emptying the cache more often can help.
    For all your Macs.
    Use OpenDNS for better speed, more security, includes anti phishing filters, and it's free.
    Open System Preferences / Preferences then select the Network tab. Click the Advanced tab then click the DNS tab.
    Click +
    Enter these numbers exactly as you see them here.
    208.67.222.222
    Click +
    208.67.220.220
    Then click OK.
    More about OpenDNS here.
    Topic : Manually provided DNS server addresses are higher priority than DHCP's

  • Issue with Setting Application Item

    Hi All,
    I have an issue with setting the value of application item G_USER_ID as part of the login process.
    I use customized authentication for login. I have created an application item G_USER_ID, and in my CUSTOM_AUTH procedure, I am setting its value as APEX_UTIL.SET_SESSION_STATE('G_USER_ID', l_user_id);
    For some reason, the value is not set to G_USER_ID the first time I login. When I log out and login again without closing the browser, the value is set. Note that I even tested with a static value instead of l_user_id like APEX_UTIL.SET_SESSION_STATE('G_USER_ID', '5555555'); but still fails to set during the first login.
    I hope someone can guide me as to what I am doing wrong here.
    Thanks!
    JMcG

    What does this do?
    :SVR_FLAG := NVL(l_mult_svr,'N');
    Scott

Maybe you are looking for

  • How to upload new products to my store in an XML file?

    Hi everyone, I'm back. I've been creating a store for a client and we have everything working but someone told me that it's easier to upload products in an XML file if you have a ton of them. So I've been trying to figure it out but the only thing I

  • Installing Oracle - /etc/init.d/oracle-xe configure command missing?

    I've AMD64 system with Ubuntu 11.04 installed. It's been rough ride for me to install oracle-xe-universal. I've already spent more than 2 days on this. Still unsuccessful. 1) First I downloaded the packages libaio_0.3.104-1_i386.deb and oracle-xe-uni

  • Not opening Adobe when I print to it

    I print to adobe alot from excel and word...However, I do not want adobe to open when I do this.  I just want the document in pdf form so i can e-mail.  How can I tell adobe to not open when I print to it from another program. Thanks for any help.

  • Forms integration into a JSP page

    There is a great White Paper on the OTN's home page about how to integrate a Forms application within a JSP page ;o) <p>Integrating Oracle Forms into Oracle ADF Faces</p> Francois

  • Which API to get Annotation Authoer information?

    Hi, I read through the API document but I cannot find an API to extract the Author information. I can find PDAnnotGetTititle, PDAnnotGetSubType, PDAnnotGetDate. Is there a PDAnnotGetAuthor?