Thread: [Servingxml-help] Need urgent help
Brought to you by:
danielaparker
From: rams <ra...@ta...> - 2006-04-26 04:52:55
|
SGksDQpJIGFtIGdldHRpbmcgdGhlIGZvbGxvd2luZyBleGNlcHRpb24gd2hlbiBpIHRyeSB0 byBydW4gU2VydmluZ3htbCB1c2luZyB0aGUgDQpyZXF1aXJlZCBpbnB1dCBmaWxlcy4gVGhl IGNvbmN1cnJlbnQgamFyIGlzIHRoZXJlIGluIHRoZSBwYXRoIGFuZCBpdCBjb250YWlucyAN CnRoZSByZXF1aXJlZCBmaWxlIGFsc28uDQoNCkV4YW1wbGU6IGphdmEgLWphciBkaXIvc2Vy dmluZ3htbC5qYXIgLXIgcmVzb3VyY2VzLnhtbCAtbyBvdXQuaHRtbCBzZXJ2aWNlDQpbcmFt c0Bsb2NhbGhvc3Qgc2VydmluZ3htbC0wLjMuMl0kIGphdmEgLWphciBzZXJ2aW5neG1sLmph ciAtciANCmJvb2tzLXJlc291cmNlcy54bWwgLWkgZGF0YS9ib29rcy50eHQgLW8gYm9va3Mu eG1sIGJvb2tzDQpFeGNlcHRpb24gaW4gdGhyZWFkICJtYWluIiBqYXZhLmxhbmcuTm9DbGFz c0RlZkZvdW5kRXJyb3I6IA0KRURVL29zd2Vnby9jcy9kbC91dGlsL2NvbmN1cnJlbnQvUmVh ZFdyaXRlTG9jaw0KICAgICAgICBhdCANCmNvbS5zZXJ2aW5neG1sLmNvbXBvbmVudHMuY2Fj aGUuU2ltcGxlQ2FjaGUuPGluaXQ+KFNpbXBsZUNhY2hlLmphdmE6MzkpDQogICAgICAgIGF0 IGNvbS5zZXJ2aW5neG1sLmFwcC5BcHBEcml2ZXIuc3RhcnR1cChBcHBEcml2ZXIuamF2YTox MjApDQogICAgICAgIGF0IGNvbS5zZXJ2aW5neG1sLmFwcC5BcHBEcml2ZXIuc3RhcnR1cChB cHBEcml2ZXIuamF2YTo5OSkNCiAgICAgICAgYXQgY29tLnNlcnZpbmd4bWwuYXBwLmNvbnNv bGVhcHAuQ29uc29sZUFwcC5tYWluKENvbnNvbGVBcHAuamF2YToxMjApDQooaS1zZWFyY2gp YCc6ICANCg0KDQoNClRoaXMgZS1tYWlsIGFuZCBhbnkgZmlsZXMgdHJhbnNtaXR0ZWQgd2l0 aCBpdCBhcmUgZm9yIHRoZSBzb2xlIHVzZSBvZiB0aGUgaW50ZW5kZWQgcmVjaXBpZW50KHMp IGFuZCBtYXkgY29udGFpbiBjb25maWRlbnRpYWwgYW5kIHByaXZpbGVnZWQgaW5mb3JtYXRp b24uIElmIHlvdSBhcmUgbm90IHRoZSBpbnRlbmRlZCByZWNpcGllbnQgb3IgcmVjZWl2ZWQg aXQgaW4gZXJyb3IsIHBsZWFzZSBjb250YWN0IHRoZSBzZW5kZXIgYnkgcmVwbHkgZS1tYWls IGFuZCBkZXN0cm95IGFsbCBjb3BpZXMgb2YgdGhlIG9yaWdpbmFsIG1lc3NhZ2UuIFBsZWFz ZSBkbyBub3QgY29weSBpdCBmb3IgYW55IHB1cnBvc2Ugb3IgZGlzY2xvc2UgaXRzIGNvbnRl bnRzLg0KDQpDb3B5cmlnaHQgVGFyYW5nIFNvZnR3YXJlIFRlY2hub2xvZ2llcyBQdnQuIEx0 ZC4gMjAwNC4gQWxsIHJpZ2h0cyBSZXNlcnZlZA== |
From: Daniel P. <dan...@sy...> - 2006-04-27 03:28:58
|
In order to help, I'll need to be able to replicate this, which I'm currently unable to do. Since you indicated that you attempted this in a Windows environment, I would prefer to work with that. So, for the Windows environment, can you provide me with the following information: (i) Which version of ServingXML are you using? (ii) What is the exact pathname of the directory under which you installed ServingXML? (in the past there was once an issue with spaces in directory names, although that should be fixed, but I don't want to rule anything out.) (iii) After you built the distribution, please extract the Manifest.mf from the servingxml.jar file, and post that here. Thanks, Daniel Parker ----- Original Message ----- From: "rams" <ra...@ta...> To: <ser...@li...> Sent: Wednesday, April 26, 2006 12:52 AM Subject: [Servingxml-help] Need urgent help > Hi, > I am getting the following exception when i try to run Servingxml using > the > required input files. The concurrent jar is there in the path and it > contains > the required file also. > > Example: java -jar dir/servingxml.jar -r resources.xml -o out.html service > [rams@localhost servingxml-0.3.2]$ java -jar servingxml.jar -r > books-resources.xml -i data/books.txt -o books.xml books > Exception in thread "main" java.lang.NoClassDefFoundError: > EDU/oswego/cs/dl/util/concurrent/ReadWriteLock > at > com.servingxml.components.cache.SimpleCache.<init>(SimpleCache.java:39) > at com.servingxml.app.AppDriver.startup(AppDriver.java:120) > at com.servingxml.app.AppDriver.startup(AppDriver.java:99) > at > com.servingxml.app.consoleapp.ConsoleApp.main(ConsoleApp.java:120) > (i-search)`': > > > > This e-mail and any files transmitted with it are for the sole use of the > intended recipient(s) and may contain confidential and privileged > information. If you are not the intended recipient or received it in > error, please contact the sender by reply e-mail and destroy all copies of > the original message. Please do not copy it for any purpose or disclose > its contents. > > Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights > ReservedRqºyvy²¢y®zr·¶}?Ë?S,yr-¶'ºm?£¡mz¦q¢®¿mv¥x¢¢§zº-± |
From: Daniel P. <dan...@sy...> - 2006-04-28 03:33:52
|
File input can be in any of the Java supported encodings, see http://java.sun.com/j2se/1.5.0/docs/guide/intl/encoding.doc.html, and refer to the ASCII-EBCDIC example with the flat-flat examples for how to specify input or output encodings. Note that the Java supported charsets cover some but not all variants of EBCDIC. Regards, Daniel Parker http://java.sun.com/j2se/1.5.0/docs/guide/intl/encoding.doc.html ----- Original Message ----- From: "rams" <ra...@ta...> To: "Daniel Parker" <dan...@sy...> Cc: "Vaidyanathan Narayanan" <vai...@ta...>; "Raghavendra S" <rag...@ta...> Sent: Thursday, April 27, 2006 7:33 AM Subject: Re: [Servingxml-help] Need urgent help > Hi Daniel > > Thanks again for your help in advance. Further to my last mail i have one > more > request: > > 1. Conversion API list. Do you have a complete list of what are the > conversion APIs i can use. The reason is actually my entire batch will be > a > EBCDIC data and for testing i need to convert the entire data into ascii > at > field level for the record type formats mentioned earlier. > > I think your tool is fantastic - hope the 2 issues mentioned by me ( 1 > earlier > and 1 in this email ) is addressed . Keeping my fingers crossed. > > Awaitng your reply > > Regards > Rams > This e-mail and any files transmitted with it are for the sole use of the > intended recipient(s) and may contain confidential and privileged > information. If you are not the intended recipient or received it in > error, please contact the sender by reply e-mail and destroy all copies of > the original message. Please do not copy it for any purpose or disclose > its contents. > > Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved |
From: Daniel P. <dan...@sy...> - 2006-04-28 03:14:04
|
I'm forwarding this to the list to keep a record that this is resolved. Best regards, Daniel ----- Original Message ----- From: "rams" <ra...@ta...> To: "Daniel Parker" <dan...@sy...> Sent: Thursday, April 27, 2006 12:50 AM Subject: Re: [Servingxml-help] Need urgent help > Hi Daniel, > Thanks for cooperation. That problem is solved .now it is working fine. > regards > RamReddy > On Thursday 27 April 2006 10:17, you wrote: >> The manifest looks okay. >> >> Also please send me the versions of your JDK ($JAVA_HOME) and JRE >> (java -version), and verify that they're the same (that you're not >> inadvertently compiling with one version and running with another.) >> >> Finally, see if you get different results running like this: >> >> java -cp ../../servingxml.jar:../../lib/concurrent.jar >> com.servingxml.app.consoleapp.ConsoleApp -r resources-books.xml -i >> data/books.txt -o output.xml books >> >> -- Daniel >> >> ----- Original Message ----- >> From: "rams" <ra...@ta...> >> To: "Daniel Parker" <dan...@sy...> >> Cc: "Vaidyanathan Narayanan" <vai...@ta...> >> Sent: Thursday, April 27, 2006 12:21 AM >> Subject: Re: [Servingxml-help] Need urgent help >> >> > Hi Daniel, >> > Thanks for your reply. >> > I am running this example in Linux environment. >> > 1. I am using both versions of the ServingXML 0.3.2 and 0.4.2. >> > In both versions I am getting same exception. >> > 2.I tried in $HOME and one of the subdirectories of the home also. >> > It is creating servingxml.jar and all the required directories >> > 3. >> > Here I am sending the contents of Manifest.mf file from servingxml.jar >> > >> > Manifest-Version: 1.0 >> > Ant-Version: Apache Ant 1.6.5 >> > Created-By: 1.4.2_09-b05 (Sun Microsystems Inc.) >> > Main-Class: com.servingxml.app.consoleapp.ConsoleApp >> > ServingXML-Components: META-INF/components/com/servingxml/core/compone >> > nts.xml >> > Class-Path: servingxml.jar lib/activation.jar lib/avalon-framework-cvs >> > -20020806.jar lib/batik.jar lib/concurrent.jar lib/edtftpj.jar lib/fo >> > p.jar lib/isorelax.jar lib/mail.jar lib/msv.jar lib/relaxngDatatype.j >> > ar lib/saxon.jar lib/servingxml.edtftpj.jar lib/servingxml.fop.jar li >> > b/servingxml.mail.jar lib/servingxml.msv.jar lib/servingxml.swing.jar >> > lib/servingxmlx.jar lib/xsdlib.jar ./classes/ ./config/ >> > The ReadWriteLock class is there in concurrent.jar . I saw the class >> > file >> > there . It is also there in the class path. >> > Still it is saying " >> > >> > Exception in thread "main" java.lang.NoClassDefFoundError: >> >> > EDU/oswego/cs/dl/util/concurrent/ReadWriteLock >> >> > at >> >> > com.servingxml.components.cache.SimpleCache.<init>(SimpleCache.java:39 >> >> >) at com.servingxml.app.AppDriver.startup(AppDriver.java:120) at >> >> > com.servingxml.app.AppDriver.startup(AppDriver.java:99) at >> >> > com.servingxml.app.consoleapp.ConsoleApp.main(ConsoleApp.java:120) >> > >> > Can you please go throw this info and suggest a solution. >> > Thanks & Regards >> > RamReddy.S >> > >> > On Thursday 27 April 2006 08:58, you wrote: >> >> In order to help, I'll need to be able to replicate this, which I'm >> >> currently unable to do. Since you indicated that you attempted this >> >> in >> >> a Windows environment, I would prefer to work with that. So, for the >> >> Windows >> >> environment, can you provide me with the following information: >> >> >> >> (i) Which version of ServingXML are you using? >> >> >> >> (ii) What is the exact pathname of the directory under which you >> >> installed >> >> ServingXML? (in the past there was once an issue with spaces in >> >> directory names, although that should be fixed, but I don't want to >> >> rule >> >> anything out.) >> >> >> >> (iii) After you built the distribution, please extract the >> >> Manifest.mf >> >> from the servingxml.jar file, and post that here. >> >> >> >> Thanks, >> >> Daniel Parker >> >> >> >> ----- Original Message ----- >> >> From: "rams" <ra...@ta...> >> >> To: <ser...@li...> >> >> Sent: Wednesday, April 26, 2006 12:52 AM >> >> Subject: [Servingxml-help] Need urgent help >> >> >> >> > Hi, >> >> > I am getting the following exception when i try to run Servingxml >> >> > using the >> >> > required input files. The concurrent jar is there in the path and it >> >> > contains >> >> > the required file also. >> >> > >> >> > Example: java -jar dir/servingxml.jar -r resources.xml -o out.html >> >> > service [rams@localhost servingxml-0.3.2]$ java -jar >> >> > servingxml.jar -r >> >> > books-resources.xml -i data/books.txt -o books.xml books >> >> > Exception in thread "main" java.lang.NoClassDefFoundError: >> >> > EDU/oswego/cs/dl/util/concurrent/ReadWriteLock >> >> > at >> >> > com.servingxml.components.cache.SimpleCache.<init>(SimpleCache.java:39 >> >> >) at com.servingxml.app.AppDriver.startup(AppDriver.java:120) at >> >> > com.servingxml.app.AppDriver.startup(AppDriver.java:99) at >> >> > com.servingxml.app.consoleapp.ConsoleApp.main(ConsoleApp.java:120) >> >> > (i-search)`': >> >> > >> >> > >> >> > >> >> > This e-mail and any files transmitted with it are for the sole use >> >> > of >> >> > the >> >> > intended recipient(s) and may contain confidential and privileged >> >> > information. If you are not the intended recipient or received it in >> >> > error, please contact the sender by reply e-mail and destroy all >> >> > copies of the original message. Please do not copy it for any >> >> > purpose >> >> > or disclose its contents. >> >> > >> >> > Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights >> >> > ReservedRqºyvy²¢y®zr·¶}?Ë?S,yr-¶'ºm?£¡mz¦q¢®¿mv¥x¢¢§zº-± >> > >> > This e-mail and any files transmitted with it are for the sole use of >> > the >> > intended recipient(s) and may contain confidential and privileged >> > information. If you are not the intended recipient or received it in >> > error, please contact the sender by reply e-mail and destroy all copies >> > of the original message. Please do not copy it for any purpose or >> > disclose its contents. >> > >> > Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights >> > Reserved > > > This e-mail and any files transmitted with it are for the sole use of the > intended recipient(s) and may contain confidential and privileged > information. If you are not the intended recipient or received it in > error, please contact the sender by reply e-mail and destroy all copies of > the original message. Please do not copy it for any purpose or disclose > its contents. > > Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved |
From: Daniel P. <dan...@sy...> - 2006-04-28 03:50:24
|
Hello Ram, When one record identifier's width is different, you can do the = following. <sx:flatRecordTypeChoice> <sx:positionalField name=3D"record_type" width=3D"4"/> <sx:positionalField name=3D"type" start=3D"1" width=3D"1"/>=20 <sx:when ... Here, record_type occupies the first four characters of the record, and = type occupies the first character. There's an example of this in the = "hot 1" example, with the flat to XML examples. Note that you can't have more than one sx:flatRecordTypeChoice element. Regards, Daniel Parker ----- Original Message -----=20 From: rams=20 To: Daniel Parker=20 Cc: Vaidyanathan Narayanan=20 Sent: Thursday, April 27, 2006 5:42 AM Subject: Re: [Servingxml-help] Need urgent help Hi Daniel, Thanks for all of your valuable inputs which you gave me in time. I need one more favour from you. The problem i am facing is explained below: Data in flat file looks like this: XD3100103/25/2005 1:50:00This is a trade recordytyty XD270002X1234A child transactionyuyuyuyyyyyyyuuiui XD28TN0003X1235Another child transactionyuiyuiyuiyui XD3100103/25/2005 1uuuurrrrrs:50:00This is a trade recordytyty Dtttttttuuuuuu77777777777777777777oooooooooooooooo999999999999 F56456mmmmmmmm7777777777kkkkkkkkkkkk333333333333333 D55555555hhhhhhhhhhhhhkkkkkkkkkkllllllllll E55555555hhhhhhhhhhhhhkkkkkkkkkkllllllllll In the above data, some of the rows have 4 characters as Record = Identifier, and for some it is one character. Example, XD31, XD27, XD28, = XD31, D, F and E are record identifiers. Problem is, when the record identifier's width is different, how to = process? As of now, Resource File looks like this: <?xml version=3D"1.0"?> <sx:resources xmlns:sx=3D"http://www.servingxml.com/core"> <sx:service name=3D"cybs"> <sx:serialize> <sx:transform> <sx:content ref=3D"cybs"/> </sx:transform> </sx:serialize> </sx:service> <sx:recordContent name=3D"cybs"> <sx:flatFileReader> <sx:urlSource url=3D"data/cybs-data.txt"/> <sx:flatFile ref=3D"tradesFlatFile"/> </sx:flatFileReader> <sx:recordMapping ref=3D"tradesToXmlMapping"/> </sx:recordContent> <sx:flatFile name=3D"tradesFlatFile"> <sx:commentSymbol value=3D"#"/> <sx:flatFileBody> <sx:flatRecordTypeChoice> <sx:positionalField name=3D"record_type" width=3D"4"/> <sx:when test=3D"record_type=3D'XD28'"> <sx:flatRecordType name=3D"XD28"> <sx:positionalField name=3D"record_type" width=3D"4"/> <sx:positionalField name=3D"sequence_number" width=3D"6"/> <sx:positionalField name=3D"dest_zip" width=3D"10"/> <sx:positionalField name=3D"merchant_zip" width=3D"10"/> <sx:positionalField name=3D"ship_from_zip" width=3D"10"/> <sx:positionalField name=3D"filler" width=3D"40"/> </sx:flatRecordType> </sx:when> </sx:flatRecordTypeChoice> <sx:flatRecordTypeChoice> <sx:positionalField name=3D"type" width=3D"1"/>=20 <sx:when test=3D"type=3D'D'"> <sx:flatRecordType name=3D"D"> <sx:positionalField name=3D"type" width=3D"1"/> <sx:positionalField name=3D"sequence_number" width=3D"6"/> <sx:positionalField name=3D"dest_zip" width=3D"10"/> <sx:positionalField name=3D"merchant_zip" width=3D"10"/> <sx:positionalField name=3D"ship_from_zip" width=3D"10"/> <sx:positionalField name=3D"filler" width=3D"40"/> </sx:flatRecordType> </sx:when> </sx:flatRecordTypeChoice> </sx:flatFileBody> </sx:flatFile> </sx:resources> One more thing is, when we used this kind of resource file, it is = considering only rows with record identifier width 4. Please suggest us how to proceed at your earliest. Thanks and Regards, Ram Reddy This e-mail and any files transmitted with it are for the sole use of = the intended recipient(s) and may contain confidential and privileged = information. If you are not the intended recipient or received it in = error, please contact the sender by reply e-mail and destroy all copies = of the original message. Please do not copy it for any purpose or = disclose its contents. Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights = Reserved |