Upgrading from 5.2.16 to 7.4

So I am embarking on the road to upgrade my Servoy solution (which started in Servoy 2) to Servoy 7.4. First two inexplicable problems I’ve encountered are

  1. A null pointer exception on every line where I run controller.deleteAllRecords() after a find in several tables during my login script (these are temporary data that we want cleared before this user’s session starts) and

  2. all my vertical lines (see attached image from Servoy 5.2.16) drawn on forms are giving “Component factory unknown type 18” errors on screen. Do I really need to redraw them using the new vertical line tool in the Palette?

Help? I have read the extensive documentation and searched the forum thoroughly…

Hi Ellen,

  1. You are using the login module? Is this login script running inside this Servoy login module? The login module has no permission to touch any of the databases, you need to use the authenticator module for this or put this in the onSolutionOpen event of the main solution. This will be triggered the moment you have a successful login.
    Of course null pointers should never occur. That is a Servoy issue.

  2. I suggest you contact Servoy support about this. It sure sounds like some conversion issue.

Hope this helps.

I am not using the login module. I am calling the controller.deleteAllRecords() commands myself in my login method.

Hi Ellen,

Then it sure smells like some funky conversion issue. Better let Servoy support look at it.

Thanks very much – I’m making tickets now for them. Now also having trouble importing a solution that works in 7.4 developer (exported from there). Never finishes the import on the server – runs for hours. I’ve imported this solution before, was just doing an update…

Hi Ellen

If you already have a lot of releases (50+) on that solution it’s worth trying the [Compact] button on servoy-admin/solutions page to remove previous releases. This does a good job of cleaning up the repository and you may find that some unexplained bugs/problems disappear in the process -:slight_smile:

Cheers