Troubleshooting Message Definition Objects

Identify message definitions that require troubleshooting using the Problems view and the WorkSpace Navigator.


Problem #1:

A message definition that has a long name, or contains components with long names, fails to generate. When generating message definition objects, you may receive the following error:

Could not find the specified source file:
C:/Sybase/or50Dt/Eclipse/workspace/WorkSpaceProject/MessageDesigns/.wfbin/parsers/<message name>Parser.java

Solution #1:

Rename the message definition and its fields, containers, and other message components to names that are under 50 characters.

Problem #2:

A message definition fails to generate if any of its methods exceeds 65535 bytes, due to the static constraints of a class file. When generating message definition objects, you may receive the following error:

java.lang.Exception: Failed compiling.

Solution #2:

Limit class size by limiting the number of fields to 70 in each container. If a container requires more than 70 fields, split up the single container by adding multiple ordered containers and setting each container's Termination Type to None. This spreads the 70+ fields among several containers instead of putting all fields in a single container. Save the message definition and try to generate it again.

Problem #3

After generating objects from a message definition, the artifacts such as the JSO are not found in the expected directory.

Solution #3

This can occur when two message definitions are created with the same name and the operating system is not case-sensitive. For example, using the Message Definition editor, you can create two message definitions named PurchaseOrder and purchaseorder. On a UNIX system, these are two separate message definitions. However, on Windows, these are seen as having the same name and therefore, there is a risk that one directory could overwrite the other. To prevent this issue from occurring, consider capitalization when determining message definition naming conventions.

Related concepts
Troubleshoot
Related tasks
Troubleshooting Custom Wire Formats

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.