| Summary: | [DB] Dawn PostgreSQL Issue: IllegalStateException: No type mapping factory found EByteArray --> VARBINARY | ||
|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Andreas <zuletztgesehen> |
| Component: | cdo.db | Assignee: | Stefan Winkler <stefan> |
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> |
| Severity: | normal | ||
| Priority: | P3 | CC: | esteban.dugueperoux, martin.fluegge, stefan, stephane.fournier, stepper |
| Version: | 4.1 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Andreas
Hi Stefan, could you have a quick look at the exception? I think the problem is more db then dawn related. Would you agree? Yes, absolutely. It is a missing TypeMapping which is specific to the PostgreSQL database. (In reply to comment #2) > Yes, absolutely. > > It is a missing TypeMapping which is specific to the PostgreSQL database. Hi Stefan, Eike, Could you please give a hint to fix that issue ? With your support, I can test a patch.I tried to use a DBStore annotation to point to BLOB or VARBINARY but that failed. Anyway, is there a chance to get it fixed for Juno release train ? Regards, Stephane. Stephane, I have created a feature branch for this bug and tried to add the missing type mapping. I also did some adjustments. I have no time to do the manual test right now (i.e. executing the Dawn tutorial), but basic tests in the testsuite that use binary data now succeed (they have failed before). So there's a good chance of the solution to work. Could you please checkout the branch bugs/352062 and report back how it works? Here's the commit for reference: commit a09f9d10aeeab79ed9c8cb9c49dc926457f69d17 Author: Stefan Winkler <stefan@winklerweb.net> 2012-05-04 08:40:59 Committer: Stefan Winkler <stefan@winklerweb.net> 2012-05-04 08:40:59 Parent: 442b3dee3931d65fba39842912584ef8cb0215f9 ([369646] [DB] ClassCastException after setBranch when server cache contains partially loaded collections https://bugs.eclipse.org/bugs/show_bug.cgi?id=369646) Branches: origin/bugs/352062, bugs/352062 [352062] [DB] Dawn PostgreSQL Issue: IllegalStateException: No type mapping factory found EByteArray --> VARBINARY https://bugs.eclipse.org/bugs/show_bug.cgi?id=352062 - added the missing type mapping - adjusted the db adapter - removed the skipConfig for BLOB-attribute-tests the basic testcases seem to run What about DBType.LONGVARBINARY, should that be handled, too, in analogy to LONGVARCHAR? commit eb6c15bb3dba2b28b74274a7d309b208c2117a54 Hi Stefan, Sorry for the delay. I successfully tested your fix on my use case: where I store many bitmaps in a repository backed by PostgreSQL 8.3 and it works perfectly now. Stephane. (In reply to comment #4) > Stephane, > > I have created a feature branch for this bug and tried to add the missing type > mapping. > I also did some adjustments. I have no time to do the manual test right now > (i.e. executing the Dawn tutorial), but basic tests in the testsuite that use > binary data now succeed (they have failed before). So there's a good chance of > the solution to work. > > Could you please checkout the branch bugs/352062 and report back how it works? > > Here's the commit for reference: > > commit a09f9d10aeeab79ed9c8cb9c49dc926457f69d17 > Author: Stefan Winkler <stefan@winklerweb.net> 2012-05-04 08:40:59 > Committer: Stefan Winkler <stefan@winklerweb.net> 2012-05-04 08:40:59 > Parent: 442b3dee3931d65fba39842912584ef8cb0215f9 ([369646] [DB] > ClassCastException after setBranch when server cache contains partially loaded > collections https://bugs.eclipse.org/bugs/show_bug.cgi?id=369646) > Branches: origin/bugs/352062, bugs/352062 > > [352062] [DB] Dawn PostgreSQL Issue: IllegalStateException: No type > mapping factory found EByteArray --> VARBINARY > https://bugs.eclipse.org/bugs/show_bug.cgi?id=352062 > > - added the missing type mapping > - adjusted the db adapter > - removed the skipConfig for BLOB-attribute-tests > > the basic testcases seem to run Closing. |