Schematool createDB can't generate the ddl

Hi,
I am trying to run the schematool to generate the ddl to re-create the
current DB - according to the doc, I should run :
schematool -a createDB -f sql.txt
However, when I run it (after put some CLASSPATH setting before the java
execute), it gives me following exception (Note: the first line is the
output of "echo $CLASSPATH"):
[tyang@zetus UMA]$ ./schematool -a createDB -f tmp.ddl
/usr/java/jsdk/ext/JMF-2.1.1e/lib/jmf.jar:/usr/java/jsdk/ext/JMF-2.1.1e/lib/sound.jar:.:lib/commons-beanutils.jar:lib/commons-collections.jar:lib/commons-dbcp.jar:lib/commons-digester.jar:lib/commons-lang.jar:lib/commons-logging.jar:lib/commons-pool.jar:lib/cwlicense.jar:lib/db2java.jar:lib/db2j.jar:lib/jakarta-regexp.jar:lib/jaxen-full.jar:lib/jca1.0.jar:lib/jcommon-0.8.8.jar:lib/jdo-1.0.1.jar:lib/jdom.jar:lib/jfreechart-0.9.13.jar:lib/jndi.jar:lib/jta-spec1_0_1.jar:lib/kodo-jdo.jar:lib/kodo-jdo-runtime.jar:lib/license.jar:lib/log4j-1.2.8.jar:lib/msbase.jar:lib/mssqlserver.jar:lib/msutil.jar:lib/ojdbc14.jar:lib/pg72jdbc2.jar:lib/saxpath.jar:lib/servlet.jar:lib/sqlline.jar:lib/tjdo.jar:lib/xalan.jar:lib/xercesImpl.jar:lib/xml-apis.jar:build/classes:build/jdometa-dtd
Exception in thread "main" java.lang.NullPointerException
at org.postgresql.jdbc2.ResultSet.getBytes(ResultSet.java:321)
at
org.postgresql.jdbc2.DatabaseMetaData.getIndexInfo(DatabaseMetaData.java:2942)
at
com.solarmetric.jdbc.DelegatingDatabaseMetaData.getIndexInfo(DelegatingDatabaseMetaData.java:253)
at
com.solarmetric.jdbc.LoggingConnectionDecorator$LoggingConnection$LoggingDatabaseMetaData.getIndexInfo(LoggingConnectionDecorator.java:321)
at
com.solarmetric.jdbc.DelegatingDatabaseMetaData.getIndexInfo(DelegatingDatabaseMetaData.java:253)
at kodo.jdbc.sql.DBDictionary.getIndexInfo(DBDictionary.java:2921)
at
kodo.jdbc.schema.SchemaGenerator.generateIndexes(SchemaGenerator.java:568)
at
kodo.jdbc.schema.SchemaGenerator.generateIndexes(SchemaGenerator.java:577)
at
kodo.jdbc.schema.SchemaGenerator.generateIndexes(SchemaGenerator.java:357)
at
kodo.jdbc.schema.SchemaGenerator.generateSchemas(SchemaGenerator.java:188)
at
kodo.jdbc.schema.SchemaGenerator.generateSchemas(SchemaGenerator.java:168)
at
kodo.jdbc.schema.SchemaTool.getDBSchemaGroup(SchemaTool.java:1062)
at kodo.jdbc.schema.SchemaTool.createDB(SchemaTool.java:293)
at kodo.jdbc.schema.SchemaTool.run(SchemaTool.java:1383)
at kodo.jdbc.schema.SchemaTool.run(SchemaTool.java:1317)
at kodo.jdbc.schema.SchemaTool.main(SchemaTool.java:1267)
Any clue ?
Thanks,
Tao

It does appear to be a driver bug, and it looks like it is fixed in
recent versions of the Postgres JDBC driver. See:
http://archives.postgresql.org/pgsql-jdbc/2002-02/msg00179.php
In article <brsrnl$4q0$[email protected]>, Abe White wrote:
>
Exception in thread "main" java.lang.NullPointerException
at org.postgresql.jdbc2.ResultSet.getBytes(ResultSet.java:321)
at
org.postgresql.jdbc2.DatabaseMetaData.getIndexInfo(DatabaseMetaData.java:2942)
As you can see, this is a postgres error, so it's difficult to know what
is going on. Are you using Postgre's own 7.2 driver?--
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com

