Extra char appears string to FML fails. - Urgent

We are facing an issue we have not scene before.
Its between OSB -> Tuxedo WTC integration.
We being the team Supporting Tuxedo related Applications can see :
Whenever we get a message with 00 at the end it gets successfully processed
12:45:06.0747:17687: >>> [DUMP] Call the remote service (len=210) >>>
12:45:06.0747:17687: 0000 30 30 30 30 30 30 30 30 30 30 30 31 2d 4a 55 4e 2d 32 000000000001-JUN-2
12:45:06.0747:17687: 0012 30 31 32 31 32 3a 34 35 3a 30 35 20 20 20 20 20 20 50 01212:45:05 P
12:45:06.0747:17687: 0024 49 4e 47 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ING
12:45:06.0747:17687: 0036 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
12:45:06.0747:17687: 0048 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
12:45:06.0747:17687: 005a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
12:45:06.0747:17687: 006c 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
12:45:06.0747:17687: 007e 20 20 20 20 46 4d 54 2d 45 52 52 20 31 30 30 34 20 52 FMT-ERR 1004 R
12:45:06.0747:17687: 0090 45 51 3a 4f 77 6e 65 72 20 66 69 65 6c 64 20 69 73 20 EQ:Owner field is
12:45:06.0747:17687: 00a2 69 6e 76 61 6c 69 64 20 20 20 20 20 20 20 20 20 20 20 invalid
12:45:06.0747:17687: 00b4 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
12:45:06.0747:17687: 00c6 20 20 20 20 20 20 20 20 20 20 20 20 *00* .
but when we get a message with 01 at the end it fails :
13:41:04.0489:24216: >>> [DUMP] Call the move data function (len=210) >>>
13:41:04.0489:24216: 0000 30 30 30 30 30 30 30 30 30 30 32 31 2d 41 55 47 2d 32 000000000021-AUG-2
13:41:04.0489:24216: 0012 30 31 32 31 35 3a 34 30 3a 35 38 20 20 20 20 20 20 50 01215:40:58 P
13:41:04.0489:24216: 0024 49 4e 47 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ING
13:41:04.0489:24216: 0036 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
13:41:04.0489:24216: 0048 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
13:41:04.0489:24216: 005a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
13:41:04.0489:24216: 006c 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
13:41:04.0489:24216: 007e 20 20 20 20 46 4d 54 2d 45 52 52 20 31 30 30 34 20 52 FMT-ERR 1004 R
13:41:04.0489:24216: 0090 45 51 3a 4f 77 6e 65 72 20 66 69 65 6c 64 20 69 73 20 EQ:Owner field is
13:41:04.0489:24216: 00a2 69 6e 76 61 6c 69 64 20 20 20 20 20 20 20 20 20 20 20 invalid
13:41:04.0489:24216: 00b4 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
13:41:04.0489:24216: 00c6 20 20 20 20 20 20 20 20 20 20 20 20 *01*
When we asked the OSB Application Supporting teams they told they are just sending the message like below without 00 or 01 at their end:
13:41:04.0489:24216: 0000 30 30 30 30 30 30 30 30 30 30 32 31 2d 41 55 47 2d 32 000000000021-AUG-2
13:41:04.0489:24216: 0012 30 31 32 31 35 3a 34 30 3a 35 38 20 20 20 20 20 20 50 01215:40:58 P
13:41:04.0489:24216: 0024 49 4e 47 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ING
13:41:04.0489:24216: 0036 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
13:41:04.0489:24216: 0048 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
13:41:04.0489:24216: 005a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
13:41:04.0489:24216: 006c 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
13:41:04.0489:24216: 007e 20 20 20 20 46 4d 54 2d 45 52 52 20 31 30 30 34 20 52 FMT-ERR 1004 R
13:41:04.0489:24216: 0090 45 51 3a 4f 77 6e 65 72 20 66 69 65 6c 64 20 69 73 20 EQ:Owner field is
13:41:04.0489:24216: 00a2 69 6e 76 61 6c 69 64 20 20 20 20 20 20 20 20 20 20 20 invalid
13:41:04.0489:24216: 00b4 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
13:41:04.0489:24216: 00c6 20 20 20 20 20 20 20 20 20 20 20 20
I am unable to understand is it Tuxedo which adds the character 00 or 01 and why?
The message what reached our end is a fixed length String (210) which needs to get populated in an FML buffer and need to be send to an Unisys system via OSITP.
Below is the headerfile generated compiling the view file :
char ISPEC[5];
char GLB_SOURCE;
char TRANNO[6];
char INPUT_DATE[7];
char ACTMTH[4];
char MXIMSG[10];
char MSGDTE[11];
char MSGTME[8];
char OWNCDE[3];
char LOCCDE[3];
char REFNBR[12];
char MFRDTE[11];
char PT_NBR[25];
char SHFDTE[11];
char RCVNBR[10];
char RCVDTE[11];
char SERNBR[15];
char REM401[40];
char REM402[40];
Please help.

