cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Razumovsky <razumovsky.and...@gmail.com>
Subject Modeler save problems
Date Thu, 04 Mar 2010 12:24:23 GMT
I'm still seeing problems that block my usage of 3.1 modeler :( [probably
not related to this commit, but appeared recently]
Now, I can't save project (our test project):
java.lang.NullPointerException
    at
org.apache.cayenne.project2.validation.ProcedureParameterValidator.validate(ProcedureParameterValidator.java:32)
    at
org.apache.cayenne.project2.validation.ValidationVisitor.visitProcedureParameter(DefaultProjectValidator.java:324)

After I commented out validation, I got another NPE (something in
Entity$PathIterator). Could someone who knows about new changes have a look
please?

2010/3/4 Ольга Ткачева <tkachovaolga@gmail.com>

> Thanks, I will look it tomorrow morning.
>
> 2010/3/3 Andrey Razumovsky <razumovsky.andrey@gmail.com>
>
> > Hi Olga,
> >
> > I'm afraid "open project" menu item doesn't work anymore:
> > java.lang.NullPointerException
> >    at
> >
> >
> org.apache.cayenne.modeler.Application.getMainPreferenceForProject(Application.java:263)
> >    at
> >
> >
> org.apache.cayenne.modeler.util.CayenneController.getViewPreferences(CayenneController.java:109)
> >    at
> >
> >
> org.apache.cayenne.modeler.util.CayenneController.getLastDirectory(CayenneController.java:92)
> >    at
> >
> >
> org.apache.cayenne.modeler.action.ProjectOpener.getDefaultStartDir(ProjectOpener.java:158)
> >    at
> >
> >
> org.apache.cayenne.modeler.action.ProjectOpener.openProjectFile(ProjectOpener.java:132)
> >    at
> >
> >
> org.apache.cayenne.modeler.action.OpenProjectAction.performAction(OpenProjectAction.java:96)
> >
> > 2010/3/3 <oltka@apache.org>
> >
> > > Author: oltka
> > > Date: Wed Mar  3 13:26:27 2010
> > > New Revision: 918465
> > >
> > > URL: http://svn.apache.org/viewvc?rev=918465&view=rev
> > > Log:
> > > CAY-1327 Migrate HSQLDB modeler preferences to Java preferences API
> > >
> > > Modified:
> > >
> > >
> >
>  cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/CayenneModelerController.java
> > >
> > > Modified:
> > >
> >
> cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/CayenneModelerController.java
> > > URL:
> > >
> >
> http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/CayenneModelerController.java?rev=918465&r1=918464&r2=918465&view=diff
> > >
> > >
> >
> ==============================================================================
> > > ---
> > >
> >
> cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/CayenneModelerController.java
> > > (original)
> > > +++
> > >
> >
> cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/CayenneModelerController.java
> > > Wed Mar  3 13:26:27 2010
> > > @@ -82,7 +82,7 @@
> > >         FSPath path = (FSPath) application
> > >                 .getCayenneProjectPreferences()
> > >                 .getProjectDetailObject(
> > > -                        DataMapDefaults.class,
> > > +                        FSPath.class,
> > >                         getViewPreferences().node("lastEOMDir"));
> > >
> > >         if (path.getPath() == null) {
> > >
> > >
> > >
> >
> >
> > --
> > Andrey
> >
>
>
>
> --
> Olga Tkacheva
>



-- 
Andrey

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message