Summary: | IllegalArgumentException when creating a new entity with the diagram | ||
---|---|---|---|
Product: | [WebTools] Dali JPA Tools | Reporter: | Mauro Molinari <mauromol> |
Component: | Diagram Editor | Assignee: | Project Inbox <dali.diagrameditor-inbox> |
Status: | RESOLVED FIXED | QA Contact: | Petya Sabeva <petya.sabeva> |
Severity: | major | ||
Priority: | P1 | CC: | neil.hauge |
Version: | 3.4 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Whiteboard: |
Description
Mauro Molinari
2014-10-23 09:28:14 EDT
Sorry Neil, I took the liberty to originally set the severity to "critical" because this is a complete loss of functionality for me, since the Diagram Editor does not work at all in my environment. No worries Mauro. We usually reserve Critical for issues that crash the whole IDE and or result in data loss. It is certainly a severe problem. Thanks for the report. Mauro, what type of resource is /fatturapa-api ? Actually, from the attached log seems that this resource couldn't be found? Can you explain how it is bound to the project's structure, so I can try to reproduce the exact exception. Hi Petya! fatturapa-api is a project the JPA project depends on. The dependency is a buildpath dependency (it is listed in Java Build Path | Projects of the JPA project). It's a standard Java project with just the Java 1.7 facet and some additional natures (like Groovy and Spring). It physically resides outside the workspace and it is linked in the workspace, just like the JPA project. Anyway, both the JPA project and fatturapa-api are within the same physical folder in the file system (so, even if paths between projects were resolved against the file system instead of against the Eclipse API, relative paths should match...). Mauro, actually we haven't thought of this scenario. So when we are looking for the persistence provider library, we were expecting the array in which we iterate to contains only resources of type IFile, not IProject. However I made a fix and pushed in R3_4_maintenance branch: http://git.eclipse.org/c/dali/webtools.dali.git/commit/?h=R3_4_maintenance&id=658de43396dcede4321ffba6820b6b0a0169ffe1 and in HEAD: http://git.eclipse.org/c/dali/webtools.dali.git/commit/?id=6bff4ac94fa51b77ab97115107579edc5c8e9439 Unfortunately, I couldn't find a proper workaround, except to remove the dependency and add it again, when all necessary entities are added in the diagram. I am reopening the bug, because there is a code freeze, so I needed to revert my change. Hi Petya, thanks for your prompt feedback and fix. So, if I understand it correctly, the fix will be in 3.5, but not in 3.4.x, won't it? Or we may get it for Luna SR2 in February too? Actually, the fix will be available for Luna SR2 also. Fix is pushed to the master branch. |