You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(3) |
Feb
(4) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
(6) |
2006 |
Jan
(1) |
Feb
(6) |
Mar
(9) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(12) |
2007 |
Jan
(44) |
Feb
(36) |
Mar
(24) |
Apr
(59) |
May
(6) |
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(2) |
Nov
(4) |
Dec
(3) |
2008 |
Jan
(34) |
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
(4) |
Jul
|
Aug
(7) |
Sep
(2) |
Oct
|
Nov
(3) |
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(5) |
Nov
|
Dec
|
2010 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Matt B. <gud...@ya...> - 2006-12-18 22:58:47
|
Responses inline: --- Matt Sgarlata <mat...@sp...> wrote: > Hi Matt - > > Sorry I didn't respond to the email you sent me last > week; I was sick > most of the week and I just started catching up on > emails today. Just glad to be hearing back. :) > You're > right, I haven't done much work on Morph in the past > year. However, we > do use it rather extensively in one of my projects > at work so we do > uncover problems with it from time to time. > Unfortunately, it takes > around 3 hours for me to update the website and > prepare a build, which > vastly dwarfs the amount of time I get to actually > spend working on the > project. This is why when I fix bugs I don't turn > around and do a new > release right away. Sure; obviously the release cycle can't be instantaneous. Are there any particular roadblocks in the actual release process you are aware of? > > I would love to see you get involved in the project, > and obviously > forking has a major negative which is that fixes I > develop won't make it > to you and vice versa. I don't suppose you have > worked with any other > hosting services and know of one that works well? > If not, I'm sure we > can move forward on SourceForge. I have worked on a couple of sf projects (user orangeherbert): first, Romain Guy's now-defunct Java text editor Jext and its associated plugins project. More recently, for a very short time, I worked on Dozer, an sf-hosted library with similar goals to Morph but nowhere near the code quality level. It is possible that Morph's much prettier design might equal a performance deficiency compared to Dozer (Dozer had pretty good performance going for it) but truly I doubt that Dozer's huge if-else-else constructs are going to be way faster than Morph's "good OO" polymorphic approach. ;) I'm just getting into Morph, however, so haven't really been able to put its performance to the test. Beyond sourceforge, I am a member of the Apache Ant Project Management Committee, and that's where my main body of OSS experience lies. Apache is a cool community IMHO but moving Morph there would be a pain: incubation process, etc. though it might be a possibility to consider in the future. I am pretty low in the overall Apache pecking order, but some of the other folks at Ant are a little higher up. Not sure if any of them have a vested interest in a library like Morph. :| > > Can you describe the bug you found in the software? > It's possible I've > already prepared a fix but not released it. > First, let me explain that I tend to read OSS code before ever trying to run against it, just one of my personal idiosyncrasies... I like to know what to expect. So I was browsing back and forth through the API docs and ended up reading the ChainedConverter code. What I found was that it didn't properly implement ExplicitTransformer. How I proved this was to write a small converter that uses a TypeMap to implement ExplicitTransformer. I created two instances with the following mappings: instance 1: A.class=B.class, B.class=C.class instance 2: B.class=C.class, D.class=E.class All five of these classes are just simple extensions of Object with no body. I chained these two instances together with a ChainedConverter; we'll call it "cc". Now, you can see that, for example, A is transformable to C because instance 1 can transform A to B and instance 2 can transform B to C. Thus cc.isTransformable(C.class, A.class) == true. But because ChainedConverter simply inherits the default isTransformableImpl from BaseTransformer, cc.isTransformable(E.class, A.class) == true also, but it is obvious by looking at the configuration that this is not true. I have this setup in a junit TestCase. Further, I have just built and tested the morph-1.0.1 release, and get 132 of 732 tests failed. :( -Matt B. > Matt > > Matt Benson wrote: > > Morph looks very promising, but I am pretty sure I > > already have a bug to report. ;) What's the best > way > > to get involved with this apparently slightly > dormant > > project, or do I need to fork my own version? :( > > > > br, > > Matt > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of > IT > > Join SourceForge.net's Techsay panel and you'll > get the chance to share your > > opinions on IT & business topics through brief > surveys - and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > morph-developer mailing list > > mor...@li... > > > https://lists.sourceforge.net/lists/listinfo/morph-developer > > > > > > > -- > This message is intended only for the named > recipient. If you are not the intended recipient, > you are notified that disclosing, copying, > distributing, or taking any action in reliance on > the contents of this information is strictly > prohibited. > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share your > opinions on IT & business topics through brief > surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > morph-developer mailing list > mor...@li... > https://lists.sourceforge.net/lists/listinfo/morph-developer > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Matt S. <mat...@sp...> - 2006-12-18 22:02:19
|
Hi Matt - Sorry I didn't respond to the email you sent me last week; I was sick most of the week and I just started catching up on emails today. You're right, I haven't done much work on Morph in the past year. However, we do use it rather extensively in one of my projects at work so we do uncover problems with it from time to time. Unfortunately, it takes around 3 hours for me to update the website and prepare a build, which vastly dwarfs the amount of time I get to actually spend working on the project. This is why when I fix bugs I don't turn around and do a new release right away. I would love to see you get involved in the project, and obviously forking has a major negative which is that fixes I develop won't make it to you and vice versa. I don't suppose you have worked with any other hosting services and know of one that works well? If not, I'm sure we can move forward on SourceForge. Can you describe the bug you found in the software? It's possible I've already prepared a fix but not released it. Matt Matt Benson wrote: > Morph looks very promising, but I am pretty sure I > already have a bug to report. ;) What's the best way > to get involved with this apparently slightly dormant > project, or do I need to fork my own version? :( > > br, > Matt > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > morph-developer mailing list > mor...@li... > https://lists.sourceforge.net/lists/listinfo/morph-developer > > -- This message is intended only for the named recipient. If you are not the intended recipient, you are notified that disclosing, copying, distributing, or taking any action in reliance on the contents of this information is strictly prohibited. |
From: Matt B. <gud...@ya...> - 2006-12-18 19:27:41
|
Morph looks very promising, but I am pretty sure I already have a bug to report. ;) What's the best way to get involved with this apparently slightly dormant project, or do I need to fork my own version? :( br, Matt __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: SourceForge.net <no...@so...> - 2006-03-31 22:41:58
|
Bugs item #1462448, was opened at 2006-03-31 22:41 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1462448&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Documentation Group: v1.0 (example) Status: Open Resolution: None Priority: 5 Submitted By: Garry (garpinc) Assigned to: Nobody/Anonymous (nobody) Summary: Pls describe the components property of DelegatingCopier Initial Comment: In documentation of http://morph.sourceforge.net/reference/html/transforme rs.html#transformers-graphs The order in which you add the components is different for the code vs spring mapping. Can you describe which one is right and maybe a pseudo code description about how the object transformation occures with that in mind. i.e how does it use the components order in the whole scheme of things to ultimately transform the object. Maybe if you put them in the right order I will understand but now I am confused. The order you have is: <ref bean="personCopier"/> <ref bean="vehicleCopier"/> <ref bean="childrenCopier"/> <ref bean="addressConverter"/> so If I do the transformation you describe. personCopier is used first then vehicleCopier I don't see why it wouldn't use vehicleCopier for both children and vehicles even though it wouldn't find any matching properties for children. Further explanation and clarification is necessary. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1462448&group_id=124910 |
From: SourceForge.net <no...@so...> - 2006-03-31 22:16:15
|
Bugs item #1460440, was opened at 2006-03-29 05:25 Message generated for change (Settings changed) made by garpinc You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1460440&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Open Resolution: Fixed Priority: 5 Submitted By: Garry (garpinc) Assigned to: Nobody/Anonymous (nobody) Summary: I get error if dest does not have getter? Initial Comment: net.sf.morph.transform.TransformationException: Error copying source Subscribers (class com.bcbsma.seebeyond.idsuee.elements.SubscriberEligibi lity$Subscribers) to destination com.bcbsma.seebeyond.a2a.InsertSubscriberAddress@26f9e 5 (class com.bcbsma.seebeyond.a2a.InsertSubscriberAddress) at net.sf.morph.transform.transformers.BaseTransformer.co py(BaseTransformer.java:367) at com.bcbsma.seebeyond.ids.eligibility.IDSInsertEligibil ityRecordActivity.performActivity (IDSInsertEligibilityRecordActivity.java:59) at com.eds.seebeyond.common.activity.SeeBeyondActivity.pe rform(SeeBeyondActivity.java:132) at com.bcbsma.seebeyond.ids.eligibility.TestIDSInsertElig ibilityRecordActivity.testSubscriberEligibility (TestIDSInsertEligibilityRecordActivity.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke (Method.java:324) at junit.framework.TestCase.runTest (TestCase.java:154) at junit.framework.TestCase.runBare (TestCase.java:127) at junit.framework.TestResult$1.protect (TestResult.java:106) at junit.framework.TestResult.runProtected (TestResult.java:124) at junit.framework.TestResult.run (TestResult.java:109) at junit.framework.TestCase.run (TestCase.java:118) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .runTests(RemoteTestRunner.java:478) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .run(RemoteTestRunner.java:344) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .main(RemoteTestRunner.java:196) Caused by: net.sf.morph.reflect.ReflectionException: The property 'subscriberID' is not readable in bean com.bcbsma.seebeyond.a2a.InsertSubscriberAddress@26f9e 5 (class com.bcbsma.seebeyond.a2a.InsertSubscriberAddress) using reflector SimpleDelegatingReflector [ListReflector,SortedSetReflector,ArrayReflector,Resul tSetReflector,ContextReflector,MapReflector,DynaBeanRe flector,ObjectReflector] (class net.sf.morph.reflect.reflectors.SimpleDelegatingReflec tor) at net.sf.morph.reflect.reflectors.BaseReflector.get (BaseReflector.java:603) at net.sf.morph.transform.copiers.BasePropertyNameCopier. copyProperty(BasePropertyNameCopier.java:108) at net.sf.morph.transform.copiers.PropertyNameMappingCopi er.copyImpl(PropertyNameMappingCopier.java:122) at net.sf.morph.transform.transformers.BaseTransformer.co py(BaseTransformer.java:360) ... 16 more ---------------------------------------------------------------------- Comment By: Garry (garpinc) Date: 2006-03-31 22:15 Message: Logged In: YES user_id=712000 I don't have control of my destination object so I would need morph to look at the source type and prefer that over object if it exists. ---------------------------------------------------------------------- Comment By: Matt Sgarlata (sgarlatm) Date: 2006-03-31 19:07 Message: Logged In: YES user_id=1161666 Fixed in Morph 1.0.1. However, there is another problem you are likely to encounter with your code. The issue is that you have multiple setters for the subscriberID property. Morph doesn't really have a good way of determining which one to use so it's going to pick at random, and it may make the wrong choice. The solution is to make a single setSubscriberID(Object obj) method that does a test like this if (obj instance of String) { // logic here } else { } So basically combine your setters into a single setter. ---------------------------------------------------------------------- Comment By: Garry (garpinc) Date: 2006-03-30 21:18 Message: Logged In: YES user_id=712000 As indicated there are no getters for SubscriberID only setters. Since this is the destination object there should be no need to have a getter. In my case this is a one way mapping. ---------------------------------------------------------------------- Comment By: Garry (garpinc) Date: 2006-03-30 21:14 Message: Logged In: YES user_id=712000 package com.bcbsma.seebeyond.a2a; import java.sql.*; import com.stc.eways.jdbcx.*; public class InsertSubscriberAddress extends PreparedStatementAgent { public InsertSubscriberAddress(Session session) { super(session, "INSERT INTO TBL_SUBSCRIBER_ADDRESS (SUBSCRIBER_ID, GROUP_NUMBER, TYPE_CODE, ADDRESS1, ADDRESS2, CITY, STATE, ZIP_5, ZIP_4, COUNTRY, PHONE_1, PHONE_2) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)"); } public void setSubscriberID(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(1, Types.VARCHAR); else setString(1, obj); } public void setSubscriberID(Object obj) throws java.sql.SQLException { if(obj == null) setNull(1, Types.VARCHAR); else setObject(1, obj); } public void setGroupNumber(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(2, Types.VARCHAR); else setString(2, obj); } public void setGroupNumber(Object obj) throws java.sql.SQLException { if(obj == null) setNull(2, Types.VARCHAR); else setObject(2, obj); } public void setTypeCode(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(3, Types.VARCHAR); else setString(3, obj); } public void setTypeCode(Object obj) throws java.sql.SQLException { if(obj == null) setNull(3, Types.VARCHAR); else setObject(3, obj); } public void setAddress1(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(4, Types.VARCHAR); else setString(4, obj); } public void setAddress1(Object obj) throws java.sql.SQLException { if(obj == null) setNull(4, Types.VARCHAR); else setObject(4, obj); } public void setAddress2(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(5, Types.VARCHAR); else setString(5, obj); } public void setAddress2(Object obj) throws java.sql.SQLException { if(obj == null) setNull(5, Types.VARCHAR); else setObject(5, obj); } public void setCity(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(6, Types.VARCHAR); else setString(6, obj); } public void setCity(Object obj) throws java.sql.SQLException { if(obj == null) setNull(6, Types.VARCHAR); else setObject(6, obj); } public void setState(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(7, Types.VARCHAR); else setString(7, obj); } public void setState(Object obj) throws java.sql.SQLException { if(obj == null) setNull(7, Types.VARCHAR); else setObject(7, obj); } public void setZip5(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(8, Types.VARCHAR); else setString(8, obj); } public void setZip5(Object obj) throws java.sql.SQLException { if(obj == null) setNull(8, Types.VARCHAR); else setObject(8, obj); } public void setZip4(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(9, Types.VARCHAR); else setString(9, obj); } public void setZip4(Object obj) throws java.sql.SQLException { if(obj == null) setNull(9, Types.VARCHAR); else setObject(9, obj); } public void setCountry(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(10, Types.VARCHAR); else setString(10, obj); } public void setCountry(Object obj) throws java.sql.SQLException { if(obj == null) setNull(10, Types.VARCHAR); else setObject(10, obj); } public void setPhone1(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(11, Types.VARCHAR); else setString(11, obj); } public void setPhone1(Object obj) throws java.sql.SQLException { if(obj == null) setNull(11, Types.VARCHAR); else setObject(11, obj); } public void setPhone2(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(12, Types.VARCHAR); else setString(12, obj); } public void setPhone2(Object obj) throws java.sql.SQLException { if(obj == null) setNull(12, Types.VARCHAR); else setObject(12, obj); } int _updateCount; public int executeUpdate() throws java.sql.SQLException { return (_updateCount = super.executeUpdate()); } public int count() { return _updateCount; } public void addBatch() throws java.sql.SQLException { super.addBatch(); } public void clearBatch() throws java.sql.SQLException { super.clearBatch(); } public int[] executeBatch() throws java.sql.SQLException { return super.executeBatch(); } } ---------------------------------------------------------------------- Comment By: Matt Sgarlata (sgarlatm) Date: 2006-03-30 14:44 Message: Logged In: YES user_id=1161666 The error message says "'subscriberID' is not readable in bean com.bcbsma.seebeyond.a2a.InsertSubscriberAddress". Could you please post the class definition for InsertSubscriberAddress? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1460440&group_id=124910 |
From: SourceForge.net <no...@so...> - 2006-03-31 22:15:49
|
Bugs item #1460440, was opened at 2006-03-29 05:25 Message generated for change (Comment added) made by garpinc You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1460440&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Closed Resolution: Fixed Priority: 5 Submitted By: Garry (garpinc) Assigned to: Nobody/Anonymous (nobody) Summary: I get error if dest does not have getter? Initial Comment: net.sf.morph.transform.TransformationException: Error copying source Subscribers (class com.bcbsma.seebeyond.idsuee.elements.SubscriberEligibi lity$Subscribers) to destination com.bcbsma.seebeyond.a2a.InsertSubscriberAddress@26f9e 5 (class com.bcbsma.seebeyond.a2a.InsertSubscriberAddress) at net.sf.morph.transform.transformers.BaseTransformer.co py(BaseTransformer.java:367) at com.bcbsma.seebeyond.ids.eligibility.IDSInsertEligibil ityRecordActivity.performActivity (IDSInsertEligibilityRecordActivity.java:59) at com.eds.seebeyond.common.activity.SeeBeyondActivity.pe rform(SeeBeyondActivity.java:132) at com.bcbsma.seebeyond.ids.eligibility.TestIDSInsertElig ibilityRecordActivity.testSubscriberEligibility (TestIDSInsertEligibilityRecordActivity.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke (Method.java:324) at junit.framework.TestCase.runTest (TestCase.java:154) at junit.framework.TestCase.runBare (TestCase.java:127) at junit.framework.TestResult$1.protect (TestResult.java:106) at junit.framework.TestResult.runProtected (TestResult.java:124) at junit.framework.TestResult.run (TestResult.java:109) at junit.framework.TestCase.run (TestCase.java:118) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .runTests(RemoteTestRunner.java:478) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .run(RemoteTestRunner.java:344) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .main(RemoteTestRunner.java:196) Caused by: net.sf.morph.reflect.ReflectionException: The property 'subscriberID' is not readable in bean com.bcbsma.seebeyond.a2a.InsertSubscriberAddress@26f9e 5 (class com.bcbsma.seebeyond.a2a.InsertSubscriberAddress) using reflector SimpleDelegatingReflector [ListReflector,SortedSetReflector,ArrayReflector,Resul tSetReflector,ContextReflector,MapReflector,DynaBeanRe flector,ObjectReflector] (class net.sf.morph.reflect.reflectors.SimpleDelegatingReflec tor) at net.sf.morph.reflect.reflectors.BaseReflector.get (BaseReflector.java:603) at net.sf.morph.transform.copiers.BasePropertyNameCopier. copyProperty(BasePropertyNameCopier.java:108) at net.sf.morph.transform.copiers.PropertyNameMappingCopi er.copyImpl(PropertyNameMappingCopier.java:122) at net.sf.morph.transform.transformers.BaseTransformer.co py(BaseTransformer.java:360) ... 16 more ---------------------------------------------------------------------- >Comment By: Garry (garpinc) Date: 2006-03-31 22:15 Message: Logged In: YES user_id=712000 I don't have control of my destination object so I would need morph to look at the source type and prefer that over object if it exists. ---------------------------------------------------------------------- Comment By: Matt Sgarlata (sgarlatm) Date: 2006-03-31 19:07 Message: Logged In: YES user_id=1161666 Fixed in Morph 1.0.1. However, there is another problem you are likely to encounter with your code. The issue is that you have multiple setters for the subscriberID property. Morph doesn't really have a good way of determining which one to use so it's going to pick at random, and it may make the wrong choice. The solution is to make a single setSubscriberID(Object obj) method that does a test like this if (obj instance of String) { // logic here } else { } So basically combine your setters into a single setter. ---------------------------------------------------------------------- Comment By: Garry (garpinc) Date: 2006-03-30 21:18 Message: Logged In: YES user_id=712000 As indicated there are no getters for SubscriberID only setters. Since this is the destination object there should be no need to have a getter. In my case this is a one way mapping. ---------------------------------------------------------------------- Comment By: Garry (garpinc) Date: 2006-03-30 21:14 Message: Logged In: YES user_id=712000 package com.bcbsma.seebeyond.a2a; import java.sql.*; import com.stc.eways.jdbcx.*; public class InsertSubscriberAddress extends PreparedStatementAgent { public InsertSubscriberAddress(Session session) { super(session, "INSERT INTO TBL_SUBSCRIBER_ADDRESS (SUBSCRIBER_ID, GROUP_NUMBER, TYPE_CODE, ADDRESS1, ADDRESS2, CITY, STATE, ZIP_5, ZIP_4, COUNTRY, PHONE_1, PHONE_2) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)"); } public void setSubscriberID(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(1, Types.VARCHAR); else setString(1, obj); } public void setSubscriberID(Object obj) throws java.sql.SQLException { if(obj == null) setNull(1, Types.VARCHAR); else setObject(1, obj); } public void setGroupNumber(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(2, Types.VARCHAR); else setString(2, obj); } public void setGroupNumber(Object obj) throws java.sql.SQLException { if(obj == null) setNull(2, Types.VARCHAR); else setObject(2, obj); } public void setTypeCode(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(3, Types.VARCHAR); else setString(3, obj); } public void setTypeCode(Object obj) throws java.sql.SQLException { if(obj == null) setNull(3, Types.VARCHAR); else setObject(3, obj); } public void setAddress1(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(4, Types.VARCHAR); else setString(4, obj); } public void setAddress1(Object obj) throws java.sql.SQLException { if(obj == null) setNull(4, Types.VARCHAR); else setObject(4, obj); } public void setAddress2(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(5, Types.VARCHAR); else setString(5, obj); } public void setAddress2(Object obj) throws java.sql.SQLException { if(obj == null) setNull(5, Types.VARCHAR); else setObject(5, obj); } public void setCity(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(6, Types.VARCHAR); else setString(6, obj); } public void setCity(Object obj) throws java.sql.SQLException { if(obj == null) setNull(6, Types.VARCHAR); else setObject(6, obj); } public void setState(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(7, Types.VARCHAR); else setString(7, obj); } public void setState(Object obj) throws java.sql.SQLException { if(obj == null) setNull(7, Types.VARCHAR); else setObject(7, obj); } public void setZip5(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(8, Types.VARCHAR); else setString(8, obj); } public void setZip5(Object obj) throws java.sql.SQLException { if(obj == null) setNull(8, Types.VARCHAR); else setObject(8, obj); } public void setZip4(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(9, Types.VARCHAR); else setString(9, obj); } public void setZip4(Object obj) throws java.sql.SQLException { if(obj == null) setNull(9, Types.VARCHAR); else setObject(9, obj); } public void setCountry(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(10, Types.VARCHAR); else setString(10, obj); } public void setCountry(Object obj) throws java.sql.SQLException { if(obj == null) setNull(10, Types.VARCHAR); else setObject(10, obj); } public void setPhone1(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(11, Types.VARCHAR); else setString(11, obj); } public void setPhone1(Object obj) throws java.sql.SQLException { if(obj == null) setNull(11, Types.VARCHAR); else setObject(11, obj); } public void setPhone2(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(12, Types.VARCHAR); else setString(12, obj); } public void setPhone2(Object obj) throws java.sql.SQLException { if(obj == null) setNull(12, Types.VARCHAR); else setObject(12, obj); } int _updateCount; public int executeUpdate() throws java.sql.SQLException { return (_updateCount = super.executeUpdate()); } public int count() { return _updateCount; } public void addBatch() throws java.sql.SQLException { super.addBatch(); } public void clearBatch() throws java.sql.SQLException { super.clearBatch(); } public int[] executeBatch() throws java.sql.SQLException { return super.executeBatch(); } } ---------------------------------------------------------------------- Comment By: Matt Sgarlata (sgarlatm) Date: 2006-03-30 14:44 Message: Logged In: YES user_id=1161666 The error message says "'subscriberID' is not readable in bean com.bcbsma.seebeyond.a2a.InsertSubscriberAddress". Could you please post the class definition for InsertSubscriberAddress? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1460440&group_id=124910 |
From: SourceForge.net <no...@so...> - 2006-03-31 19:07:55
|
Bugs item #1460440, was opened at 2006-03-29 00:25 Message generated for change (Settings changed) made by sgarlatm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1460440&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Garry (garpinc) Assigned to: Nobody/Anonymous (nobody) Summary: I get error if dest does not have getter? Initial Comment: net.sf.morph.transform.TransformationException: Error copying source Subscribers (class com.bcbsma.seebeyond.idsuee.elements.SubscriberEligibi lity$Subscribers) to destination com.bcbsma.seebeyond.a2a.InsertSubscriberAddress@26f9e 5 (class com.bcbsma.seebeyond.a2a.InsertSubscriberAddress) at net.sf.morph.transform.transformers.BaseTransformer.co py(BaseTransformer.java:367) at com.bcbsma.seebeyond.ids.eligibility.IDSInsertEligibil ityRecordActivity.performActivity (IDSInsertEligibilityRecordActivity.java:59) at com.eds.seebeyond.common.activity.SeeBeyondActivity.pe rform(SeeBeyondActivity.java:132) at com.bcbsma.seebeyond.ids.eligibility.TestIDSInsertElig ibilityRecordActivity.testSubscriberEligibility (TestIDSInsertEligibilityRecordActivity.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke (Method.java:324) at junit.framework.TestCase.runTest (TestCase.java:154) at junit.framework.TestCase.runBare (TestCase.java:127) at junit.framework.TestResult$1.protect (TestResult.java:106) at junit.framework.TestResult.runProtected (TestResult.java:124) at junit.framework.TestResult.run (TestResult.java:109) at junit.framework.TestCase.run (TestCase.java:118) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .runTests(RemoteTestRunner.java:478) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .run(RemoteTestRunner.java:344) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .main(RemoteTestRunner.java:196) Caused by: net.sf.morph.reflect.ReflectionException: The property 'subscriberID' is not readable in bean com.bcbsma.seebeyond.a2a.InsertSubscriberAddress@26f9e 5 (class com.bcbsma.seebeyond.a2a.InsertSubscriberAddress) using reflector SimpleDelegatingReflector [ListReflector,SortedSetReflector,ArrayReflector,Resul tSetReflector,ContextReflector,MapReflector,DynaBeanRe flector,ObjectReflector] (class net.sf.morph.reflect.reflectors.SimpleDelegatingReflec tor) at net.sf.morph.reflect.reflectors.BaseReflector.get (BaseReflector.java:603) at net.sf.morph.transform.copiers.BasePropertyNameCopier. copyProperty(BasePropertyNameCopier.java:108) at net.sf.morph.transform.copiers.PropertyNameMappingCopi er.copyImpl(PropertyNameMappingCopier.java:122) at net.sf.morph.transform.transformers.BaseTransformer.co py(BaseTransformer.java:360) ... 16 more ---------------------------------------------------------------------- Comment By: Matt Sgarlata (sgarlatm) Date: 2006-03-31 14:07 Message: Logged In: YES user_id=1161666 Fixed in Morph 1.0.1. However, there is another problem you are likely to encounter with your code. The issue is that you have multiple setters for the subscriberID property. Morph doesn't really have a good way of determining which one to use so it's going to pick at random, and it may make the wrong choice. The solution is to make a single setSubscriberID(Object obj) method that does a test like this if (obj instance of String) { // logic here } else { } So basically combine your setters into a single setter. ---------------------------------------------------------------------- Comment By: Garry (garpinc) Date: 2006-03-30 16:18 Message: Logged In: YES user_id=712000 As indicated there are no getters for SubscriberID only setters. Since this is the destination object there should be no need to have a getter. In my case this is a one way mapping. ---------------------------------------------------------------------- Comment By: Garry (garpinc) Date: 2006-03-30 16:14 Message: Logged In: YES user_id=712000 package com.bcbsma.seebeyond.a2a; import java.sql.*; import com.stc.eways.jdbcx.*; public class InsertSubscriberAddress extends PreparedStatementAgent { public InsertSubscriberAddress(Session session) { super(session, "INSERT INTO TBL_SUBSCRIBER_ADDRESS (SUBSCRIBER_ID, GROUP_NUMBER, TYPE_CODE, ADDRESS1, ADDRESS2, CITY, STATE, ZIP_5, ZIP_4, COUNTRY, PHONE_1, PHONE_2) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)"); } public void setSubscriberID(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(1, Types.VARCHAR); else setString(1, obj); } public void setSubscriberID(Object obj) throws java.sql.SQLException { if(obj == null) setNull(1, Types.VARCHAR); else setObject(1, obj); } public void setGroupNumber(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(2, Types.VARCHAR); else setString(2, obj); } public void setGroupNumber(Object obj) throws java.sql.SQLException { if(obj == null) setNull(2, Types.VARCHAR); else setObject(2, obj); } public void setTypeCode(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(3, Types.VARCHAR); else setString(3, obj); } public void setTypeCode(Object obj) throws java.sql.SQLException { if(obj == null) setNull(3, Types.VARCHAR); else setObject(3, obj); } public void setAddress1(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(4, Types.VARCHAR); else setString(4, obj); } public void setAddress1(Object obj) throws java.sql.SQLException { if(obj == null) setNull(4, Types.VARCHAR); else setObject(4, obj); } public void setAddress2(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(5, Types.VARCHAR); else setString(5, obj); } public void setAddress2(Object obj) throws java.sql.SQLException { if(obj == null) setNull(5, Types.VARCHAR); else setObject(5, obj); } public void setCity(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(6, Types.VARCHAR); else setString(6, obj); } public void setCity(Object obj) throws java.sql.SQLException { if(obj == null) setNull(6, Types.VARCHAR); else setObject(6, obj); } public void setState(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(7, Types.VARCHAR); else setString(7, obj); } public void setState(Object obj) throws java.sql.SQLException { if(obj == null) setNull(7, Types.VARCHAR); else setObject(7, obj); } public void setZip5(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(8, Types.VARCHAR); else setString(8, obj); } public void setZip5(Object obj) throws java.sql.SQLException { if(obj == null) setNull(8, Types.VARCHAR); else setObject(8, obj); } public void setZip4(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(9, Types.VARCHAR); else setString(9, obj); } public void setZip4(Object obj) throws java.sql.SQLException { if(obj == null) setNull(9, Types.VARCHAR); else setObject(9, obj); } public void setCountry(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(10, Types.VARCHAR); else setString(10, obj); } public void setCountry(Object obj) throws java.sql.SQLException { if(obj == null) setNull(10, Types.VARCHAR); else setObject(10, obj); } public void setPhone1(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(11, Types.VARCHAR); else setString(11, obj); } public void setPhone1(Object obj) throws java.sql.SQLException { if(obj == null) setNull(11, Types.VARCHAR); else setObject(11, obj); } public void setPhone2(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(12, Types.VARCHAR); else setString(12, obj); } public void setPhone2(Object obj) throws java.sql.SQLException { if(obj == null) setNull(12, Types.VARCHAR); else setObject(12, obj); } int _updateCount; public int executeUpdate() throws java.sql.SQLException { return (_updateCount = super.executeUpdate()); } public int count() { return _updateCount; } public void addBatch() throws java.sql.SQLException { super.addBatch(); } public void clearBatch() throws java.sql.SQLException { super.clearBatch(); } public int[] executeBatch() throws java.sql.SQLException { return super.executeBatch(); } } ---------------------------------------------------------------------- Comment By: Matt Sgarlata (sgarlatm) Date: 2006-03-30 09:44 Message: Logged In: YES user_id=1161666 The error message says "'subscriberID' is not readable in bean com.bcbsma.seebeyond.a2a.InsertSubscriberAddress". Could you please post the class definition for InsertSubscriberAddress? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1460440&group_id=124910 |
From: SourceForge.net <no...@so...> - 2006-03-31 19:07:39
|
Bugs item #1460440, was opened at 2006-03-29 00:25 Message generated for change (Comment added) made by sgarlatm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1460440&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Garry (garpinc) Assigned to: Nobody/Anonymous (nobody) Summary: I get error if dest does not have getter? Initial Comment: net.sf.morph.transform.TransformationException: Error copying source Subscribers (class com.bcbsma.seebeyond.idsuee.elements.SubscriberEligibi lity$Subscribers) to destination com.bcbsma.seebeyond.a2a.InsertSubscriberAddress@26f9e 5 (class com.bcbsma.seebeyond.a2a.InsertSubscriberAddress) at net.sf.morph.transform.transformers.BaseTransformer.co py(BaseTransformer.java:367) at com.bcbsma.seebeyond.ids.eligibility.IDSInsertEligibil ityRecordActivity.performActivity (IDSInsertEligibilityRecordActivity.java:59) at com.eds.seebeyond.common.activity.SeeBeyondActivity.pe rform(SeeBeyondActivity.java:132) at com.bcbsma.seebeyond.ids.eligibility.TestIDSInsertElig ibilityRecordActivity.testSubscriberEligibility (TestIDSInsertEligibilityRecordActivity.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke (Method.java:324) at junit.framework.TestCase.runTest (TestCase.java:154) at junit.framework.TestCase.runBare (TestCase.java:127) at junit.framework.TestResult$1.protect (TestResult.java:106) at junit.framework.TestResult.runProtected (TestResult.java:124) at junit.framework.TestResult.run (TestResult.java:109) at junit.framework.TestCase.run (TestCase.java:118) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .runTests(RemoteTestRunner.java:478) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .run(RemoteTestRunner.java:344) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .main(RemoteTestRunner.java:196) Caused by: net.sf.morph.reflect.ReflectionException: The property 'subscriberID' is not readable in bean com.bcbsma.seebeyond.a2a.InsertSubscriberAddress@26f9e 5 (class com.bcbsma.seebeyond.a2a.InsertSubscriberAddress) using reflector SimpleDelegatingReflector [ListReflector,SortedSetReflector,ArrayReflector,Resul tSetReflector,ContextReflector,MapReflector,DynaBeanRe flector,ObjectReflector] (class net.sf.morph.reflect.reflectors.SimpleDelegatingReflec tor) at net.sf.morph.reflect.reflectors.BaseReflector.get (BaseReflector.java:603) at net.sf.morph.transform.copiers.BasePropertyNameCopier. copyProperty(BasePropertyNameCopier.java:108) at net.sf.morph.transform.copiers.PropertyNameMappingCopi er.copyImpl(PropertyNameMappingCopier.java:122) at net.sf.morph.transform.transformers.BaseTransformer.co py(BaseTransformer.java:360) ... 16 more ---------------------------------------------------------------------- >Comment By: Matt Sgarlata (sgarlatm) Date: 2006-03-31 14:07 Message: Logged In: YES user_id=1161666 Fixed in Morph 1.0.1. However, there is another problem you are likely to encounter with your code. The issue is that you have multiple setters for the subscriberID property. Morph doesn't really have a good way of determining which one to use so it's going to pick at random, and it may make the wrong choice. The solution is to make a single setSubscriberID(Object obj) method that does a test like this if (obj instance of String) { // logic here } else { } So basically combine your setters into a single setter. ---------------------------------------------------------------------- Comment By: Garry (garpinc) Date: 2006-03-30 16:18 Message: Logged In: YES user_id=712000 As indicated there are no getters for SubscriberID only setters. Since this is the destination object there should be no need to have a getter. In my case this is a one way mapping. ---------------------------------------------------------------------- Comment By: Garry (garpinc) Date: 2006-03-30 16:14 Message: Logged In: YES user_id=712000 package com.bcbsma.seebeyond.a2a; import java.sql.*; import com.stc.eways.jdbcx.*; public class InsertSubscriberAddress extends PreparedStatementAgent { public InsertSubscriberAddress(Session session) { super(session, "INSERT INTO TBL_SUBSCRIBER_ADDRESS (SUBSCRIBER_ID, GROUP_NUMBER, TYPE_CODE, ADDRESS1, ADDRESS2, CITY, STATE, ZIP_5, ZIP_4, COUNTRY, PHONE_1, PHONE_2) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)"); } public void setSubscriberID(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(1, Types.VARCHAR); else setString(1, obj); } public void setSubscriberID(Object obj) throws java.sql.SQLException { if(obj == null) setNull(1, Types.VARCHAR); else setObject(1, obj); } public void setGroupNumber(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(2, Types.VARCHAR); else setString(2, obj); } public void setGroupNumber(Object obj) throws java.sql.SQLException { if(obj == null) setNull(2, Types.VARCHAR); else setObject(2, obj); } public void setTypeCode(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(3, Types.VARCHAR); else setString(3, obj); } public void setTypeCode(Object obj) throws java.sql.SQLException { if(obj == null) setNull(3, Types.VARCHAR); else setObject(3, obj); } public void setAddress1(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(4, Types.VARCHAR); else setString(4, obj); } public void setAddress1(Object obj) throws java.sql.SQLException { if(obj == null) setNull(4, Types.VARCHAR); else setObject(4, obj); } public void setAddress2(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(5, Types.VARCHAR); else setString(5, obj); } public void setAddress2(Object obj) throws java.sql.SQLException { if(obj == null) setNull(5, Types.VARCHAR); else setObject(5, obj); } public void setCity(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(6, Types.VARCHAR); else setString(6, obj); } public void setCity(Object obj) throws java.sql.SQLException { if(obj == null) setNull(6, Types.VARCHAR); else setObject(6, obj); } public void setState(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(7, Types.VARCHAR); else setString(7, obj); } public void setState(Object obj) throws java.sql.SQLException { if(obj == null) setNull(7, Types.VARCHAR); else setObject(7, obj); } public void setZip5(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(8, Types.VARCHAR); else setString(8, obj); } public void setZip5(Object obj) throws java.sql.SQLException { if(obj == null) setNull(8, Types.VARCHAR); else setObject(8, obj); } public void setZip4(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(9, Types.VARCHAR); else setString(9, obj); } public void setZip4(Object obj) throws java.sql.SQLException { if(obj == null) setNull(9, Types.VARCHAR); else setObject(9, obj); } public void setCountry(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(10, Types.VARCHAR); else setString(10, obj); } public void setCountry(Object obj) throws java.sql.SQLException { if(obj == null) setNull(10, Types.VARCHAR); else setObject(10, obj); } public void setPhone1(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(11, Types.VARCHAR); else setString(11, obj); } public void setPhone1(Object obj) throws java.sql.SQLException { if(obj == null) setNull(11, Types.VARCHAR); else setObject(11, obj); } public void setPhone2(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(12, Types.VARCHAR); else setString(12, obj); } public void setPhone2(Object obj) throws java.sql.SQLException { if(obj == null) setNull(12, Types.VARCHAR); else setObject(12, obj); } int _updateCount; public int executeUpdate() throws java.sql.SQLException { return (_updateCount = super.executeUpdate()); } public int count() { return _updateCount; } public void addBatch() throws java.sql.SQLException { super.addBatch(); } public void clearBatch() throws java.sql.SQLException { super.clearBatch(); } public int[] executeBatch() throws java.sql.SQLException { return super.executeBatch(); } } ---------------------------------------------------------------------- Comment By: Matt Sgarlata (sgarlatm) Date: 2006-03-30 09:44 Message: Logged In: YES user_id=1161666 The error message says "'subscriberID' is not readable in bean com.bcbsma.seebeyond.a2a.InsertSubscriberAddress". Could you please post the class definition for InsertSubscriberAddress? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1460440&group_id=124910 |
From: SourceForge.net <no...@so...> - 2006-03-30 21:18:09
|
Bugs item #1460440, was opened at 2006-03-29 05:25 Message generated for change (Comment added) made by garpinc You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1460440&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Garry (garpinc) Assigned to: Nobody/Anonymous (nobody) Summary: I get error if dest does not have getter? Initial Comment: net.sf.morph.transform.TransformationException: Error copying source Subscribers (class com.bcbsma.seebeyond.idsuee.elements.SubscriberEligibi lity$Subscribers) to destination com.bcbsma.seebeyond.a2a.InsertSubscriberAddress@26f9e 5 (class com.bcbsma.seebeyond.a2a.InsertSubscriberAddress) at net.sf.morph.transform.transformers.BaseTransformer.co py(BaseTransformer.java:367) at com.bcbsma.seebeyond.ids.eligibility.IDSInsertEligibil ityRecordActivity.performActivity (IDSInsertEligibilityRecordActivity.java:59) at com.eds.seebeyond.common.activity.SeeBeyondActivity.pe rform(SeeBeyondActivity.java:132) at com.bcbsma.seebeyond.ids.eligibility.TestIDSInsertElig ibilityRecordActivity.testSubscriberEligibility (TestIDSInsertEligibilityRecordActivity.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke (Method.java:324) at junit.framework.TestCase.runTest (TestCase.java:154) at junit.framework.TestCase.runBare (TestCase.java:127) at junit.framework.TestResult$1.protect (TestResult.java:106) at junit.framework.TestResult.runProtected (TestResult.java:124) at junit.framework.TestResult.run (TestResult.java:109) at junit.framework.TestCase.run (TestCase.java:118) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .runTests(RemoteTestRunner.java:478) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .run(RemoteTestRunner.java:344) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .main(RemoteTestRunner.java:196) Caused by: net.sf.morph.reflect.ReflectionException: The property 'subscriberID' is not readable in bean com.bcbsma.seebeyond.a2a.InsertSubscriberAddress@26f9e 5 (class com.bcbsma.seebeyond.a2a.InsertSubscriberAddress) using reflector SimpleDelegatingReflector [ListReflector,SortedSetReflector,ArrayReflector,Resul tSetReflector,ContextReflector,MapReflector,DynaBeanRe flector,ObjectReflector] (class net.sf.morph.reflect.reflectors.SimpleDelegatingReflec tor) at net.sf.morph.reflect.reflectors.BaseReflector.get (BaseReflector.java:603) at net.sf.morph.transform.copiers.BasePropertyNameCopier. copyProperty(BasePropertyNameCopier.java:108) at net.sf.morph.transform.copiers.PropertyNameMappingCopi er.copyImpl(PropertyNameMappingCopier.java:122) at net.sf.morph.transform.transformers.BaseTransformer.co py(BaseTransformer.java:360) ... 16 more ---------------------------------------------------------------------- >Comment By: Garry (garpinc) Date: 2006-03-30 21:18 Message: Logged In: YES user_id=712000 As indicated there are no getters for SubscriberID only setters. Since this is the destination object there should be no need to have a getter. In my case this is a one way mapping. ---------------------------------------------------------------------- Comment By: Garry (garpinc) Date: 2006-03-30 21:14 Message: Logged In: YES user_id=712000 package com.bcbsma.seebeyond.a2a; import java.sql.*; import com.stc.eways.jdbcx.*; public class InsertSubscriberAddress extends PreparedStatementAgent { public InsertSubscriberAddress(Session session) { super(session, "INSERT INTO TBL_SUBSCRIBER_ADDRESS (SUBSCRIBER_ID, GROUP_NUMBER, TYPE_CODE, ADDRESS1, ADDRESS2, CITY, STATE, ZIP_5, ZIP_4, COUNTRY, PHONE_1, PHONE_2) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)"); } public void setSubscriberID(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(1, Types.VARCHAR); else setString(1, obj); } public void setSubscriberID(Object obj) throws java.sql.SQLException { if(obj == null) setNull(1, Types.VARCHAR); else setObject(1, obj); } public void setGroupNumber(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(2, Types.VARCHAR); else setString(2, obj); } public void setGroupNumber(Object obj) throws java.sql.SQLException { if(obj == null) setNull(2, Types.VARCHAR); else setObject(2, obj); } public void setTypeCode(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(3, Types.VARCHAR); else setString(3, obj); } public void setTypeCode(Object obj) throws java.sql.SQLException { if(obj == null) setNull(3, Types.VARCHAR); else setObject(3, obj); } public void setAddress1(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(4, Types.VARCHAR); else setString(4, obj); } public void setAddress1(Object obj) throws java.sql.SQLException { if(obj == null) setNull(4, Types.VARCHAR); else setObject(4, obj); } public void setAddress2(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(5, Types.VARCHAR); else setString(5, obj); } public void setAddress2(Object obj) throws java.sql.SQLException { if(obj == null) setNull(5, Types.VARCHAR); else setObject(5, obj); } public void setCity(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(6, Types.VARCHAR); else setString(6, obj); } public void setCity(Object obj) throws java.sql.SQLException { if(obj == null) setNull(6, Types.VARCHAR); else setObject(6, obj); } public void setState(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(7, Types.VARCHAR); else setString(7, obj); } public void setState(Object obj) throws java.sql.SQLException { if(obj == null) setNull(7, Types.VARCHAR); else setObject(7, obj); } public void setZip5(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(8, Types.VARCHAR); else setString(8, obj); } public void setZip5(Object obj) throws java.sql.SQLException { if(obj == null) setNull(8, Types.VARCHAR); else setObject(8, obj); } public void setZip4(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(9, Types.VARCHAR); else setString(9, obj); } public void setZip4(Object obj) throws java.sql.SQLException { if(obj == null) setNull(9, Types.VARCHAR); else setObject(9, obj); } public void setCountry(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(10, Types.VARCHAR); else setString(10, obj); } public void setCountry(Object obj) throws java.sql.SQLException { if(obj == null) setNull(10, Types.VARCHAR); else setObject(10, obj); } public void setPhone1(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(11, Types.VARCHAR); else setString(11, obj); } public void setPhone1(Object obj) throws java.sql.SQLException { if(obj == null) setNull(11, Types.VARCHAR); else setObject(11, obj); } public void setPhone2(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(12, Types.VARCHAR); else setString(12, obj); } public void setPhone2(Object obj) throws java.sql.SQLException { if(obj == null) setNull(12, Types.VARCHAR); else setObject(12, obj); } int _updateCount; public int executeUpdate() throws java.sql.SQLException { return (_updateCount = super.executeUpdate()); } public int count() { return _updateCount; } public void addBatch() throws java.sql.SQLException { super.addBatch(); } public void clearBatch() throws java.sql.SQLException { super.clearBatch(); } public int[] executeBatch() throws java.sql.SQLException { return super.executeBatch(); } } ---------------------------------------------------------------------- Comment By: Matt Sgarlata (sgarlatm) Date: 2006-03-30 14:44 Message: Logged In: YES user_id=1161666 The error message says "'subscriberID' is not readable in bean com.bcbsma.seebeyond.a2a.InsertSubscriberAddress". Could you please post the class definition for InsertSubscriberAddress? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1460440&group_id=124910 |
From: SourceForge.net <no...@so...> - 2006-03-30 21:14:08
|
Bugs item #1460440, was opened at 2006-03-29 05:25 Message generated for change (Comment added) made by garpinc You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1460440&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Garry (garpinc) Assigned to: Nobody/Anonymous (nobody) Summary: I get error if dest does not have getter? Initial Comment: net.sf.morph.transform.TransformationException: Error copying source Subscribers (class com.bcbsma.seebeyond.idsuee.elements.SubscriberEligibi lity$Subscribers) to destination com.bcbsma.seebeyond.a2a.InsertSubscriberAddress@26f9e 5 (class com.bcbsma.seebeyond.a2a.InsertSubscriberAddress) at net.sf.morph.transform.transformers.BaseTransformer.co py(BaseTransformer.java:367) at com.bcbsma.seebeyond.ids.eligibility.IDSInsertEligibil ityRecordActivity.performActivity (IDSInsertEligibilityRecordActivity.java:59) at com.eds.seebeyond.common.activity.SeeBeyondActivity.pe rform(SeeBeyondActivity.java:132) at com.bcbsma.seebeyond.ids.eligibility.TestIDSInsertElig ibilityRecordActivity.testSubscriberEligibility (TestIDSInsertEligibilityRecordActivity.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke (Method.java:324) at junit.framework.TestCase.runTest (TestCase.java:154) at junit.framework.TestCase.runBare (TestCase.java:127) at junit.framework.TestResult$1.protect (TestResult.java:106) at junit.framework.TestResult.runProtected (TestResult.java:124) at junit.framework.TestResult.run (TestResult.java:109) at junit.framework.TestCase.run (TestCase.java:118) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .runTests(RemoteTestRunner.java:478) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .run(RemoteTestRunner.java:344) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .main(RemoteTestRunner.java:196) Caused by: net.sf.morph.reflect.ReflectionException: The property 'subscriberID' is not readable in bean com.bcbsma.seebeyond.a2a.InsertSubscriberAddress@26f9e 5 (class com.bcbsma.seebeyond.a2a.InsertSubscriberAddress) using reflector SimpleDelegatingReflector [ListReflector,SortedSetReflector,ArrayReflector,Resul tSetReflector,ContextReflector,MapReflector,DynaBeanRe flector,ObjectReflector] (class net.sf.morph.reflect.reflectors.SimpleDelegatingReflec tor) at net.sf.morph.reflect.reflectors.BaseReflector.get (BaseReflector.java:603) at net.sf.morph.transform.copiers.BasePropertyNameCopier. copyProperty(BasePropertyNameCopier.java:108) at net.sf.morph.transform.copiers.PropertyNameMappingCopi er.copyImpl(PropertyNameMappingCopier.java:122) at net.sf.morph.transform.transformers.BaseTransformer.co py(BaseTransformer.java:360) ... 16 more ---------------------------------------------------------------------- >Comment By: Garry (garpinc) Date: 2006-03-30 21:14 Message: Logged In: YES user_id=712000 package com.bcbsma.seebeyond.a2a; import java.sql.*; import com.stc.eways.jdbcx.*; public class InsertSubscriberAddress extends PreparedStatementAgent { public InsertSubscriberAddress(Session session) { super(session, "INSERT INTO TBL_SUBSCRIBER_ADDRESS (SUBSCRIBER_ID, GROUP_NUMBER, TYPE_CODE, ADDRESS1, ADDRESS2, CITY, STATE, ZIP_5, ZIP_4, COUNTRY, PHONE_1, PHONE_2) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)"); } public void setSubscriberID(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(1, Types.VARCHAR); else setString(1, obj); } public void setSubscriberID(Object obj) throws java.sql.SQLException { if(obj == null) setNull(1, Types.VARCHAR); else setObject(1, obj); } public void setGroupNumber(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(2, Types.VARCHAR); else setString(2, obj); } public void setGroupNumber(Object obj) throws java.sql.SQLException { if(obj == null) setNull(2, Types.VARCHAR); else setObject(2, obj); } public void setTypeCode(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(3, Types.VARCHAR); else setString(3, obj); } public void setTypeCode(Object obj) throws java.sql.SQLException { if(obj == null) setNull(3, Types.VARCHAR); else setObject(3, obj); } public void setAddress1(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(4, Types.VARCHAR); else setString(4, obj); } public void setAddress1(Object obj) throws java.sql.SQLException { if(obj == null) setNull(4, Types.VARCHAR); else setObject(4, obj); } public void setAddress2(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(5, Types.VARCHAR); else setString(5, obj); } public void setAddress2(Object obj) throws java.sql.SQLException { if(obj == null) setNull(5, Types.VARCHAR); else setObject(5, obj); } public void setCity(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(6, Types.VARCHAR); else setString(6, obj); } public void setCity(Object obj) throws java.sql.SQLException { if(obj == null) setNull(6, Types.VARCHAR); else setObject(6, obj); } public void setState(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(7, Types.VARCHAR); else setString(7, obj); } public void setState(Object obj) throws java.sql.SQLException { if(obj == null) setNull(7, Types.VARCHAR); else setObject(7, obj); } public void setZip5(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(8, Types.VARCHAR); else setString(8, obj); } public void setZip5(Object obj) throws java.sql.SQLException { if(obj == null) setNull(8, Types.VARCHAR); else setObject(8, obj); } public void setZip4(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(9, Types.VARCHAR); else setString(9, obj); } public void setZip4(Object obj) throws java.sql.SQLException { if(obj == null) setNull(9, Types.VARCHAR); else setObject(9, obj); } public void setCountry(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(10, Types.VARCHAR); else setString(10, obj); } public void setCountry(Object obj) throws java.sql.SQLException { if(obj == null) setNull(10, Types.VARCHAR); else setObject(10, obj); } public void setPhone1(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(11, Types.VARCHAR); else setString(11, obj); } public void setPhone1(Object obj) throws java.sql.SQLException { if(obj == null) setNull(11, Types.VARCHAR); else setObject(11, obj); } public void setPhone2(java.lang.String obj) throws java.sql.SQLException { if(obj == null) setNull(12, Types.VARCHAR); else setString(12, obj); } public void setPhone2(Object obj) throws java.sql.SQLException { if(obj == null) setNull(12, Types.VARCHAR); else setObject(12, obj); } int _updateCount; public int executeUpdate() throws java.sql.SQLException { return (_updateCount = super.executeUpdate()); } public int count() { return _updateCount; } public void addBatch() throws java.sql.SQLException { super.addBatch(); } public void clearBatch() throws java.sql.SQLException { super.clearBatch(); } public int[] executeBatch() throws java.sql.SQLException { return super.executeBatch(); } } ---------------------------------------------------------------------- Comment By: Matt Sgarlata (sgarlatm) Date: 2006-03-30 14:44 Message: Logged In: YES user_id=1161666 The error message says "'subscriberID' is not readable in bean com.bcbsma.seebeyond.a2a.InsertSubscriberAddress". Could you please post the class definition for InsertSubscriberAddress? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1460440&group_id=124910 |
From: SourceForge.net <no...@so...> - 2006-03-30 14:44:17
|
Bugs item #1460440, was opened at 2006-03-29 00:25 Message generated for change (Comment added) made by sgarlatm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1460440&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Garry (garpinc) Assigned to: Nobody/Anonymous (nobody) Summary: I get error if dest does not have getter? Initial Comment: net.sf.morph.transform.TransformationException: Error copying source Subscribers (class com.bcbsma.seebeyond.idsuee.elements.SubscriberEligibi lity$Subscribers) to destination com.bcbsma.seebeyond.a2a.InsertSubscriberAddress@26f9e 5 (class com.bcbsma.seebeyond.a2a.InsertSubscriberAddress) at net.sf.morph.transform.transformers.BaseTransformer.co py(BaseTransformer.java:367) at com.bcbsma.seebeyond.ids.eligibility.IDSInsertEligibil ityRecordActivity.performActivity (IDSInsertEligibilityRecordActivity.java:59) at com.eds.seebeyond.common.activity.SeeBeyondActivity.pe rform(SeeBeyondActivity.java:132) at com.bcbsma.seebeyond.ids.eligibility.TestIDSInsertElig ibilityRecordActivity.testSubscriberEligibility (TestIDSInsertEligibilityRecordActivity.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke (Method.java:324) at junit.framework.TestCase.runTest (TestCase.java:154) at junit.framework.TestCase.runBare (TestCase.java:127) at junit.framework.TestResult$1.protect (TestResult.java:106) at junit.framework.TestResult.runProtected (TestResult.java:124) at junit.framework.TestResult.run (TestResult.java:109) at junit.framework.TestCase.run (TestCase.java:118) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .runTests(RemoteTestRunner.java:478) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .run(RemoteTestRunner.java:344) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .main(RemoteTestRunner.java:196) Caused by: net.sf.morph.reflect.ReflectionException: The property 'subscriberID' is not readable in bean com.bcbsma.seebeyond.a2a.InsertSubscriberAddress@26f9e 5 (class com.bcbsma.seebeyond.a2a.InsertSubscriberAddress) using reflector SimpleDelegatingReflector [ListReflector,SortedSetReflector,ArrayReflector,Resul tSetReflector,ContextReflector,MapReflector,DynaBeanRe flector,ObjectReflector] (class net.sf.morph.reflect.reflectors.SimpleDelegatingReflec tor) at net.sf.morph.reflect.reflectors.BaseReflector.get (BaseReflector.java:603) at net.sf.morph.transform.copiers.BasePropertyNameCopier. copyProperty(BasePropertyNameCopier.java:108) at net.sf.morph.transform.copiers.PropertyNameMappingCopi er.copyImpl(PropertyNameMappingCopier.java:122) at net.sf.morph.transform.transformers.BaseTransformer.co py(BaseTransformer.java:360) ... 16 more ---------------------------------------------------------------------- >Comment By: Matt Sgarlata (sgarlatm) Date: 2006-03-30 09:44 Message: Logged In: YES user_id=1161666 The error message says "'subscriberID' is not readable in bean com.bcbsma.seebeyond.a2a.InsertSubscriberAddress". Could you please post the class definition for InsertSubscriberAddress? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1460440&group_id=124910 |
From: SourceForge.net <no...@so...> - 2006-03-29 05:25:27
|
Bugs item #1460440, was opened at 2006-03-29 05:25 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1460440&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Garry (garpinc) Assigned to: Nobody/Anonymous (nobody) Summary: I get error if dest does not have getter? Initial Comment: net.sf.morph.transform.TransformationException: Error copying source Subscribers (class com.bcbsma.seebeyond.idsuee.elements.SubscriberEligibi lity$Subscribers) to destination com.bcbsma.seebeyond.a2a.InsertSubscriberAddress@26f9e 5 (class com.bcbsma.seebeyond.a2a.InsertSubscriberAddress) at net.sf.morph.transform.transformers.BaseTransformer.co py(BaseTransformer.java:367) at com.bcbsma.seebeyond.ids.eligibility.IDSInsertEligibil ityRecordActivity.performActivity (IDSInsertEligibilityRecordActivity.java:59) at com.eds.seebeyond.common.activity.SeeBeyondActivity.pe rform(SeeBeyondActivity.java:132) at com.bcbsma.seebeyond.ids.eligibility.TestIDSInsertElig ibilityRecordActivity.testSubscriberEligibility (TestIDSInsertEligibilityRecordActivity.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke (Method.java:324) at junit.framework.TestCase.runTest (TestCase.java:154) at junit.framework.TestCase.runBare (TestCase.java:127) at junit.framework.TestResult$1.protect (TestResult.java:106) at junit.framework.TestResult.runProtected (TestResult.java:124) at junit.framework.TestResult.run (TestResult.java:109) at junit.framework.TestCase.run (TestCase.java:118) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .runTests(RemoteTestRunner.java:478) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .run(RemoteTestRunner.java:344) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner .main(RemoteTestRunner.java:196) Caused by: net.sf.morph.reflect.ReflectionException: The property 'subscriberID' is not readable in bean com.bcbsma.seebeyond.a2a.InsertSubscriberAddress@26f9e 5 (class com.bcbsma.seebeyond.a2a.InsertSubscriberAddress) using reflector SimpleDelegatingReflector [ListReflector,SortedSetReflector,ArrayReflector,Resul tSetReflector,ContextReflector,MapReflector,DynaBeanRe flector,ObjectReflector] (class net.sf.morph.reflect.reflectors.SimpleDelegatingReflec tor) at net.sf.morph.reflect.reflectors.BaseReflector.get (BaseReflector.java:603) at net.sf.morph.transform.copiers.BasePropertyNameCopier. copyProperty(BasePropertyNameCopier.java:108) at net.sf.morph.transform.copiers.PropertyNameMappingCopi er.copyImpl(PropertyNameMappingCopier.java:122) at net.sf.morph.transform.transformers.BaseTransformer.co py(BaseTransformer.java:360) ... 16 more ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1460440&group_id=124910 |
From: Matt S. <Mat...@wh...> - 2006-02-10 19:13:07
|
I'm pleased to announce that Morph 1.0, the first production-quality release of Morph is now available! Lots of us have been using Morph in production for a long time, but finally with Morph 1.0 the API is stable so you will be able to upgrade more easily to future versions of Morph. Here are the changes in Morph 1.0: * Improved Internationalization support for number to text and text to number conversions * Fixed bug that was causing Morph.convertToDouble and Morph.convertToFloat to only return Integers * Performanced tuned the static Morph conversion methods so that they are nearly as fast as calling the corresponding conversion method manually. For example, 10,000 iterations of Morph.convertToString used to take 6 seconds on my PC compared to only 50 milliseconds for NumberFormat.format. Now Morph only takes around 200 milliseconds. * Removed the BaseConverter and BaseCopier classes because they didn't really do anything. Any existing classes that extend those base classes should extend BaseTransformer instead. Just be sure to |implements DecoratedConverter| to your converts and |implements DecoratedConverter, DecoratedCopier| to your copiers. * Minor updates to the reference documentation * Added the ObjectToClassConverter and corresponding test case Matt |
From: SourceForge.net <no...@so...> - 2006-02-10 16:29:09
|
Bugs item #1121439, was opened at 2005-02-12 13:16 Message generated for change (Comment added) made by sgarlatm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1121439&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Matt Sgarlata (sgarlatm) Assigned to: Nobody/Anonymous (nobody) Summary: ObjectToClassConverter Initial Comment: Any object can be converted to a Class by simply calling its getClass method. Provide such a converter. ---------------------------------------------------------------------- >Comment By: Matt Sgarlata (sgarlatm) Date: 2006-02-10 11:29 Message: Logged In: YES user_id=1161666 Added converter and corresponding test case ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1121439&group_id=124910 |
From: SourceForge.net <no...@so...> - 2006-02-10 16:15:34
|
Bugs item #1121379, was opened at 2005-02-12 11:05 Message generated for change (Settings changed) made by sgarlatm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1121379&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Duplicate Priority: 5 Submitted By: Matt Sgarlata (sgarlatm) Assigned to: Nobody/Anonymous (nobody) Summary: Add a NumberToTextConverter Initial Comment: Create a NumberToTextConverter that has a Format object that can control the format of the converter textual representation of the number. Also, update reference guide and remove note: "(not yet written)". ---------------------------------------------------------------------- >Comment By: Matt Sgarlata (sgarlatm) Date: 2006-02-10 11:15 Message: Logged In: YES user_id=1161666 This is a duplicate of 1121830 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1121379&group_id=124910 |
From: SourceForge.net <no...@so...> - 2006-02-10 16:06:51
|
Bugs item #1121830, was opened at 2005-02-13 10:58 Message generated for change (Comment added) made by sgarlatm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1121830&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 8 Submitted By: Matt Sgarlata (sgarlatm) Assigned to: Nobody/Anonymous (nobody) Summary: NumberToTextConverter Initial Comment: Implement the NumberToTextConverter described in the reference documentation ---------------------------------------------------------------------- >Comment By: Matt Sgarlata (sgarlatm) Date: 2006-02-10 11:06 Message: Logged In: YES user_id=1161666 Implemented the converter and updated reference docs (before the reference docs talked about the thousands separator, but the thousands separator is no longer included in the output of the NumberToTextConverter by default for compatability reasons) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1121830&group_id=124910 |
From: SourceForge.net <no...@so...> - 2006-02-10 15:41:38
|
Bugs item #1148597, was opened at 2005-02-22 14:35 Message generated for change (Comment added) made by sgarlatm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1148597&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 6 Submitted By: Matt Sgarlata (sgarlatm) Assigned to: Nobody/Anonymous (nobody) Summary: Concurrency issues with Delegating____ Initial Comment: If the setComponents method is called by two separate threads on the same DelegatingConverter, the behavior of the invoked converter is arbitrary, since derived information about the components may be in an inconsistent state in the object. Should document this or disallow setting the components property after it has initially been set (kind of like how Chains are "frozen" in the Commons Chain package). ---------------------------------------------------------------------- >Comment By: Matt Sgarlata (sgarlatm) Date: 2006-02-10 10:41 Message: Logged In: YES user_id=1161666 Documentation added to BaseTransformer. BaseReflector does not have a setReflectableClasses so no documentation needed. ---------------------------------------------------------------------- Comment By: Matt Sgarlata (sgarlatm) Date: 2005-12-06 11:34 Message: Logged In: YES user_id=1161666 Fixed by adding the synchronized keyword to the signature of the setComponents method. Fix will appear in build after 0.9.2 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1148597&group_id=124910 |
From: SourceForge.net <no...@so...> - 2006-02-02 19:31:05
|
Bugs item #1410008, was opened at 2006-01-19 11:29 Message generated for change (Comment added) made by sgarlatm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1410008&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Tom Kuo (tkuo) Assigned to: Nobody/Anonymous (nobody) Summary: Conversion of decimal numbers rounds value Initial Comment: If you're using Morph function convertToDouble for conversion of a string value of ".57" morph returns a double number rounded to the nearest int. so in this example it'll return 1.0 ---------------------------------------------------------------------- >Comment By: Matt Sgarlata (sgarlatm) Date: 2006-02-02 14:31 Message: Logged In: YES user_id=1161666 Fixed in Morph 0.9.3 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1410008&group_id=124910 |
From: SourceForge.net <no...@so...> - 2006-01-19 16:29:35
|
Bugs item #1410008, was opened at 2006-01-19 11:29 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1410008&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Tom Kuo (tkuo) Assigned to: Nobody/Anonymous (nobody) Summary: Conversion of decimal numbers rounds value Initial Comment: If you're using Morph function convertToDouble for conversion of a string value of ".57" morph returns a double number rounded to the nearest int. so in this example it'll return 1.0 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1410008&group_id=124910 |
From: Matt S. <sga...@li...> - 2005-12-13 14:37:23
|
Sorry it's been so long since the last Morph release, but I think you'll find the results were worth waiting for. Morph 0.9.2 fixes many bugs since the last release and introduced some API refinements that make the internal workings of the package easier to understand. Many thanks to Eduar Letifov who helped identify and fix some of the nastiest bugs in the previous release. The most major changes in this release are: - Removed the GraphTransformer interface and renamed the graphTransformer property of BaseTransformer back to nestedTransformer - Removed the TraverserConverter and refined the ContainerCopier so that it can convert to Iterators and Enumerators - Added TypeChangingGraphTransformer to assist with transformations of object graphs from a set of domain objects to a set of transfer objects - Various bug fixes |
From: SourceForge.net <no...@so...> - 2005-12-06 16:34:24
|
Bugs item #1148597, was opened at 2005-02-22 14:35 Message generated for change (Comment added) made by sgarlatm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1148597&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 6 Submitted By: Matt Sgarlata (sgarlatm) Assigned to: Nobody/Anonymous (nobody) Summary: Concurrency issues with Delegating____ Initial Comment: If the setComponents method is called by two separate threads on the same DelegatingConverter, the behavior of the invoked converter is arbitrary, since derived information about the components may be in an inconsistent state in the object. Should document this or disallow setting the components property after it has initially been set (kind of like how Chains are "frozen" in the Commons Chain package). ---------------------------------------------------------------------- >Comment By: Matt Sgarlata (sgarlatm) Date: 2005-12-06 11:34 Message: Logged In: YES user_id=1161666 Fixed by adding the synchronized keyword to the signature of the setComponents method. Fix will appear in build after 0.9.2 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1148597&group_id=124910 |
From: SourceForge.net <no...@so...> - 2005-12-06 16:30:46
|
Bugs item #1344515, was opened at 2005-10-31 23:00 Message generated for change (Comment added) made by sgarlatm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1344515&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 9 Submitted By: Eduard Letifov (techtime) Assigned to: Nobody/Anonymous (nobody) Summary: Incorrect handling of empty collections Initial Comment: I am using Morph 0.9.1 When I am transform complex object graphs I encounter a following incorrect behavior: if a source object contains multiple empty collections such as TreeSet in different fields, DelegatingTransformer assumes in .hasVisited() (line 180) that they are equal, and the resulting (transformed) values can be cached and re-used. This is incorrect in previous transformation of an empty collection resulted in an object of a different type (as dictated by corresponding destination type) This causes the invocation chain BaseReflector.set -> ObjectReflector.setImpl -> ReflectionInfo.set -> MethodHolder.invokeMethod to fail, as argument type to mutator is incorrect. Example Test Case: public class ConversionTest extends TestCase { public static class A { } public static class B { } public static class Destination { A[] field1; B[] field2; public A[] getField1() { return field1; } public void setField1(A[] field1) { this.field1 = field1; } public B[] getField2() { return field2; } public void setField2(B[] field2) { this.field2 = field2; } } public static class Source { Set field1 = new TreeSet(); Set field2 = new TreeSet(); public Set getField1() { return field1; } public void setField1(Set field1) { this.field1 = field1; } public Set getField2() { return field2; } public void setField2(Set field2) { this.field2 = field2; } } public void testBug() throws Exception { Morph.convert(Destination.class, new Source()); } } Results in: net.sf.morph.transform.TransformationException: Error copying source com.metservice.ice.breaker.snowie.cytrack.impl.Convers ionTest$Source@765a16 (class com.metservice.ice.breaker.snowie.cytrack.impl.Convers ionTest$Source) to destination com.metservice.ice.breaker.snowie.cytrack.impl.Convers ionTest$Destination@16fe0f4 (class com.metservice.ice.breaker.snowie.cytrack.impl.Convers ionTest$Destination) at net.sf.morph.transform.transformers.BaseTransformer.co py(BaseTransformer.java:348) at net.sf.morph.transform.transformers.DelegatingTransform er.convertImpl(DelegatingTransformer.java:178) at net.sf.morph.transform.transformers.BaseTransformer.co nvert(BaseTransformer.java:245) at net.sf.morph.transform.transformers.BaseTransformer.co nvert(BaseTransformer.java:257) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at net.sf.composite.util.DelegatingInvocationHandler.invoke (DelegatingInvocationHandler.java:53) at $Proxy7.convert(Unknown Source) at net.sf.morph.Morph.convert(Morph.java:82) at com.metservice.ice.breaker.snowie.cytrack.impl.Convers ionTest.testBug(ConversionTest.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.junit2.JUnitStarter.main (JUnitStarter.java:31) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.application.AppMain.main (AppMain.java:86) Caused by: net.sf.morph.reflect.ReflectionException: Unable to set property 'field2' of bean com.metservice.ice.breaker.snowie.cytrack.impl.Convers ionTest$Destination@16fe0f4 (class com.metservice.ice.breaker.snowie.cytrack.impl.Convers ionTest$Destination) to [Lcom.metservice.ice.breaker.snowie.cytrack.impl.Conve rsionTest$A;@a9c09e at net.sf.morph.reflect.reflectors.BaseReflector.set (BaseReflector.java:550) at net.sf.morph.reflect.reflectors.DelegatingReflector.setImpl (DelegatingReflector.java:161) at net.sf.morph.reflect.reflectors.BaseReflector.set (BaseReflector.java:544) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at net.sf.composite.util.DelegatingInvocationHandler.invoke (DelegatingInvocationHandler.java:53) at $Proxy0.set(Unknown Source) at net.sf.morph.transform.copiers.BasePropertyNameCopier .copyProperty(BasePropertyNameCopier.java:120) at net.sf.morph.transform.copiers.PropertyNameMatchingC opier.copyImpl(PropertyNameMatchingCopier.java:86) at net.sf.morph.transform.transformers.BaseTransformer.co py(BaseTransformer.java:342) ... 34 more Caused by: java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at net.sf.morph.reflect.support.MethodHolder.invokeMutator (MethodHolder.java:89) at net.sf.morph.reflect.support.ReflectionInfo.set (ReflectionInfo.java:132) at net.sf.morph.reflect.reflectors.ObjectReflector.setImpl (ObjectReflector.java:260) at net.sf.morph.reflect.reflectors.BaseReflector.set (BaseReflector.java:544) ... 45 more ---------------------------------------------------------------------- >Comment By: Matt Sgarlata (sgarlatm) Date: 2005-12-06 11:30 Message: Logged In: YES user_id=1161666 Fixed in Morph 0.9.2 (release is already prepared, and will be made available soon) ---------------------------------------------------------------------- Comment By: Matt Sgarlata (sgarlatm) Date: 2005-11-07 10:34 Message: Logged In: YES user_id=1161666 I have verified this is a bug. Thanks for the test case! I'll work on getting this fixed ASAP. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1344515&group_id=124910 |
From: SourceForge.net <no...@so...> - 2005-12-06 16:30:21
|
Bugs item #1373284, was opened at 2005-12-05 00:28 Message generated for change (Settings changed) made by sgarlatm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1373284&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed Resolution: Fixed Priority: 5 Submitted By: Eduard Letifov (techtime) Assigned to: Nobody/Anonymous (nobody) Summary: Incorrect caching implementation Initial Comment: Hello, I am using Morph 0.9.1 DelegatingTransformer caching of visited sources seems to be completely wrong as it doesn't take into account destination. If one tries to convert the same source object into 2 different destination objects in a row - the first destination object (cached) is always returned. In my view the caching should take into account destination class. Attached is a test case and a rudely patched version of DelegatingTransformer, that takes care of this bug, bug 1344515 and suspicios caching in copy procedure (checking if source is in cache/visited but never checking if a copy is being attempted into the same instance of an object) ---------------------------------------------------------------------- Comment By: Matt Sgarlata (sgarlatm) Date: 2005-12-06 11:29 Message: Logged In: YES user_id=1161666 Fixed in Morph 0.9.2 (release is already prepared, and will be made available soon) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1373284&group_id=124910 |
From: SourceForge.net <no...@so...> - 2005-12-06 16:29:30
|
Bugs item #1373284, was opened at 2005-12-05 00:28 Message generated for change (Comment added) made by sgarlatm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1373284&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open >Resolution: Fixed Priority: 5 Submitted By: Eduard Letifov (techtime) Assigned to: Nobody/Anonymous (nobody) Summary: Incorrect caching implementation Initial Comment: Hello, I am using Morph 0.9.1 DelegatingTransformer caching of visited sources seems to be completely wrong as it doesn't take into account destination. If one tries to convert the same source object into 2 different destination objects in a row - the first destination object (cached) is always returned. In my view the caching should take into account destination class. Attached is a test case and a rudely patched version of DelegatingTransformer, that takes care of this bug, bug 1344515 and suspicios caching in copy procedure (checking if source is in cache/visited but never checking if a copy is being attempted into the same instance of an object) ---------------------------------------------------------------------- >Comment By: Matt Sgarlata (sgarlatm) Date: 2005-12-06 11:29 Message: Logged In: YES user_id=1161666 Fixed in Morph 0.9.2 (release is already prepared, and will be made available soon) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1373284&group_id=124910 |
From: SourceForge.net <no...@so...> - 2005-12-05 05:28:25
|
Bugs item #1373284, was opened at 2005-12-05 08:28 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1373284&group_id=124910 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Eduard Letifov (techtime) Assigned to: Nobody/Anonymous (nobody) Summary: Incorrect caching implementation Initial Comment: Hello, I am using Morph 0.9.1 DelegatingTransformer caching of visited sources seems to be completely wrong as it doesn't take into account destination. If one tries to convert the same source object into 2 different destination objects in a row - the first destination object (cached) is always returned. In my view the caching should take into account destination class. Attached is a test case and a rudely patched version of DelegatingTransformer, that takes care of this bug, bug 1344515 and suspicios caching in copy procedure (checking if source is in cache/visited but never checking if a copy is being attempted into the same instance of an object) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=700930&aid=1373284&group_id=124910 |