This is a sample error message :
This is the XML send to WTC :
01 Sep 2012 12:09:29,851 INFO ComponentReceiptErrorNotificationService_V1: [PipelinePairNode1, PipelinePairNode1_request, Error response received from EI, REQUEST] QISF.ComponentReceiptErrorNotificationService_V1: Component_receipt_response, error response received from EI<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<********************* xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<MessageIdentifier>13391</MessageIdentifier>
<MessageDeliveryDate>01-SEP-2012</MessageDeliveryDate>
<MessageDeliveryTime>12:09:25</MessageDeliveryTime>
<Owner>SPL</Owner>
<Location>SDC</Location>
<PONumber>QS12236016</PONumber>
<PartNumber>E21368000-1</PartNumber>
<ManufacturedDate/>
<ShelfLifeDate>07-JUN-2022</ShelfLifeDate>
<ReceiptNumber>122450189</ReceiptNumber>
<ReceiptedDate>01-SEP-2012</ReceiptedDate>
<SerialNumber>0765E21368</SerialNumber>
<Remarks>ERROR: Duplicate Serial Number</Remarks>
</*********************>
</soapenv:Body>
01 Sep 2012 12:09:29,851 INFO ComponentReceiptErrorNotificationService_V1: [Route to Supply, null, null, REQUEST] QISF.ComponentReceiptErrorNotificationService_V1: Component_receipt error response routed to Supply<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<********************* xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<MessageIdentifier>13391</MessageIdentifier>
<MessageDeliveryDate>01-SEP-2012</MessageDeliveryDate>
<MessageDeliveryTime>12:09:25</MessageDeliveryTime>
<Owner>SPL</Owner>
<Location>SDC</Location>
<PONumber>QS12236016</PONumber>
<PartNumber>E21368000-1</PartNumber>
<ManufacturedDate/>
<ShelfLifeDate>07-JUN-2022</ShelfLifeDate>
<ReceiptNumber>122450189</ReceiptNumber>
<ReceiptedDate>01-SEP-2012</ReceiptedDate>
<SerialNumber>0765E21368</SerialNumber>
<Remarks>ERROR: Duplicate Serial Number</Remarks>
</*********************>
</soapenv:Body>
The MFL transformation gives a dump like this :
00000000:     30 30 30 30 30 31 33 33 37 33 30 33 2D 53 45 50     000001337303-SEP
00000010:     2D 32 30 31 32 33 3A 34 33 3A 31 38 20 51 46 41     -20123:43:18 QFA
00000020:     53 44 43 56 37 39 38 35 36 30 20 20 20 20 20 30     SDCV798560     0
00000030:     31 33 32 41 42 55 20 20 20 20 20 20 20 20 20 20     132ABU          
00000040:     20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                     
00000050:     20 20 20 20 20 20 20 20 20 20 20 20 20 20 31 32                   12
00000060:     56 37 39 38 35 36 20 20 30 33 2D 53 45 50 2D 32     V79856  03-SEP-2
00000070:     30 31 32 53 45 52 49 41 4C 37 20 20 20 20 20 20     012SERIAL7      
00000080:     20 20 45 52 52 4F 52 3A 20 49 6E 76 61 6C 69 64       ERROR: Invalid
00000090:     20 50 61 72 74 20 43 6C 61 73 73 20 2D 20 42 41      Part Class - BA
000000a0:     54 43 48 20 20 20 20 20 20 20 20 20 20 20 20 20     TCH             
000000b0:     20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                     
000000c0:     20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                     
000000d0:     20 20 .. .. .. .. .. .. .. .. .. .. .. .. .. ..        ..............
Hence we got this below in our tuxedo Application Log:
12:09:29.0986:3421: >>> [DUMP] svc=MXRSUPP01, type=REQ (len=210) >>>
12:09:29.0986:3421: 0000 30 30 30 30 30 31 33 33 39 31 30 31 2d 53 45 50 2d 32 000001339101-SEP-2
12:09:29.0986:3421: 0012 30 31 32 31 32 3a 30 39 3a 32 35 53 50 4c 53 44 43 51 01212:09:25SPLSDCQ
12:09:29.0986:3421: 0024 53 31 32 32 33 36 30 31 36 20 20 45 32 31 33 36 38 30 S12236016 E213680
12:09:29.0986:3421: 0036 30 30 2d 31 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00-1
12:09:29.0986:3421: 0048 20 20 20 20 20 20 20 20 20 20 20 30 37 2d 4a 55 4e 2d 07-JUN-
12:09:29.0986:3421: 005a 32 30 32 32 31 32 32 34 35 30 31 38 39 20 30 31 2d 53 2022122450189 01-S
12:09:29.0986:3421: 006c 45 50 2d 32 30 31 32 30 37 36 35 45 32 31 33 36 38 20 EP-20120765E21368
12:09:29.0986:3421: 007e 20 20 20 20 45 52 52 4f 52 3a 20 44 75 70 6c 69 63 61 ERROR: Duplica
12:09:29.0986:3421: 0090 74 65 20 53 65 72 69 61 6c 20 4e 75 6d 62 65 72 20 20 te Serial Number
12:09:29.0986:3421: 00a2 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
12:09:29.0986:3421: 00b4 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
12:09:29.0986:3421: 00c6 20 20 20 20 20 20 20 20 20 20 20 20 *01* .
I am surprised where from this *01*/*00* appears at the end?
Is this 01/00 added by Tuxedo or OSB Business service ?How can we change it to 00?
Edited by: 835542 on Sep 3, 2012 11:30 AM
Edited by: 835542 on Sep 3, 2012 11:38 AM

