Newline feed not interpreted correctly by Java

In my project, rexx passes data to lotus notes thru mqseries. These data has newline feed characters. here java is used to read data from mqseries and create documents in lotus.
now my problem is, this newly created document is showing some junk character instead of giving newlind-feed. so my doc is messed up.

May I know what specific output stream you used?Have
you try this to your output stream String
newLine = (String)
java.security.AccessController.doPrivileged(newsun.security.action.GetPropertyAction("line.separator"
));?-Ronillo.Why are you using sun internal classes? You shouldn't
do that. You should just call
System.getProperty("line.separator"), or am I missing
something?
(But it's even better to just use a BufferedWriter,
it uses the correct newline by default)
/KajSee my second reply, the buffered writer docs API. Im sorry. God bless you ^_^
-Ronillo.

Similar Messages

  • Facebook social plugin of fan page feed not displaying correctly after upgrading to Firefox 17

    Facebook fan page feed not displaying correctly since upgrading to Firefox 17. Code hasn't changed, and it still displays correctly in Internet Explorer. In Firefox 17, the background has gone grey so that the text is no longer visible, and photos of fans are no longer displayed at the bottom. (Issues occur on both my Dell PC/Windows Vista and my MacBook Pro.) Please advise.
    **Issue seems to have resolved itself; I guess plugin developers caught up with Firefox update.**

    Facebook fan page feed not displaying correctly since upgrading to Firefox 17. Code hasn't changed, and it still displays correctly in Internet Explorer. In Firefox 17, the background has gone grey so that the text is no longer visible, and photos of fans are no longer displayed at the bottom. (Issues occur on both my Dell PC/Windows Vista and my MacBook Pro.) Please advise.
    **Issue seems to have resolved itself; I guess plugin developers caught up with Firefox update.**

  • Smart feed not working correctly

    hello,
    the smart feed are not working correctly in this course page :
    https://deimos.apple.com/WebObjects/Core.woa/BrowsePrivately/upmc.fr.2857894925. 02857894930
    Modified=01ca6e794f33e660
    I don't understand why...

    C, sorry…I read your posts out of order. I see that you have links to your smart groups after all. My apologies.
    It's as you say, the course pages load up, but I don't see anything in the smart groups. Just thinking out loud here…maybe the search criteria don't genuinely match anything on your site? Perhaps there are actual matches, but you've hidden content with a new credential?…I accessed both pages using the "Unauthenticated" and "All" credentials. My last/craziest guess is that it has something to do with localization…français versus anglais?

  • br tag in bean value not interpreted correctly

    Hi all
    i want to display a long string which includes <br> tags. This string is saved in a bean. In my JSP page i try to diplay the string as follows:
    <bean:write name="logFileText"/>
    This works but the <br> tags are not rendered/interpreted correctly. The display String look like that:
    21/09/2004 10:01:44 [INFORMATION] [init/process] 0001 Starting ... (at line 124 in file ndl_main.cxx)<br>21/09/2004 10:01:44 [INFORMATION] [init/undefined] 0010 Start Initialization (at line 109 in file ndl_dataloader.cxx)<br>21/09/2004
    If i take a look at the page source the <br> is written there as lt;br gt . But i want to go to a new line instead of displaying the <br> tag.
    Could somebody help me with that?
    Thanks Angela

    seems it doesn't work like that:
    [ServletException in:/pages/log/listLogFile.jsp] /pages/log/listLogFile.jsp(13,4) Attribute escapeXml invalid for tag write according to TLD'

  • CSS not interpreted correctly

    Safari does not interpret standard CSS correctly, but Firefox 1.5, Netscape 7.2 and Opera 9.01 do. Safari does not understand the CSS width and height declarations.
    Is there a workaround?
    How does my page look on a Windows computer with a popular browser?
    Is there any hope that a later version of Safari will understand CSS?
    See the
    tag in <http://homepage.sunrise.ch/homepage/nicoletf/index.html> and the correcsponding CSS declaration in <http://homepage.sunrise.ch/homepage/nicoletf/Muotathal/stylesheets/index2.css>.
    iMac G3, iBook G4, PowerBook G4   Mac OS X (10.4.7)  

    A little correction to your post:
    The width and height properties only fail on images, to all other attributes the CSS values for width and height will just work.
    This bug or "missing feature" has been added in the latest open-source version of the rendering engine. (For download available via: http://nightly.webkit.org/ ). Also OmniWeb 5.5b will support this feature and it will most likely be standard supported in Leopard.

  • Podcast feed not updating correctly in iTunes Music Store

    Hi. I doubt anyone is able to help with this question, but this is where Apple "support" directed me...
    I've created a podcast feed:
    http://wwf.org.au/podcasts/rss
    I've registered it with the iTunes Store:
    http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=168761907
    We added a new item to the feed yesterday and it is not appearing in the iTunes Store feed. Subscribing to the feed manually (that is using the feed from our website) works fine, correctly showing the three items. But the iTunes Store feed only shows two items.
    I clicked the "Report a concern" link in iTunes but it went 404 (resource not found).
    If anyone can shed any light on why this might be happening, and more importantly how I might be able to fix it, that would be much appreciated.
    N/A iTunes Music Store, iTunes 7, podcast, rss
    N/A     iTunes Music Store, iTunes 7, podcast, rss

    48 hours later and it's finally appeared in the store...

  • RSS feed not working correctly

    I have several RSS feeds and have for a while. All of a sudden, one feed (NYT Travel) started coming into my InBox as well as into its RSS box. If I delete the article from INBox, it's deleted from the RSS box. Same in reverse. However, I can't move them from InBox to RSS box and they're clogging my InBox. Other feeds are working fine. Can anyone help? Thanks.

    I had the same problem. I didn't knowingly do anything. In the past when that happens the whole thing moves up to the inbox & I can click on the down arrow that shows up next to it. Not the case this time.
    To fix it do this:
    Right click on the RSS feed in the left column. There is a popup menu that gives you the option to "View in inbox" which probably got turned on, uncheck it.

  • XQuery tokenize() regular expression not interpreting correctly?

    I've been trying to use XQuery tokenize() with a regular expression as an argument.
    Given the string
    S831409 $50 070886
    (Note: 3 spaces at the end.)
    And the expression
    \b(\w+)\b
    to find words on word boundaries
    and using java.util.regex functions Pattern() and Matcher(), this is returned:
    S831409
    50
    070886
    without leading or trailing spaces.
    Using the XQuery:
    depositAmt =
    {snip}
    return
    let $fndWord := xf:tokenize($locVal, "\b(\w+)\b")
    return $fndWord[2]
    I would expect to get
    depositAmt="50"
    Instead I get
    depositAmt=" $"
    Okay, changing the return to
    $fndWord[3]
    I get
    depositAmt=" "
    Changing the return to
    $fndWord
    gets
    depositAmt=" $ "
    Changing the regEx to
    \b\s+\b
    improves things somewhat, but not much.
    Am I missing something?

    The pattern that is supplied to tokenize() function is used to indicate the SEPARATOR. So the pattern given to the function must match the separator instead of the content that you want. So you must think in the opposite.
    For your case try to use [^\w]+ as the pattern. I think it should give you the same result.
    Good luck

  • IPTObjectManager.Query not returning correct result (Java)

    Hi,
    I am having a problem with the IPTObjectManager.Query method. The code is given below. The issue I am having is, that when I search for a community in a specific folder not results are returned. However if I search in all folders (using -1 as the second parameter to the method) it returns multiple communities including the one I need. Anyone else had the same issue with this??
    // THIS CODE WORKS AND RETURN MULTIPLE COMMUNITIES
    // THE hotelCode VARIABLE IS A STRING VARIABLE CONTAINING A VALUE
    // WHICH IS THE COMMUNITY NAME.
    // Create a ObjectManager object
    IPTObjectManager objectManager = session.GetObjectManagers(ObjectClass.Community.toInteger());
    // define the query based on the passed string
    Object[][] vQueryFilter = {
         new Object[]{new Integer(PT_PROPIDS.PT_PROPID_NAME)},
         new Object[]{new Integer(PT_FILTEROPS.PT_FILTEROP_CONTAINS)},
         new Object[]{hotelCode}};
    // Run the query and return results
    IPTQueryResult ptQueryResult = objectManager.Query(
         PT_PROPIDS.PT_PROPID_ALL, -1, PT_PROPIDS.PT_PROPID_NAME, 0, -1, vQueryFilter);
    // THIS CODE DOES NOT WORK. I AM PASSING IS THE FOLDER ID OF THE
    // FOLDER WHICH CONTAINS THE COMMUNITY
    // Create a ObjectManager object
    IPTObjectManager objectManager = session.GetObjectManagers(ObjectClass.Community.toInteger());
    // define the query based on the passed string
    Object[][] vQueryFilter = {
         new Object[]{new Integer(PT_PROPIDS.PT_PROPID_NAME)},
         new Object[]{new Integer(PT_FILTEROPS.PT_FILTEROP_CONTAINS)},
         new Object[]{hotelCode}};
    // Run the query and return results
    IPTQueryResult ptQueryResult = objectManager.Query(
         PT_PROPIDS.PT_PROPID_ALL, 303, PT_PROPIDS.PT_PROPID_NAME, 0, -1, vQueryFilter);

    I don't know about G6, however in version 5 there does not appear an easy way of doing it. I guess the "easiest" way would be to query sub-folders first, build and array of their ids, and then query for communities in those folders. This is using server API. Something like this (.NET):
    publicvoidGetFolderCommunities(intfolderId){    IPTAdminFolder folder =this.session.GetAdminCatalog().OpenAdminFolder(folderId, false);    IPTQueryResult qr =folder.QuerySubfolders(PT_PROPIDS.PT_PROPID_ALL, [b]1, null, 0, -1, newobject[][] {             newobject[] { PT_PROPIDS.PT_PROPID_FOLDER_FOLDERTYPE }, newobject[] { PT_FILTEROPS.PT_FILTEROP_EQ } , newobject[] { PT_ADMIN_FOLDER_TYPES.PT_ADMIN_FOLDER_TYPE_COMMUNITYFOLDER } } ); int[] folderIds =newint[qr.RowCount()]; Console.WriteLine("------ sub-folders for communities -------"); for(inti =0; i <qr.RowCount(); i++) {        intobjectId =qr.ItemAsInt(i, PT_PROPIDS.PT_PROPID_OBJECTID);        stringobjectName =qr.ItemAsString(i, PT_PROPIDS.PT_PROPID_NAME);        intparentFolderId =qr.ItemAsInt(i, PT_PROPIDS.PT_PROPID_FOLDER_PARENTFOLDERID);        folderIds[i] =objectId; Console.WriteLine("{0}: {1}; parent: {2}", objectId, objectName, parentFolderId); } qr =this.session.GetCommunities().Query( PT_PROPIDS.PT_PROPID_ALL, -1, (object) null, 0, -1, newobject[][] {            newobject[] { PT_PROPIDS.PT_PROPID_FOLDERID }, newobject[] { PT_FILTEROPS.PT_FILTEROP_IN } , newobject[] { folderIds } } ); Console.WriteLine("------ communities from sub-folders -------"); for(inti =0; i <qr.RowCount(); i++) {        intobjectId =qr.ItemAsInt(i, PT_PROPIDS.PT_PROPID_OBJECTID);        stringobjectName =qr.ItemAsString(i, PT_PROPIDS.PT_PROPID_NAME);        int parentFolderId =qr.ItemAsInt(i, PT_PROPIDS.PT_PROPID_FOLDERID);        Console.WriteLine("{0}: {1}; folder: {2}", objectId, objectName, parentFolderId); }}
    Or you could use EDK RPC search. Again, in .NET:
    publicvoidSearchForCommunities(intfolderId){ IPortalSearchRequest searchRequest =this.ptSession.GetSearchFactory().CreatePortalSearchRequest(); searchRequest.SetObjectTypesToSearch(newObjectClass[] { ObjectClass.Community }); searchRequest.SetDocFoldersToSearch(newint[] {}, true); searchRequest.SetAdminFoldersToSearch(newint[] { folderId}, true); searchRequest.SetResultsCount(0, 100); searchRequest.SetResultsOrderBy(PortalField.OBJECT_ID); searchRequest.SetFieldsToReturn(newPlumtreeField[] {}); searchRequest.SetQuery("*"); ISearchResponse searchResponse =searchRequest.Execute(); intreturnedMatches =searchResponse.GetReturnedCount(); ISearchResultSet resultSet =searchResponse.GetResultSet(); IEnumerator enumerator =resultSet.GetResults(); while(enumerator.MoveNext()) { ISearchResult result =(ISearchResult) enumerator.Current; Console.WriteLine( result.GetFieldAsInt(PortalField.OBJECT_ID) +": "+ result.GetFieldAsString(PlumtreeField.NAME) ); }}
    Ruslan.

  • Listdata.svc Feed not returning correct sort order when you apply multiple sort functions.

    Hi,
    Am using the listdata.svc to access and update Sharepoint list.
    When i do the folowing query
    listdata.svc/ModuleItems?$inlinecount=allpages&$filter=substringof(%2781514db7-b340-478d-cf4e-d4ac608822e8%27,ReferenceID)&$orderby=ContentType,Created%20desc&$top=250
    It returns the results as if it was only filtering by the Created field and ignores the ContentType Filter.
    Seems like a bug to me.

    Hi Mitchell,
    I made a test in my environment with the URL below and it sort for the both field.
    https://xxx/_vti_bin/ListData.svc/List5?$select=Title,Test1&$orderby=Title,Test1
    I suggest you create a simple rest url to query and sort item to test whether it works.
    More information for your reference:
    http://msdn.microsoft.com/en-us/library/ff798339.aspx
    http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Zhengyu Guo
    TechNet Community Support

  • Java Not loaded correctly

    Ok here is my situation. I am a CSA for my place of work.
    We are using XP and the computers use profiles to log in.
    JAVA JRE is intalled on the machines.
    There is a JAVA based website we use for work. If a new user login's into the computer and once the profile is created and they try to use the site that is required for work they get the Java not installed correctly error.
    If we run the offline java to fix the error then all the profiles can use JRE just fine. But when ever a new user logs in and a profile is created then that new user gets errors about JRE not properly installed.
    I am wondering if this is just a error some where with the registry for the profile not knowing where to look for the JRE ??
    Any help would be appreciated.
    V/r
    Stretch

    None of the users have administrator rights at all.
    We have an administrator load JRE to the whole machine, when the new user logs in for the first time you can go and see that java is installed but when that new user goes to the java based site it doesn't start up.

  • Java not working correctly in any browsers on snow leopard

    In very recent months, I have experienced problems with java and many of its applications. But now it doesn't work well at all. For example, if I try to go to Minecraft Classic in Safari, it only gives me a black screen so the graphics part is not displaying correctly. I know everything else is working because the game centers the curser in the middle of the screen, and you can pause the game and so on. What is going on with Java? Why can't the company itself just make it? Why does apple allow Adobe Flash to have Adobe's own plugin, but Apple doesn't allow Java's plugin? Things would be so much better that way.

    I think we are in the same boat; I just posted here: https://discussions.apple.com/message/15791350#15791350

  • Java apps not displaying correctly

    Hi.
    I'm having a problem with Java apps, as they seem to simply not display correctly. They are supposed to be Aqua, but it doesn't exactly work, since the actual controls don't appear, but besides that the program seems to carry out what it's supposed to (besides not displaying it correctly.)
    I tried removing some Java-related setting files and stuff, but it still doesn't exactly work as it should.

    The problem isn't with the Window Manager you use, but the java runtime you have installed. If you have openjdk6 installed, try removing it and install jre and jdk instead. If you have jre and jdk installed, install openjdk6 and see what happens.
    I think you're using openjdk6, since I remember hearing problems using it and topcoder.
    Last edited by CursedMonkey (2009-05-21 19:11:54)

  • Foreign characters are not printed correctly in Analyzer 6.5.0 and java 1.3.0_02

    Hi,I am using Essbase at 6.5.3 level and Analyzer Enterprice edition at 6.5.0 level. The java plug-in is at level 1.3.0_02.Foreign characters are corectly dispalyed in Analyzer java web client, but when I try to print the report the foreign characters are not printed correctly.I have changed the contents of the font.properties file all code pages from 1252 to 1250. The characters are still not printed correctly.How to "force" the Analyzer print the foreign characters to print?Thanks,Grofaty

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Link URL containing feed: is not displayed correctly in the status bar

    When a link contains feed: in the URL, it is not displayed correctly in the status bar.
    The actual URL is
    a href="feed:http://www.....com/feed/"
    but the URL shown in the status bar is
    feed://http//www.....com/feed/
    IE8 shows the correct URL in the status bar. Not sure if this is a problem, but thought I would report it.

    Such a feed works for me even if it is displayed differently then you expect on the status bar.
    <pre><nowiki>data:text/html,<a href="feed:https://support.mozilla.com/en-US/questions/758020/feed">feed</a></nowiki></pre>

Maybe you are looking for

  • Curve 9360 Notification Bar

    Hi, I'm new to the blackberry world!  I just got the Curve 9360 and used to have a notification bar under the time and date.  It displayed any notifications (text, bbm, email, facebook etc..) also a search bar, and the volume button.  not sure how I

  • My iPod is not being recognized by iTunes

    When I first got my iPod, it would constantly diplay the "Do Not Disconnect" icon whenever I plugged in into my computer, regardless of how long I had charged it. Then, about a month ago, it started displaying the non-animated black and grey charging

  • Skype 7.4 crashes on Windows 7/HP laptop

    It seems that there is still problems with the HP Web cam and Skype. Similar phenomenon has been reported with earlier Skype verions, but still no official fix. Anyways blue screen appears once Skype starts for the first time right after installation

  • How to initiate right click functions of a pc mouse on track pad on MBP

    I use the Microsoft Outlook Web App for work. When Im viewing the website from work on a desktop PC I scroll down the left margin to "Calendar" right click the mouse and am given the option to create a new calendar. How  do I do  the same thing from

  • Want to save address in IT0006 with country only

    Hi , I have a requirement where i want to save the address in IT0006 , but with country(LAND1) and field ORT01 , begin date and end date , subty only . From  HR_INFOTYPE_OPERATION i m passing these parameters , but it throws error and says "Fill in a