JAXB xjc expected element of type …

Lacike/ November 21, 2012/ Hints

If you have trouble loading Xml using classes generated by xjc tool (included in JAXB distribution), be carefull and do not define XSD main element like this: <!– MAIN element –> <xs:element name=”main” type=”Main”> <xs:complexType name=”Main”> … The problem here is that the main element and main element type names are identical (except the first letter that is uppercased). Xjc

Read More

Java String.isEmpty interrupts method call or thread

Lacike/ November 15, 2012/ Hints

Does your call of String.isEmpty in your code cause strange behaviour such as: – sudden interruption of method call (as if return was called) – thread interruption ? The problem is quite simple – you had build your code using JDK 1.6 with language compatibility set to previous version (1.4, 1.5) hoping the compiler would use the correct classes. This

Read More

axis2 codegen wizard (Eclipse) – InvocationTargetException

Lacike/ October 9, 2012/ Software & Development

There is a known problem with InvocationTargetException when you press Finish button in Eclipse’s Axis code generation wizard. I don’t know why there is no newer version available, however the steps are pretty straightforward. There is also a ready to deploy zip file available here. However, you have to register to download it. I had trouble following the steps, because

Read More

Xalan Xsl and Lookup tables

Lacike/ June 23, 2011/ Software & Development

If you don’t know what is a lookup table in context of Xsl transformation you might like these short example articles here or here The common way to use lookup tables in Xsl transformations is to use select=”document(”)/*/data/” syntax. If there is no path provided and the parameter of document() function is string, the function returns the reference to the

Read More