How do i read the numbers between 2 #'s??
Hi,
I have a trace file and when opened in wordpad it looks something like below.
I am trying to write a java program to read the time stamp. the time stamp is #1204805344325#.
how do i get to this part #1204805344325#??
Thanks
#1.5#00145E489D04016C0001031700130074000447C39A926E35#1204805344325#XIRUN.com.sap.aii.ibrun.server.valueMapping.ValueMappingService#sap.com/com.sap.xi.services#XIRUN.com.sap.aii.ibrun.server.valueMapping.ValueMappingService#J2EE_GUEST#0#SAP J2EE Engine JTA Transaction : []#XIP#PIAFUSER #47CF6344D7D702B6000000000AB6F547#output##0#0#Error#1#/Applications/ExchangeInfrastructure/IntegrationServer#Plain###Error During value mapping
Thrown:
MESSAGE ID: com.sap.aii.ibrun.server.valueMapping.rb_ValueMapException.NO_GROUPID
com.sap.aii.ibrun.server.valueMapping.DBValMapPersistor$NoGuidException: Context = http://Product, agency = CRM_FSBP_BPP_Client_510, scheme = Product, and value = 0161 not found
at com.sap.aii.ibrun.server.valueMapping.DBValMapPersistor.getGroupIdEx(DBValMapPersistor.java:689)
prometheuzz wrote:
dlewis1981 wrote:
If this part is constantly of fixed width "#1.5#00145E489D04016C0001031700130074000447C39A926E35#1204805344325#" then a simple substring
would be fine.I disagree.
What is easier to read:
String[] tokens = text.split("#");or
String[] tokens = {text.substring(1, 4), text.substring(6, 41), text.substring(43,68)};?
And, although theinput text might seem to be of fixed length, what if it does change at a later point?I think you misread the requirement, paticularly this line "I am trying to write a java program to read the time stamp. the time stamp is #1204805344325#."
He is only interested in the timestamp which if this if fixed width I think would be better as a simple substring. There is no
need to create an array of all tokens and check them against a regex, if this file is fixed width. That's my opinion anyway.
And, although theinput text might seem to be of fixed length, what if it does change at a later point?Ok it can change but so can other things like the delimeter which would break your code also.
Edited by: dlewis1981 on Mar 19, 2008 6:20 AM
Similar Messages
-
How do I cancel the distance between the numbers?
I'm having trouble copy phone numbers from the phone book and send it via SMS
This problem I've found in the Arabic language, numbers appear in reverse
Please help
System 6.0.1MPEG-4 should not be used in FCP unless it is converted first or optimized in the application.
Trash your preferences. Trash your project render files. Switch off background rendering. Do not re-render. Export your projects.
Ignore the last frame and first frame indicators. -
How can I read the bootstrap files of any HDS Live stream and extract the fragment-URLs and fragment-numbers in plain text?
Could it be that it is some kind of compressed format in the bootstrap? Can I uncompress it wirh f4fpackager.exe? Could not find any download for f4fpackager.exe. I would prefere less code to do so. Is there something in Java of JavaScript, that can extract the fragment-numbers?
Thank you!Doesn't sound too hard to me. Your class User (the convention says to capitalize class names) will have an ArrayList or Vector in it to represent the queue, and a method to store a Packet object into the List. An array or ArrayList or Vector will hold the 10 user objects. You will find the right user object from packet.user_id and call the method.
Please try to write some code yourself. You won't learn anything from having someone else write it for you. Look at sample code using ArrayList and Vector, there's plenty out there. Post in the forum again if your code turns out not to behave. -
How do I lock the numbers on a French keyboard if I'm using a small blue tooth keyboard with no number pad?
How do I lock the numbers on a French keyboard if I'm using a small blue tooth keyboard with no number pad?
-
how to set up the interaction between InDesign CS6 8.0 and Photoshop CS 6 - if Photoshop is installed and the 64 and 32-bit?? default InDesign refers to the 64-bit version of Photoshop and scripts do not work.
Nice of you to point it out here as I at least don’t follow Mr.Nash’s blog regularly.
-
How do you change the spacing between lines of text?
using Dreamweaver 6 how do you change the spcing between lines of text. Not seeing it as a option in the page properties menu.
Try CSS line-height property.
Kenneth Kawamoto
[link removed by moderator] -
How can I adjust the space between the dividing line of the footnotes and the continuous text?
How can I adjust the space between the dividing line of the footnotes and the continuous text?
I want to extend the space so the dividing line does not stuck to the normal (continuous) text in my thesis. Do you have a solution? That would be perfect. Thanks a lot!
-
How can you tell the difference between ipad 2 and ipad 3 ?
I need to know how can you tell the defferance between the Ipad 2 and Ipad 3 by just looking at it ?
Well it hard to tell if you don't have the two side by side and compair it to...
-
How do I move the numbers or bullets closer to the list?
Oh Dreamweaver sages...How do I move the numbers or bullets closer to the list? Please look at this http://www.stii.us/whatisst.html and tell me what you recommend. Thank you!
With CSS margins and padding.
#mainContent li {
margin-left:10em;
padding-left:0;
Also remove the <p> tags from all your <li> tags.
<ol>
<li>this is a list item</li>
<li>this is a list item</li>
<li>this is a list item</li>
</ol>
Nancy O. -
How do I sync the calendars between my iPhone 4s and my wife's Max (OS X 10.7.5)?
Same answer as your other thread. Sync them to the same service.
-
how does muse tell the difference between a temporary site and my free 5 sites i get with my creative cloud membership?
because they both use .businesscatalyst.com and there's no option to say that it is a temporary site not a finished site i wish to publish to my creative cloud account.Since this is an open forum, not Adobe support... you need to contact Adobe staff to help
Adobe contact information - http://helpx.adobe.com/contact.html
-Select your product and what you need help with
-Click on the blue box "Still need help? Contact us" -
How can I synchronize the app between my iPad and iPhone?
How can I synchronize the app between my iPad and iPhone?
Hi,
May i know which app in particular you are taking about.
If that is Adobe Reader you need to sign-in in Adobe Id and password and that should be it.
Regards,
Ajlan Huda. -
How can I read the PXI-Chassis-Type (LabWindows/CVI)?
How can I read the PXI-Chassis-Type?
I use in different test-stands different PXI/SCXI-Chassis for the same project. For example: Some test-stands have a PXI/SCXI-1052-Chassis, others have a PXI-1033 and a SCXI-1000 Chassis. Because I have to use different DIO-Ports (Ports 0.0, 0.1... are reserved for internal communication between the 1033 and the 1000-Chassis) I want to read the used devices.
I think one way is to use the registry-entries, but I'm not sure...
My current LabWindows/CVI- version is 8.5.1.
Thanks for your ideas!
Jagger_HKGHello Jagger_HKG,
you could use the NI System Configuration API.
Kind regards,
Robert H
NI Germany -
How do I change the spacing between lines in Pages 5.5.2? Single spacing prints more like double spacing.
In the Format panel under the Text Style tab, there is a ▸ Spacing category. Click it to open, and you will have a selector that defaults to Lines, and to the right, the ability to set your spacing in decimal values. In addition to Lines, you also have At Least, Exactly, and Between capability. You can even set exact line height in points. Check that your Before Paragraph, and After Paragraph settings are correct for your needs.
-
HT4060 How can i tell the difference between chargers
How can i tell the differance between chargers
Believe it or not, they are identified right on the chargers themselves. Unfortunately, the font is real small and the print is gray on a white background. It's nearly impossible to read. You need a bright light and a magnifying glass!
After determining which is which, you might wish to put your own paper labels on them.
Maybe you are looking for
-
Urgent urgent...plzz
hi, hi gurus, what is difference between service tax with credit and without credit.............. i want a create a tax code for service tax without credit... if i use this tax code what would be effects, will the tax be added to the base amount...
-
Display Arabic Character in NetScape Navigator
Hi I am using Oracle Forms & Reports 10g R2. I call a report through a button in that report there are English and Arabic Character. When i see report in Netscape Navigator 9 English character show fine but Arabic Character does not showing properly.
-
iPhoto keeps quitting on me. I can't even add a new album and it quits. I've tried every remedy that I know of to solve the problem: 1. Rebuild library 2. Memory test 3. Reinstall 4. New library Does anybody know how to solve this? This is what the r
-
How do I change the default spelling dictionary to UK?
-
Audio Interface with Seamless IMac Compatiblity?
Dear List, I thought I submitted this question before but I couldn't find it in my stuff, and can't find exactly the same question in here by searching so here goes and sorry if it's repetitive. I currently use an M-Audio, Fastrack Ultra as my inter