This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 150082 - UnmarshalException while Decoding an XML Schema which is in JavaMail eMail format
Summary: UnmarshalException while Decoding an XML Schema which is in JavaMail eMail fo...
Status: CLOSED INVALID
Alias: None
Product: soa
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: Venkat Chellasamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-14 12:05 UTC by jm206997
Modified: 2008-11-06 05:01 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Error Msg - screenshot (126.90 KB, text/plain)
2008-10-14 12:09 UTC, jm206997
Details
XML Schema file .xsd (49.34 KB, text/plain)
2008-10-14 12:09 UTC, jm206997
Details
decoded_expected .xml file (6.40 KB, text/plain)
2008-10-14 12:10 UTC, jm206997
Details
input file (3.35 KB, text/plain)
2008-10-14 12:10 UTC, jm206997
Details
re-sending Error.JPG file (126.90 KB, image/jpeg)
2008-10-18 08:56 UTC, jm206997
Details
view input data in binary mode to ensure 0D 0A bytes together (33.62 KB, image/png)
2008-11-06 00:18 UTC, ltang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jm206997 2008-10-14 12:05:55 UTC
There is an UnmarshalException while Decoding an XML Schema which has JavaMail eMail format message structure.
Please find the xsd file and screenshot in the attachment

Note: this abnormal behavior is occuring only in RedHat Linux 4 AS64 platform only.

Details:
Build:  20081012-0703
OS : Win XP SP2/SP3    = PASS
     RedHat Linux 4 AS64 = FAIL
Comment 1 jm206997 2008-10-14 12:09:12 UTC
Created attachment 71753 [details]
Error Msg - screenshot
Comment 2 jm206997 2008-10-14 12:09:47 UTC
Created attachment 71754 [details]
XML Schema file .xsd
Comment 3 jm206997 2008-10-14 12:10:24 UTC
Created attachment 71755 [details]
decoded_expected .xml file
Comment 4 jm206997 2008-10-14 12:10:54 UTC
Created attachment 71756 [details]
input file
Comment 5 jm206997 2008-10-15 07:18:24 UTC
This abnormal behavior is occuring in MAC OS also...

Verified in 20081014-1633 build on Mac Leopard Intel 32 bit 
Comment 6 jm206997 2008-10-16 07:01:50 UTC
This abnormal behavior is occuring in Solaris 10 Sparc also...
Comment 7 Samaresh Panda 2008-10-17 19:02:15 UTC
1. Can you pl. attach your attachment as image/JPEG. Right now, it opens as plain text.
2. Also what do you mean by "decoding a schema"?
3. It'll help if you give us a step-by-step instruction to reproduce the issue, as I may not be familiar with what
you're saying.
Comment 8 jm206997 2008-10-18 08:53:17 UTC
Please find the screen-shot (.jpg) file in the attachment(Error_msg.JPG)

Decoding an XML Schema means, Decoding Serialized Custom Data Format(input file) to Normalized XML Data(Decoded output file)

STEPS to reproduce:
1) Open Netbeans IDE
2) Create a BPEL Module project
3) Create/Copy the attached XML Schema(email.xsd)...(this schema should be placed under project-name/process tree)
4) right-click on the Schema, choose Encoding -> Test
5) make sure, 'Decoding' option is checked(since we are going to test Decoding function)
6) Browse the input file(email_decode_input.txt) and enter the Decoded output file name in the wizard.
7) click on 'Process' button.
  - note that, there is an exception while decoding.

Please let me know, if you are not clear the steps provided.
Comment 9 jm206997 2008-10-18 08:56:01 UTC
Created attachment 72172 [details]
re-sending Error.JPG file
Comment 10 Samaresh Panda 2008-10-20 15:24:34 UTC
Not sure who owns encoder/decoder but I think this belongs to enterprise.
Comment 11 ltang 2008-11-06 00:12:07 UTC
Again, this sounds like the OS has changed your input txt file on the \r\n.

Please set debug level to FINE or FINER or FINEST, and provide the encoding log file. In the log, please look for the 
following line (usually the first line):

Decode from input byte array, total bytes=3427, .....

If you see total bytes is not 3427, that means your input data is corrupted.


Another way to test this is to replace your "\r\n" into something else as delimiter, and test if this works.
Comment 12 ltang 2008-11-06 00:16:13 UTC
To make sure you have valid input data, use an editor to open your input file, view the file in "BINARY" mode, you 
should see "0D 0A" together as shown in attached screen shot. If you don't see "0D 0A" bytes, then your input data is 
corrupted.
Comment 13 ltang 2008-11-06 00:18:25 UTC
Created attachment 73335 [details]
view input data in binary mode to ensure 0D 0A bytes together
Comment 14 jm206997 2008-11-06 05:00:30 UTC
verified the scenario by copying the input data in BINARY mode. Observed that the Decoding process is working fine.
My Observation is,
Verified in Solaris Sparc
During normal copy - the log says total bytes=89 (input data corrupted) - decode fails
During BINARY mode copy - total bytes=91
Hence it is an Invalid bug.
Comment 15 jm206997 2008-11-06 05:01:09 UTC
verified the scenario by copying the input data in BINARY mode. Observed that the Decoding process is working fine.
My Observation is,
Verified in Solaris Sparc
During normal copy - the log says total bytes=89 (input data corrupted) - decode fails
During BINARY mode copy - total bytes=91
Closing the ticket since it is an Invalid bug.