Similar Messages

  • ASCII character/string processing and performance - char[] versus String?

    Hello everyone
    I am relative novice to Java, I have procedural C programming background.
    I am reading many very large (many GB) comma/double-quote separated ASCII CSV text files and performing various kinds of pre-processing on them, prior to loading into the database.
    I am using Java7 (the latest) and using NIO.2.
    The IO performance is fine.
    My question is regarding performance of using char[i] arrays versus Strings and StringBuilder classes using charAt() methods.
    I read a file, one line/record at a time and then I process it. The regex is not an option (too slow and can not handle all cases I need to cover).
    I noticed that accessing a single character of a given String (or StringBuilder too) class using String.charAt(i) methods is several times (5 times+?) slower than referring to a char of an array with index.
    My question: is this correct observation re charAt() versus char[i] performance difference or am I doing something wrong in case of a String class?
    What is the best way (performance) to process character strings inside Java if I need to process them one character at a time ?
    Is there another approach that I should consider?
    Many thanks in advance

    >
    Once I took that String.length() method out of the 'for loop' and used integer length local variable, as you have in your code, the performance is very close between array of char and String charAt() approaches.
    >
    You are still worrying about something that is irrevelant in the greater scheme of things.
    It doesn't matter how fast the CPU processing of the data is if it is faster than you can write the data to the sink. The process is:
    1. read data into memory
    2. manipulate that data
    3. write data to a sink (database, file, network)
    The reading and writing of the data are going to be tens of thousands of times slower than any CPU you will be using. That read/write part of the process is the limiting factor of your throughput; not the CPU manipulation of step #2.
    Step #2 can only go as fast as steps #1 and #3 permit.
    Like I said above:
    >
    The best 'file to database' performance you could hope to achieve would be loading simple, 'known to be clean', record of a file into ONE table column defined, perhaps, as VARCHAR2(1000); that is, with NO processing of the record at all to determine column boundaries.
    That performance would be the standard you would measure all others against and would typically be in the hundreds of thousands or millions of records per minute.
    What you would find is that you can perform one heck of a lot of processing on each record without slowing that 'read and load' process down at all.
    >
    Regardless of the sink (DB, file, network) when you are designing data transport services you need to identify the 'slowest' parts. Those are the 'weak links' in the data chain. Once you have identified and tuned those parts the performance of any other step merely needs to be 'slightly' better to avoid becoming a bottleneck.
    That CPU part for step #2 is only rarely, if every the problem. Don't even consider it for specialized tuning until you demonstrate that it is needed.
    Besides, if your code is properly designed and modularized you should be able to 'plug n play' different parse and transform components after the framework is complete and in the performance test stage.
    >
    The only thing that is fixed is that all input files are ASCII (not Unicode) characters in range of 'space' to '~' (decimal 32-126) or common control characters like CR,LF,etc.
    >
    Then you could use byte arrays and byte processing to determine the record boundaries even if you then use String processing for the rest of the manipulation.
    That is what my framework does. You define the character set of the file and a 'set' of allowable record delimiters as Strings in that character set. There can be multiple possible record delimiters and each one can be multi-character (e.g. you can use 'XyZ' if you want.
    The delimiter set is converted to byte arrays and the file is read using RandomAccessFile and double-buffering and a multiple mark/reset functionality. The buffers are then searched for one of the delimiter byte arrays and the location of the delimiter is saved. The resulting byte array is then saved as a 'physical record'.
    Those 'physical records' are then processed to create 'logical records'. The distinction is due to possible embedded record delimiters as you mentioned. One logical record might appear as two physical records if a field has an embedded record delimiter. That is resolved easily since each logical record in the file MUST have the same number of fields.
    So a record with an embedded delimiter will have few fields than required meaning it needs to be combined with one, or more of the following records.
    >
    My files have no metadata, some are comma delimited and some comma and double quote delimited together, to protect the embedded commas inside columns.
    >
    I didn't mean the files themselves needed to contain metadata. I just meant that YOU need to know what metadata to use. For example you need to know that there should ultimately be 10 fields for each record. The file itself may have fewer physical fields due to TRAILING NULLCOS whereby all consecutive NULL fields at the of a record do not need to be present.
    >
    The number of columns in a file is variable and each line in any one file can have a different number of columns. Ragged columns.
    There may be repeated null columns in any like ,,, or "","","" or any combination of the above.
    There may also be spaces between delimiters.
    The files may be UNIX/Linux terminated or Windows Server terminated (CR/LF or CR or LF).
    >
    All of those are basic requirements and none of them present any real issue or problem.
    >
    To make it even harder, there may be embedded LF characters inside the double quoted columns too, which need to be caught and weeded out.
    >
    That only makes it 'harder' in the sense that virtually NONE of the standard software available for processing delimited files take that into account. There have been some attempts (you can find them on the net) for using various 'escaping' techniques to escape those characters where they occur but none of them ever caught on and I have never found any in widespread use.
    The main reason for that is that the software used to create the files to begin with isn't written to ADD the escape characters but is written on the assumption that they won't be needed.
    That read/write for 'escaped' files has to be done in pairs. You need a writer that can write escapes and a matching reader to read them.
    Even the latest version of Informatica and DataStage cannot export a simple one column table that contains an embedded record delimiter and read it back properly. Those tools simply have NO functionality to let you even TRY to detect that embedded delimiters exist let alone do any about it by escaping those characters. I gave up back in the '90s trying to convince the Informatica folk to add that functionality to their tool. It would be simple to do.
    >
    Some numeric columns will also need processing to handle currency signs and numeric formats that are not valid for the database inpu.
    It does not feel like a job for RegEx (I want to be able to maintain the code and complex Regex is often 'write-only' code that a 9200bpm modem would be proud of!) and I don't think PL/SQL will be any faster or easier than Java for this sort of character based work.
    >
    Actually for 'validating' that a string of characters conforms (or not) to a particular format is an excellent application of regular expressions. Though, as you suggest, the actual parsing of a valid string to extract the data is not well-suited for RegEx. That is more appropriate for a custom format class that implements the proper business rules.
    You are correct that PL/SQL is NOT the language to use for such string parsing. However, Oracle does support Java stored procedures so that could be done in the database. I would only recommend pursuing that approach if you were already needing to perform some substantial data validation or processing the DB to begin with.
    >
    I have no control over format of the incoming files, they are coming from all sorts of legacy systems, many from IBM mainframes or AS/400 series, for example. Others from Solaris and Windows.
    >
    Not a problem. You just need to know what the format is so you can parse it properly.
    >
    Some files will be small, some many GB in size.
    >
    Not really relevant except as it relates to the need to SINK the data at some point. The larger the amount of SOURCE data the sooner you need to SINK it to make room for the rest.
    Unfortunately, the very nature of delimited data with varying record lengths and possible embedded delimiters means that you can't really chunk the file to support parallel read operations effectively.
    You need to focus on designing the proper architecture to create a modular framework of readers, writers, parsers, formatters, etc. Your concern with details about String versus Array are way premature at best.
    My framework has been doing what you are proposing and has been in use for over 20 years by three different major nternational clients. I have never had any issues with the level of detail you have asked about in this thread.
    Throughout is limited by the performance of the SOURCE and the SINK. The processing in-between has NEVER been an issu.
    A modular framework allows you to fine-tune or even replace a component at any time with just 'plug n play'. That is what Interfaces are all about. Any code you write for a parser should be based on an interface contract. That allows you to write the initial code using the simplest possible method and then later if, and ONLY if, that particular module becomes a bottlenect, replace that module with one that is more performant.
    Your intital code should ONLY use standard well-established constructs until there is a demonstrated need for something else. For your use case that means String processing, not byte arrays (except for detecting record boundaries).

  • HT5622 Actually um trying to update new iOS 7 for my iphone 4 but when i press the button to install new software suddenly it appears why " iOs 7 failed verification because you are no longer connected to the internet " even my phone is already connected

    hie there Actually um trying to update new iOS 7 for my iphone 4 but when i press the button to install new software suddenly it appears why " iOs 7 failed verification because you are no longer connected to the internet " even my phone is already connected to net

    I tried powering down and re-starting the iPhone (as suggested at http://support.apple.com/kb/TS1275). This seems to have cleared the "...not connected to the Internet" problem, and iOS 6.1 is now in the process of downloading.
    Thanks very much for your feedback.

  • When adding a page a extra page appears

    I have to Master Pages Portrait Master Page 1 and Landscape Master Page 2
    In design view when I insert a page - set it to Page 2 in pagination (landscape page) - an extra page appears (in design view when  I click on thepage the heirarchy shows the extra page as the Landscape Master Page 2.
    What am I doing wrong?

    Check the hight of subform in the Main page.If hight of the subform which is in the main page is more that the Master page height then you will get this issue..

  • How to remove extra char in the uploaded file...?

    Dear All,
    There is file upload page in our portal.When user uploads the file (CSV) i can see there is extra char (^M) in the unix env.How can I remove that extra char before inserting into the database.For inserting into database I am using below code:
    BlobDomain blobdomain = (BlobDomain)pageContext.getParameterObject(upldFileNameHD);
    header.setFileData(blobdomain);
    Did anyone can help me on this...
    Thanks

    Raffy is right in giving the explanation on why this happens.
    Now way to
    1. Remove it:
    A. open file in vi
    B. use this command, the way it works is, search(%s) for the ^M char and replace it with space (//) , and do this globally (g)
    :%s/^M//g
    C. To type ^M char press Ctrl Key and press either M or J, it should print that char.
    D. Save the file (:wq)
    2. Avoid it:
    when doing FTP, use binary mode, just type bin before you do a put.
    Thanks,
    Tapash

  • Replace char on String

    Hi All,
    String strValue = "ABC TPT 0694";
    My String is as shown above, I am looking for a way to replace char at byte 6 (position 6) with another Char in String.
    For example at location 6 it is "T" I want to replace it with char "O". can any one tell me how to do this

    String strValue = "ABC TPT 0694";
    char[] chars = strValue.toCharArray();
    chars[5] = 'O';
    strValue = String.valueOf(chars);

  • What api would I use to get the number of chars in string?

    What api would I use to get the number of chars in string?

    Assuming that you really mean that you want the number of charaters in a String (not string), that would be documented in java.lang.String
    The method is length()

  • Solaris root password is working with extra char/chars appended with it

    Dear forum,
    In our production server, I can login as root with extra char appended end of the actual password
    Exmaple:
    Suppose my password is `hello123`
    But during login all below combinations are working and allowing to login
    hello123*456*
    hello123*4*
    hello123*hello*
    That is, login is not checking further chars after the exact macth with the actuall pass.
    1) But why?
    2) How to prevent this.... any file need to change /etc/default
    NB:
    Dear Nik if you are reading this post... please reply
    Edited by: Myth on Jan 29, 2012 10:28 PM

    It might be worth to note that you will get the crypto algorithm which is defined in /etc/security/crypto.conf
    The default of the crypto.conf is:
    1 crypt_bsdmd5.so.1
    2a crypt_bsdbf.so.1
    md5 crypt_sunmd5.so.1
    5 crypt_sha256.so.1
    6 crypt_sha512.so.1.. if you set CRYPT_DEFAULT in policy.conf to "md5", you will use the crypto algorithm crypto_sunmd5.so.1, if you set CRYPT_DEFAULT to "1" you will get crypt_bsdmd5.so.1.
    Its also worth to notice that the default in Solaris 11 is
    CRYPT_DEFAULT=5
    i.e "crypt_sha256.so.1".
    .7/M.

  • Extra tab appears on home page saying ant download successful. Cannot stop it from appearing. Pop-up says firefox update available, cannot disable. Will not keep changes about disable upgrades.

    When I open mozilla firefox, an extra tab appears that says ant upgrade download successful. I had set that do not accept upgrades. It upgraded and I cannot eliminate the tab from appearing on my homepage. I always have problems when I take a Mozilla update so I tried to disable. I keep getting a pop-up telling me one is available and I should take it. I am trying to not change my service.

    When I open mozilla firefox, an extra tab appears that says ant upgrade download successful. I had set that do not accept upgrades. It upgraded and I cannot eliminate the tab from appearing on my homepage. I always have problems when I take a Mozilla update so I tried to disable. I keep getting a pop-up telling me one is available and I should take it. I am trying to not change my service.

  • Delete a char from string ?

    Hi,
    I want to delete a char from string. i used the following function.
    String f = formulla.replace('[','');
    The above function doesnt work as it tells me to put a space or some char in 2nd parameter which i dont want. i just want to delete all occurences of some specific char in a string.
    Any suggestion.
    Thanks alot.

    u can do:
    String before;
    char charToReplace;
    StringBuffer tempBuf = new StringBuffer(before);
    for (int i=0; i<tempBuf.length(); i++)
            if (tempBuf.charAt(i)==charToReplace)
                  tempBuf.deleteCharAt(i);
    String after = tempBuf .toString(); HTH
    Yonatan

  • I have to generate a 4 char unique string from a long value

    I got a requirment
    I have to generate a 4 char unique string from a long value
    Eeach char can be any of 32 character defined has below.
    private static final char char_map[] = new char[]{'7','2','6','9','5','3','4','8','X','M','G','D','A','E','B','F','C','Q','J','Y','H','U','W','V','S','K','R','L','N','P','Z','T'};
    So for 4 char string the possible combination can be 32 * 32 * 32 * 32 = 1048576
    If any one passes a long value between 0 - 1048576 , it should generate a unique 4 char string.
    Any one with idea will be a great help.

    Well, a long is 64 bits. A char is 16 bits. Once you determine how you want to map the long's bits to your char bits, go google for "java bitwise operators".

  • An extra prompt appears for Credentials Opening Office Document in Workspac

    Hi,
    Anybody have any knowledge about this issue? and how to solve these issue?
    *6959959* An extra prompt appears for Credentials Opening Office Document using Internet Explorer with Smartcut or from EPM Workspace.
    If a security agent with a cookie-based session management mechanism is used, opening Microsoft Office documents from Microsoft Internet Explorer sometimes another prompt for credentials is displayed. This occurs because Microsoft Office issues an HTTP OPTIONS request when attempting to open documents. This OPTIONS request does not contain the same session-related cookies as requests made from the browser, so the security provider issues the prompt for credentials. Please see http://support.microsoft.com/?scid=kb;en-us;838028 for details about how Microsoft Office and Microsoft Internet Explorer open documents.
    To resolve this issue, reconfigure the security provider by disabling authentication for OPTIONS requests.
    Thanks in Advance.

    Not sure if this is what you are describing or not, but please take a look at Document ID 1350828.1 (I have pasted the text below):
    Windows Security Login Window Appears When Exporting Financial Reporting (FR) Reports To Ppt/Doc Or Xls with Office 2010 and Windows 2008 [ID 1350828.1]
    Modified 02-MAY-2012 Type PROBLEM Status PUBLISHED
    In this Document
    Symptoms
    Changes
    Cause
    Solution
    References
    Applies to:
    Hyperion BI+ - Version 9.3.3.0.00 and later
    Information in this document applies to any platform.
    Symptoms
    Unable to export FR reports to Excel, Powerpoint or Word from Workspace.
    When exporting and selecting to open the file, a new "Windows Security" window appears with a login/password to the server Windows security
    "Connect to server.system.local"
    No matter what user enters, the window comes back and the file doesn't open.
    If the file is saved then it can be opened.
    Changes
    Office 2010 was installed.
    Cause
    The cause of this issue is unknown.
    This issue has been identified in unpublished Bug 11891558 - "WINDOWS SECURITY" LOGIN WINDOW EXPORTING FR REPORTS TO PPT/DOC OR XLS :IE8/WIN7
    Solution
    For versions prior to 11.1.2.0:
    Amend the web.xml file for FR with this syntax:
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Suppress OPTIONS,HEAD for Office</web-resource-name>
    <url-pattern>/hrget/*</url-pattern>
    <http-method>OPTIONS</http-method>
    <http-method>HEAD</http-method>
    </web-resource-collection>
    <auth-constraint/>
    </security-constraint>
    Restart the Financial Reporting Web Application service and then export the report(s) to Excel, Word or PPT.
    Note: File should be located under: Hyperion/deployments/Weblogic9/servers/Financial Reporting/Web Applications/hr/WEB-INF
    This has been fixed in Patch Set 11.1.1.3.519 for Oracle Hyperion Reporting and Analysis Financial Reporting (patch number 13024655)
    Beginning with version 11.1.2.0.00:
    Please apply the following steps to resolve:
    1. On the Financial Reporting server browse to the location:
    oraclehome\Middleware\EPMSystem11R1\products\financialreporting\InstallableApps
    2. Take a backup copy of the HReports.ear file.
    3. Rename the file to zip and extract the "hr.war".
    4. HReports.ear file contains hr.war, where inside this file in the "web-inf" folder there is the web.xml file.
    5. Edit the web.xml file with a text editor and add the same syntax as the earlier release, at the end before the very last line---></web-app>

  • Converting chars to strings

    I don't know how to get this thing to work:
    public class TestGrade
    public static void main(String[] args)throws GradeException
      int studentID = 123423;
      char grade;
      String aGrade = new String();
      try
       System.out.println("Student #: " + studentID);
       System.out.println("Enter a letter grade for student: ");
       grade = (char)System.in.read();
       if(grade >= 'A' && grade <= 'F' || grade >= 'f' && grade <= 'f')
        System.out.println("Student ID#: " + studentID + "Grade: " + grade);
        aGrade = grade;
       else
        throw(new GradeException(aGrade));
      catch(GradeException error)
           System.out.println("Test Error: " + error.getMessage ());
    }

    it might help if I tell you where the error is...
       aGrade = grade; generates a rather obvious error. Incompatible types, I don't know how to convert this sucker into a string so I can feed a string into GradeException....

  • When sending email message appears "sending the message failed because you exceeded your sending limit. A copy has been placed in you outbox"

    When sending email message appears "sending the message failed because you exceeded your sending limit.  A copy has been placed in your outbox"

    Who's the provider? Do they have a limit?
    https://discussions.apple.com/message/22929931#22929931

  • I can't open my computer. When I type in the password an extra arrow appears facing upwards (the other one facing to the RHS) If I press either nothing happens  there is a cancel button as well (which i don't need)  HELP!?

    I cannot open my computer>  When I type in my password an extra arrow appears (facing upwards) If I press either the usual arrow (facing RHS) or the new one nothing happens.
    A cancel button below the password is also present
    I am getting desperate
    Any ideas
    Thanks
    Debbie

    Check that your Caps lock isn't on. Maybe the light that indicates whether it is or not has stopped working. Anyway, try pressing it see if it helps.

Maybe you are looking for

  • Select query in MB51 failing only for posting date(BUDAT)02/02/2010

    Hello Experts, I am having below select query. It is running perfectly fine for all the dates except 02/02/2010.On all other dates it is getting executed with in second. For 02/02/2010 it keeps on running for more than 10 minutes and then fails with

  • Problem in loading metadata resources in 10.1.2 for developer

    when the process invokes the mail service: <invoke name="sendEMail" partnerLink="mailServicePL" portType="mail:MailService" operation="sendMessage" inputVariable="mailMSG"/> the bpel reports the following error <sendMessageFault xmlns="http://service

  • For How long will the posting threads last

    Hello Every One, I 'd like to know, if i am collection all the necessary links which has the corresponding thread ids mentioned along with them. What would be the duration of their lasting. please give complete details on this. Regards, karthik

  • OSB(11.1.1.4) errors when ServiceProxy configured to AQ JMS Topic(not Q)

    Hi, I have a situation as follows: AQ JMS Topic --> OSB Proxy Service --> Invoke some business service. I have configured WLS with AQ Foreign JMS server. I know my WLS/AQ configuration is correct as I can publish to AQ topic from OSB(no bpel) busines

  • FXO & FXS Card

    Hello Guys , I have installed VIC-2FXS and VIC-2FXO Card on my Cisco 2651, but my router is not detecting the Voice cards. I have seen the output of Show Version and Show Diag. If i am installing any other WIC-2T it is detecting. Can you Please let m