Sachin Mittal wrote: > Hi, > I am getting this above error. > My mapping is as followed: > <structure get-method="getCalendarCampaignId" > set-method="setCalendarCampaignId" name="calendar_campaign_identifier"> > <value style="element" name="calendar_campaign_id" > type="int"/> > </structure> > > Also as per docs I have added a serializer and deserializer methods for type > int: > <format type="int" serializer="java.lang.String.valueOf" > deserializer="java.lang.Integer.parseInt"/> > > So even after all this its not working and I am getting this error when > binding is compiled: > Error: Need no-argument constructor or factory method for class int; > As the error message says, the class you are putting the value into needs to be created in some way. JiBX requires either you create a constructor with no argument (e.g. MyClass() {} ) or create a method which returns a (potentially new copy) of your class (e.g. static MyClass getNewMyClass() {...}). -- Thomas Jones-Low Softstart Services Inc. tjone...@softstart.com JobScheduler for Oracle Ph: 802-398-1012 http://www.softstart.com
------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users