Similar Messages

  • How to generate the DDL script of all the schema objects.

    Hi All,
    I just wanted to make centralized repository for Oracle database and to create a base version, I need to create the DDL scripts of all the database objects so that i can check in the same ddl scripts (sql) files in to my central repository.
    I need do this schedule job which will generate the ddl scripts once in a month(This should be automated process)
    Please help me out about this.
    Oracle version - 9i
    Thanks in advance.
    Thanks,
    Santosh
    Edited by: Santosh_Oracle on Feb 23, 2011 10:26 PM

    It is definitely possible to revise the script.
    Look at it, you already have 80 percent of it for free, and you didn't even need to Google.
    Just ask a FAQ in a forum loaded with FAQs!
    And Toad can save everything to one script per object.
    Sybrand Bakker
    Senior Oracle DBA

  • How can we generate the reports in html or text file formats?

    Hi,
    Is there any package that can help in creating HTMLDB reports in .txt files or .html files? (Similar to TEXT_IO in Oracle Forms)
    How can we generate the reports in html or text file formats from HTMLDB?
    Thanks in Advance
    Renjith

    Hello all.
    Bi Publisher is great, but has a very high price tag. It's even more expensive than Forms & Reports Services. We are considering APEX to replace Forms & Reports on the web, but the reporting limitations are still a problem.
    I wonder if there is another option.
    Thanks

  • How can we generate the report of backup,tablesapcefrom OEM / RMAN

    How can we generate the report of backup status,tablesapce(usedf,free space) for all the databases from OEM / RMAN
    1.)we need generate the report of tablespace used,free, archive...
    2.)How can we generate the Backup status report also

    user13584223 wrote:
    How can we generate the report of backup status,tablesapce(usedf,free space) for all the databases from OEM / RMAN
    1.)we need generate the report of tablespace used,free, archive...There are DBA_* views that expose the necessary information. They are documented in the Reference Manual.
    2.)How can we generate the Backup status report alsoThere are rman commands that give that. They are documented in the Backup and Recovery User's Guide.
    =================================================
    Learning how to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
    Go to [url tahiti.oracle.com]tahiti.oracle.com.
    Locate the link for your Oracle product and version, and click on it.
    You are now at the entire documentation set for your selected Oracle product and version.
    <b><i><u>BOOKMARK THAT LOCATION</u></i></b>
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab (for 10.x) or the "Master Book List" link (for 11.x) you will find the complete documentation library.
    Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - Read a chapter a day from the Concepts Manual.
    - Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - When you have finished reading the Concepts Manual, do it again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    =================================

  • I can`t see the ddl for upload inside directory in TFS 2010

    Hi
    I have privilegies of developer in tfs, but when I wanted upload a ddl file in a directory, the screen of upload didn't show the ddl file for upload, the filter was "all files".
    I don't know why i can't see the ddl file to upload.
    Can you help me?

    Hi neonash,
    To add a file to a source folder of tfs, you can follow the steps below get it done:
    1. Connect to the team project of TFS by using Team Explorer
    2. Open Source control explorer window, right click the folder that you want to add the file to
    3. Select "Add items to folder", then select the file to add it
    4. Right click the folder to check in pending changes
    You can also refer to this
    page for more information about add files to version control.
    Best regards,

  • Can we generate the output of SQL Query in XML format ..

    Hi Team,
    Can we generate an XML doc for an SQL Query.
    I've seen in SQL Server 2000.It is generating the output of an SQL Query in xml format.
    select * from emp for xml auto
    The output looks like
    <emp EMPNO="7369" ENAME="SMITH" JOB="CLERK" MGR="7902" HIREDATE="1980-12-17T00:00:00" SAL="2800" DEPTNO="20"/><emp EMPNO="7370" ENAME="SMITH" JOB="CLERK" MGR="7902" HIREDATE="1980-12-17T00:00:00" SAL="2800" DEPTNO="10"/>

    Just a little bit of short hand.
    Get the XML out of your database, via HTTP
    Of course the easiest method is just to return an XMLType from a stored procedure and let the calling routine figure out what to do with it. Instead
    of that way though, I'll show you how to do it via HTTP. It's all completely built into 10g and is super easy to use.
    CREATE OR REPLACE VIEW emps_and_depts AS
    SELECT e.employee_id AS "EmployeeId",
    e.last_name AS "Name",
    e.job_id AS "Job",
    e.manager_id AS "Manager",
    e.hire_date AS "HireDate",
    e.salary AS "Salary",
    e.commission_pct AS "Commission",
    XMLFOREST (
    d.department_id AS "DeptNo",
    d.department_name AS "DeptName",
    d.location_id AS "Location"
    ) AS "Dept"
    FROM employees e, departments d
    WHERE e.department_id = d.department_id
    Some people hear web and immediately start salivating about security issues. Let me address that quickly. Just because you have the HTTP and/or
    FTP servers running in the database, that does not mean you have a security problem. For one, I would hope your databases are behind a firewall.
    Second, with the correct architecture (DMZ, app servers, etc) you can make this data available outside the firewall fairly transparently and third,
    just because it's on the web does not mean the data MUST be available on the internet. This is a good way to make your data available on your
    intranet. If you are worried about people INSIDE your firewall, that still doesn't preclude web based access. Follow Oracle security guidelines.
    Before I show you how to get to your data, let's talk about URLs and URIs. A URL is a Uniform Resource Locater and URI is a Uniform Resource
    Identifier. A URL is the way you would identify a document on the net, i.e. http://www.oracle.com is a URL. A URI is a more generic form of a URL.
    Oracle supports three types of URI: HTTPURIType - basically a URL (which would be like the URL above), XDURIType - a pointer to an XDB resource
    (usually an XML document but can be other objects), and DBURIType - a pointer to database objects.
    It's the DBURIType that we're going to concentrate on here. The DBURIType let's us reference database objects using a file/folder paradigm. The
    format for a DBURI is /oradb/<schema>/<table>. Oradb is shorthand for the database; it is not the database name or SID. My database is named XE
    but I still use oradb in the DBURI. For example, the view we created above is in my XE database, is owned by HR (at least in my case) and is called
    EMPS_AND_DEPTS. This can be referenced as /oradb/HR/EMPS_AND_DEPTS.
    If the view had many rows and you wanted only one of them, you can restrict it by including a predicate. The documentation for XDB has a great
    write up on Using DBURIs.In our case, we are going to write out the entire document. Now that you understand that the DBURI is a pointer to
    objects in our instance, we can use that to access the data as a URL.
    The format for the URL call is http://<machinename>:<port>/<DBURI>
    In my case, my XE database is running on a machine called mach1 and is listening on port 8080. So to see the view we created above, I open my
    browser and navigate to: http//mach1:8080/oradb/HR/EMPS_AND_DEPTS
    The created URL will be as http//mach1:8080/oradb/PUBLIC/EMPS_AND_DEPTS
    If your database is set up correctly and listening on port 8080 (the default), your browser should ask you to login. Login as the user who created the
    view (in my case HR). You should now get an XML document displayed in your browser.
    And that's it. It doesn't get much simpler than that. If you get rid of the descriptive text above, it basically comes down to:
    Create a table or view
    Open your web browser
    Enter a URL
    Enter a user ID and password
    View your XML
    If you notice, Oracle formatted the data as XML for us. Our view returns scalar columns and an XML fragment called Dept. Oracle formatted the
    return results into an XML format.
    And as a side note, if you look closely, you'll see that my URL has PUBLIC where I said to put HR. PUBLIC is a synonym for all objects that your
    logged in user can see. That way, if your user has been granted select access on many schemas, you can use PUBLIC and see any of them.

  • Can 9401 generate the clock frequency of 20Mhz on 4 Channels in SCTL of 40MHz

    We need to use 9401 to generate the clock frequency of 20Mhz on 4 Channels
    But as per trhe data sheet 
    4 output channels........................10 MHz
    Does it means that we can get maximum frequency of 10MHz on each channel.
    Thanks

    Hello Johan!
    Bad news I am afraid….
    I assume you are using the Data Acquisition Toolbox from the Mathworks and when it comes to support on that interface I have to advice you to contact the Mathworks for assistance. We don't provide any support on their data acquisition interface since we have nothing to do with it.
    Sorry for the inconvenience this might cause you.
    Regards,
    Jimmie A.
    Applications Engineer, National Instruments
    Regards,
    Jimmie Adolph
    Systems Engineer Manager, National Instruments Northern Region
    Bring Me The Horizon - Sempiternal

  • Can we generate the payslip by using EC 6.0 in development server  ?

    Hi Gurus,
    Pl. respond asap

    we have successfully run the pay roll,but we are not able to generate the payslip in SAP format.   If we can do it ?, can you pl explain the procedure ....
    Thanks in advance
    Regards,

  • Can not generate the passcode for wiki

    hi All,
    I am using wc11.1.1.3, I try to config wiki according to wc document, when I want to generate the passcode for wiki, the document said:
    1.Start Fusion Middleware Control Console. For information, see Section 6.1, "Displaying Fusion Middleware Control Console."
    2.Right-click the domain in which Oracle WebCenter Wiki and Blog Server is deployed. Next, select Security and then click Credentials.
    While just at this step, I got the error msg like this:
    Can not search all credentials from credential store
    JPS-01049: ??????: javax.naming.directory.InvalidSearchFilterException: invalid attribute description; remaining name 'cn=oracle.wsm.security,cn=CredentialStore,cn=portalDomain,cn=JPSContext,cn=jpsroot_wc'
    I am using oid11g as credential store, I checked oid and confirm that 'cn=oracle.wsm.security,cn=CredentialStore,cn=portalDomain,cn=JPSContext,cn=jpsroot_wc' exists.
    Does anybody has suggestion on this?
    Best regards

    Read this and this.

  • Can we generate the same key with the same password???

    Hi everyone,
    Is it at all possible to generate the same key? I have a program that takes a user password, creates a key. And this is done in a loop for 5 times. I just wanted to see if the keys that are generated will be the same for the same password. But the keys that are generated are different.
    Does anyone have any idea why this would happen?
    My Environment
    jdk1.2.2
    jce1.2.1
    My class is very simple as is as follows
    import java.security.*;
    public class SecureStuff {
    static
    Security.addProvider(new com.sun.crypto.provider.SunJCE());
    public SecureStuff()
    try {
    Key secretKey = null;
    for (int i = 0; i < 6; i++){
    javax.crypto.spec.DESedeKeySpec spec = new javax.crypto.spec.DESedeKeySpec("PASSWORDPASSWORDPASSWORD".getBytes());
    javax.crypto.SecretKeyFactory desFactory = javax.crypto.SecretKeyFactory.getInstance("DESede");
    secretKey = desFactory.generateSecret(spec);
    System.out.println("key generated:"+secretKey.getEncoded());
    } catch (Exception e){
    e.printStackTrace();
    public static void main(String[] args) {
    SecureStuff securestuff = new SecureStuff();
    The Output
    C:\> java SecureStuff
    key generated:[B@eb7989c5
    key generated:[B@e96189c5
    key generated:[B@e99589c5
    key generated:[B@e8d989c5
    key generated:[B@ef4189c5
    key generated:[B@eff589c5
    Please can anyone help me..
    Thank you very very much.
    ...geetha

    Hi,
    I was wondering if you have found a solution to your question.. I justed started working with JCE and have to implement the same functionality. basically I am trying to Encrypt passwords stored in the DB and then when a user logs in, I encrypt his password and compare with the stored password in the DB. For me to do this I have to be sure I can get the same key generated for each encryption.
    Also, do you have any examples I can look at or any recommendation on books that explain this subject (JCE) well.
    Thanks
    Chi

  • Can I generate the first page in a PDF file To a image (jpg/png..) file without Adobe Acrobat Profes

    I was developing an desktop application with C#.NET2.0
    I would like to insert a PDF file to a repository and then generate the thumbnail of first page to a (jpg/png) file and store to the database for preview as the Icon in my application.(Like to Window Explorer)
    I have read around the boards and found that the machine must be installed with only the full of Acrobat Professional, right?
    If the appliction have to be run to a lot of client. Do I need to buy the lecense to all machines? Or Are there the other ways?

    If you want to use the Acrobat SDK, which is a tool for automating
    Acrobat, you need to buy and install Acrobat on each client.
    Adobe's PDF Library, which doesn't require Acrobat and has a different
    (negotiated) licensing model based on royalties might be a better fit.
    In either case, this would be written in C/C++.
    Aandi Inston

  • Can we generate the Offfice 365 MX-Token needed for the MX-DNS-Record by ourselves?

    Hi there
    As a hosting company we programmed a DNS-zone-editor in which our customers can edit their DNS-zone. A new feature we are offering is a so-called "DNS-Template-Service", in which our customers can select predefined record templates like GoogleApps
    and then trigger by one click the installation of the predefined records.
    We also would like to offer them "Office 365" as a template. According to this article https://support.office.com/en-ie/article/Create-DNS-records-at-any-DNS-hosting-provider-for-Office-365-7b7b075d-79f9-4e37-8a9e-fb60c1d95166#BKMK_add_CNAME we
    understand that all we need to do is to add a couple of CNAME, TXT and SRV records which is great.
    However, there is also an MX record with a dynamical component (the "MX-Token") that is required:
    <MX token>.mail.protection.outlook.com
    We understand that this token can be fetched by the customer from their office installation. However that would break the purpose of our templating system that is designed to work like an on/off switch.
    So our question is if there is any way that our system could generate this token by itself since we have knowledge of the customers domain anyway.
    According to some customers who already installed those records manually we can see some patterns:
    Example 1: domain1.com results in an MX with a value of
    domain1-com.mail.protection.outlook.com
    This is easy: just replace the dot with a hyphen.
    However for domains with hyphens in the name a special conversion is made and appended on the back of the first part: 
    Example 2: domain-withdash.com results in an MX with a value of domainwithdash-com01e.mail.protection.outlook.com
    Example 3: dom-ainwithdash.com results in an MX with a value of domainwithdash-com0i.mail.protection.outlook.com
    Example 4: doma-in-withadash.ch results in an MX with a value of domainwithdash-com01bb.mail.protection.outlook.com
    So what is the algorithm for this (probably bidirectional) conversion?
    Thanks for letting us know and make it easier for our customers to use office 365 with their own domain name.
    Regards
    Lukas
    Developer @ cyon GmbH

    We actually spent the last 1.5h to reverse-engineer the pattern and (hopefully) found the right answer on how these hyphen-replacements are substituted.
    * This functions generates a token as done in office 365
    * @return mixed|string
    private function getOffice365MxToken($domain)
    $delimiter = '0'; // delimiter between the domain part and the hyphen replacement part
    $token = $domain;
    $hyphenReplaceToken = '';
    // split domain string into chunks of 4 chars
    $chunkSize = 4;
    $chunks = str_split($token, $chunkSize);
    // transform the hyphens (their position) in the domain name to an alphanumerical character string
    $skipCount = 0;
    $intOfA = ord('a'); // get the decimal value of the letter 'a' as start value
    foreach($chunks as $chunk){
    $digit = $intOfA;
    for ($i = 0; $i < $chunkSize; $i++){
    if('-' === $chunk[$i]){
    $digit += pow(2, $i);
    if($intOfA === $digit){ // if the value is a it means no hyphen was found
    $skipCount++;
    continue;
    if (0 !== $skipCount) {
    $hyphenReplaceToken .= $skipCount;
    $hyphenReplaceToken .= chr($digit);
    $skipCount = 0; // rewind skip count
    if(strlen($hyphenReplaceToken) > 0){
    $token .= $delimiter . $hyphenReplaceToken;
    $token = str_replace('-', '', $token); // remove - from domain name
    $token = str_replace('.', '-', $token); // replace dots with -
    return $token;
    Short-hand explanation: The pattern showed that the domain string simply gets chunked into pieces of 4 chars. For each setting at which hyphen(s) can be located at the index value (seen as bit mask 0124) is added up. The resulting number we get per chunk
    then can be added to starting decimal value of the letter 'a' (97) and thus gives us another letter that substitutes the hyphens locations in this chuck. If no hyphen is found, the algo simply counts for how many chunks none were find and adds this up sa a
    number.
    These concatenated letters + skip-numbers then result in the replacement token that gets appended on the end of the domain name (hyphens removed, dots replaced with hyphens). 
    Oh and yeah, between these two parts a '0' is added as delimiter.
    That's it. I hope we got it correct.
    Regards
    Lukas @ cyon GmbH

  • FM10 Can't generate the TOC with leading dots

    Hi everybody,
    I have read some useful threads here about this problem but I still can't seem to be able to resolve this leading dots issue for my TOC.
    I have already ensured that the reference page for all of my frame files in my Book have the same Reference page TOC entry. When I generate my TOC the leading dots are missing!
    I then open the Reference page for the TOC file as well and paste in the same TOC entries from my other frame files, and then update the book to regenerate the TOC.
    This also does not solve the problem.
    Any help resolving this issue would be really appreciated!
    Here are screen shots of my Reference page for my TOC(below). I have ensured that this same section is present for all of my book's frame files too (in their Reference page sections for TOCs).
    ChapterTitleTOC
    Heading1TOC
    Heading2TOC:
    And my generated TOC

    I have this happen all the time in FM9.
    Do you already have a TOC in your book file with the correct reference pages?
    Sometimes I have to do it twice, I don't know why, but if you have a TOC in your
    book file and then make another TOC, mine usually works...just a thought..
    ls

  • How can we generate the java doc for default package

    hello....
    i using Netbeans 6.5 with JDK 1.5 and JRE 1.6. I generated comment and selected generate javadoc option from Netbeans.
    It genearted javadoc for all packages except the default package.Please help me to generate javadoc for default package.

    You need to pass in source filenames (rather than package names) with the javadoc command on the command line. (I don't know if this can be done in NetBeans)
    "I have refined this fix to handle classes in unnamed packages. A link with the label <unnamed package> now appears at the top of the packge list when classes in unnamed packages are specified on the command line."
    stddoclet: Include package info when passing in source filenames (*.java)
    10-Fix Delivered,
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4359386
    Also see:
    stddoclet: Want default (i.e. unnamed) package to appear in package list
    11-Closed, duplicate of 4359386
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4213968

  • Documents in BW - can't generate the document properties

    Hi All,
    I need to use documents in our productive system.
    I checked the box "Characteristic is a Document Property" in infoobjects (the changes are written into transport request). Then I trasported this request into productive system, the transport was OK and according to help.sap.com I went to Documents through RSA1, where it asked me if the properties should be generated I chose OK, but then it said that the system is not modifiable (which I believe should be OK, cos it's productive) and status for generated properties for all characteristic is red (in document administration). (in dev and QA they are OK)
    I also checked the BW_LO_TRAN and BW_PH_TRAN classes in productive system and they seems to be OK.
    Any idea how to solve this?
    Thanks a lot!
    Pavel

    My problem is that, following the sample
    implementation in RFC2617, the genrated hash is never
    like the expected one mentioned by the sample! And
    I've been trying all possible combinations (as far as
    I know) while running my tests! The essential parts of
    the code I've written looks like:[snip]
    test.update((username + ":" + realm + ":" + pwd).getBytes());
    test.update((method + ":" + uri).getBytes());
    test.update(( ":" + nonce + ":" + nonceCount + ":" +
    + cnonce + ":" + qop + ":").getBytes());
    Any ideas why and where my calculation goes wrong?
    Appreciating any help!getBytes() is NOT your friend. What format is the default on your machine? What format does the MD5 assume for the string? I would guess that if you changed all of your getBytes() calls to getBytes("ASCII") (or maybe getBytes("UTF8")), life would be happier. Give it a try and see what happens!
    Grant

Maybe you are looking for