TypeError: Cannot call method "getFullYear" in async mode

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

TypeError: Cannot call method "getFullYear" in async mode

Postby deezzub » Thu Feb 13, 2014 9:08 pm

I get the following error message:

Code: Select all
<null>
Exception Object: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "getFullYear" of  (H:\servoy_workspace_git\boss\br_boss_chart_faktura\forms\boss_char_charterfaktura_base_dtl.js#1347)
MSG: TypeError: Cannot call method "getFullYear" of  (H:\servoy_workspace_git\boss\br_boss_chart_faktura\forms\boss_char_charterfaktura_base_dtl.js#1347)
<null>
Exception calling form method 'createNextPeriodDocument' with arguments [-1, -1, false, null, Nächste Periode, org.mozilla.javascript.NativeJavaObject@1a298590, boss_char_charterfaktura_base_dtl, ly_Charter_Fakturierung_p1_t1_tb] on form 'boss_char_charterfaktura_base_dtl' in async mode on solution BOSS
TypeError: Cannot call method "getFullYear" of  (H:\servoy_workspace_git\boss\br_boss_chart_faktura\forms\boss_char_charterfaktura_base_dtl.js#1347)
   at H:\servoy_workspace_git\boss\br_boss_chart_faktura\forms\boss_char_charterfaktura_base_dtl.js:1347 (createNextPeriodDocument)


if I call:

Code: Select all
var beginOfYear = new Date( maxDate.getFullYear( ) + 1, 0, 1 );


I don't know why. What could be the problem here?
deezzub
 
Posts: 328
Joined: Tue May 28, 2013 3:02 pm
Location: Oldenburg, Germany

Re: TypeError: Cannot call method "getFullYear" in async mod

Postby ROCLASI » Thu Feb 13, 2014 9:57 pm

The first line in your error message tells all:
Exception Object: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "getFullYear" of (H:\servoy_workspace_git\boss\br_boss_chart_faktura\forms\boss_char_charterfaktura_base_dtl.js#1347)
MSG: TypeError: Cannot call method "getFullYear" of

When you see
Cannot call method "getFullYear" of [nothing]
it usually means you tried to call a method/function on a NULL value.
So looking at your code it means maxData contains a NULL.

Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: TypeError: Cannot call method "getFullYear" in async mod

Postby deezzub » Fri Feb 14, 2014 10:11 am

Yes, of course. I was irritated, because of the "async mode". There was a wrong record in the table. Thanks, Robert .
deezzub
 
Posts: 328
Joined: Tue May 28, 2013 3:02 pm
Location: Oldenburg, Germany


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 7 guests

cron