This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 226927 - freemarker.core.InvalidReferenceException: Expression project.licensePath is undefined on line 5, column 14 in Templates/Scripting/PHPClass.php
Summary: freemarker.core.InvalidReferenceException: Expression project.licensePath is ...
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 7.4
Hardware: PC Linux
: P2 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
: 227072 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-03-02 13:58 UTC by alesak
Modified: 2013-05-20 06:52 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 662250


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alesak 2013-03-02 13:58:56 UTC
When creating new PHP class or PHP file I get exception and new file has broken licence part:

<?php

Expression project.licensePath is undefined on line 5, column 14 in Templates/Scripting/PHPClass.php.

/**
 * Description of newPHPClass
 *
 */
class newPHPClass {
    //put your code here
}

?>
It happen in a new or existing projects.

I think it is related changes introduced in https://netbeans.org/bugzilla/show_bug.cgi?id=193981

Exception is here:
http://statistics.netbeans.org/analytics/exception.do?id=662250
Comment 1 Milos Kleint 2013-03-02 14:31:58 UTC
you also have 
java.lang.NoSuchMethodError: org.netbeans.modules.glassfish.spi.ServerUtilities.getPreludeUtilities()Lorg/netbeans/modules/glassfish/spi/ServerUtilities;

in your log file, how have you upgraded to latest dev build? have you downloaded a build or have you updated an existing dev build?
Comment 2 alesak 2013-03-02 14:34:21 UTC
It is fresh netbeans-trunk-nightly-201303012300-linux.sh but existing user profile.
Comment 3 alesak 2013-03-02 15:34:54 UTC
I just imported my current profile to new one and it looks like it is OK now.
Comment 4 Milos Kleint 2013-03-05 09:00:20 UTC
ok, closing as worksforme, if you find steps to reproduce the issue or the issue reappears, please consider reopening this issue. thanks.
Comment 5 Martin Kozeny 2013-05-20 06:52:56 UTC
*** Bug 227072 has been marked as a duplicate of this bug. ***