Book a Demo

Author Topic: Internal Null Pointer exception  (Read 5608 times)

McMannus

  • EA User
  • **
  • Posts: 108
  • Karma: +4/-1
    • View Profile
Internal Null Pointer exception
« on: August 18, 2015, 05:59:45 pm »
Hi guys,

recently, I deployed our add-in to a customer running a SQL server repository. When he opens a model, the following error is shown, which indicates a null pointer exception for me. However, the information "Source = Line: 0; Char : 0, Code = 0x0" is kind of weird for me.

Does anyone experience this error already?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Internal Null Pointer exception
« Reply #1 on: August 18, 2015, 07:12:35 pm »
Some XML/MDG error. Turn off all MDGs and back on one by one.

q.

McMannus

  • EA User
  • **
  • Posts: 108
  • Karma: +4/-1
    • View Profile
Re: Internal Null Pointer exception
« Reply #2 on: August 19, 2015, 12:24:40 am »
The MDG is loaded from within the add-in. This used to work with local repositories perfectly so I wonder how there can be errors with remote repositories here.


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Internal Null Pointer exception
« Reply #3 on: August 19, 2015, 03:18:44 am »
Ask the add-in developer  :)

q.

McMannus

  • EA User
  • **
  • Posts: 108
  • Karma: +4/-1
    • View Profile
Re: Internal Null Pointer exception
« Reply #4 on: August 19, 2015, 07:19:47 pm »
Oops, that's me ;-)

McMannus

  • EA User
  • **
  • Posts: 108
  • Karma: +4/-1
    • View Profile
Re: Internal Null Pointer exception
« Reply #5 on: August 20, 2015, 12:40:39 am »
OK, for all interested bug fixers the reason for this message:

Code: [Select]
SELECT MAX(column) FROM table
and
Code: [Select]
double quotes in queries
do not work with MS SQL Server repositories. At least with 2008.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Internal Null Pointer exception
« Reply #6 on: August 20, 2015, 01:45:27 am »
Or to put it with George Orwell: All SQL are equal. But some SQL are more equal than others.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Internal Null Pointer exception
« Reply #7 on: August 21, 2015, 04:54:49 pm »
I knew I saw the error before, I just couldn't remember in which context.

I should have known however. I had my fair share of SQL syntax incompatibilities.

I wrote a few functions in my framework to adjust the SQL to the syntax of the targetted system.
Check  the operation formatSQL on the Model class

Geert