Cannot invoke method selectSingleNode() on null object

26 Mar '16, 12:49 PM
66,958 Views
No Forum Badges

When trying to generate my project I get this error (repeated twice in a row), together with an error page that says as follow:

Service descriptor not found: WEB-INF/descr/_access.descr

Details:

  • Could not create service 'page1' from class: class com.webratio.rtx.core.DefaultPageService
  • Error creating service: page1 - WEB-INF/descr/page1.descr
  • java.io.IOException: Service descriptor not found: WEB-INF/descr/_access.descr
  • Service descriptor not found: WEB-INF/descr/_access.descr

 

My domain model seems to be fine and without errors, in the site view I'm trying to generate there's only an empty page.

All of this running on JDK 1.6

 

The stacktrace is:

-------------------------------------------------------------------------------------------

com.webratio.commons.transform.EvaluateException: Cannot invoke method selectSingleNode() on null object
    [occurred at line 9 in Authentication.template]
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluate(GroovyTemplate.java:173)
    at com.webratio.commons.transform.groovy.Script2$ExecuteTemplateClosure.doCall(Script2.java:124)
    at com.webratio.commons.transform.groovy.Script2$ExecuteTemplateClosure.doCall(Script2.java:112)
    at sun.reflect.GeneratedMethodAccessor1271.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:927)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78)
    at com_webratio_generator_webapp_7_2_12_201603020418_Logic_Main_template_1458985253591.run(com_webratio_generator_webapp_7_2_12_201603020418_Logic_Main_template_1458985253591:414)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluateObject(GroovyTemplate.java:255)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluateScript(GroovyTemplate.java:192)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluate(GroovyTemplate.java:167)
    at com.webratio.commons.transform.groovy.Script2$ExecuteTemplateClosure.doCall(Script2.java:124)
    at com.webratio.commons.transform.groovy.Script2$ExecuteTemplateClosure.doCall(Script2.java:108)
    at com.webratio.commons.transform.groovy.Script2$ExecuteTemplateClosure.doCall(Script2.java:104)
    at sun.reflect.GeneratedMethodAccessor1082.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:927)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78)
    at com_webratio_generator_webapp_7_2_12_201603020418_WebApp_Main_template_1458985261661.run(com_webratio_generator_webapp_7_2_12_201603020418_WebApp_Main_template_1458985261661:117)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluateObject(GroovyTemplate.java:255)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluateScript(GroovyTemplate.java:192)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluate(GroovyTemplate.java:167)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluate(GroovyTemplate.java:149)
    at com.webratio.ide.deploy.core.jobs.GenerateWebAppJob.doRun(GenerateWebAppJob.java:164)
    at com.webratio.ide.deploy.core.jobs.AbstractDeploymentJob.runExternal(AbstractDeploymentJob.java:84)
    at com.webratio.commons.mf.jobs.ExternalJob.run(ExternalJob.java:53)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.NullPointerException: Cannot invoke method selectSingleNode() on null object
    at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)
    at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:784)
    at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:758)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
    at com_webratio_generator_webapp_7_2_12_201603020418_Logic_Authentication_template_1458985252659.getLoginQuery(com_webratio_generator_webapp_7_2_12_201603020418_Logic_Authentication_template_1458985252659:8)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrent0(ScriptBytecodeAdapter.java:112)
    at com_webratio_generator_webapp_7_2_12_201603020418_Logic_Authentication_template_1458985252659.run(com_webratio_generator_webapp_7_2_12_201603020418_Logic_Authentication_template_1458985252659:51)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluateObject(GroovyTemplate.java:255)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluateScript(GroovyTemplate.java:192)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluate(GroovyTemplate.java:167)
    ... 34 more

 

Thanks!!

 
x 0
Follow
Answer Answer at this question and get points!
Forum Starter - Level 1

Hi Alberto,

have you tried to do right-click on your model and Find/Find Model Problems and on your view right click and Find/Find Model Problems and Find/Find Layout Problems?

I hope this can help you.

 

Regards.

 
x 0
Answer at this question and get points!

Related questions

404 on generated app page 500 error with WebRatio BPM 502 proxy error-generate and run Access wsdl in https A Commercial Hosting Service for the publication of a Website? Adding and deleting from the database Add logging capability to a Groovy script (unit) Admin area disabled aggiornamento fallito a causa di un errore interno Agregar boton de cambio de contraseña en el login Ajax and FCK Editor (WebRatio 5.x) AJAX events problem to external JavaScript Ajax onchange and jQuery 2.x (with migrate plugin) incompatible Alimentar graficas con base de datos Any sample deployment application not deploying properly Atributos Condicionales heredados Attribute comparison in a selector unit Automatization of deployment AWS Elastic Beanstalk y Webratio [beginner] - How to store and browse data collected with BPM app? Build Project. Only files for compilation .class Business object data Cancellare campi e tabelle dal database Can I deploy an application to the cloud using RightScale and/or Scalr? Can I integrate Amazon S3 and/or Amazon CloudFront? Can I use Git with Webratio Cannot add a Database in the Domain Model Cannot connect to MySQL Can not get generate and run option for DataService Project Cannot insert an entity in the database Cannot invoke method putAll() on null object Can't generate and run database or start tomcat server! Can't run any aplication CelsiusToFahrenheit Example Change uplod directory and protect anauthorized access to files Code is exceeding the 65535 bytes limit error on JBOSS Como mostrar una imagen en una lista o en la componente detalles? Como recuperar todos los atributos de una relacion N:N y insertar registros? Compare with the current time Component computation com.webratio.rtx.RTXException: An error occurred dispatching the SOAP message com.webratio.struts.exceptions.WRSecurityException: Invalid request target host Conexion a Oracle 12g Connection refused. connect to Cloud Convert data in a Calculated attribute Convert selector component result to single value Could not create service Creación DB Apache Derby - Modelado BPMN Criptare dati sensibili nel database Custom Unit and AJAX / SOAP Database connection, Host and Port number Database password encrypting Database properties Database resource consumption Database Tables Creation After Remote Deploy Data flow from a page which is not visible anymore DB in Data Service Project Debug configuration Deploy de proyecto en HTTPS Deploy in Cloud Amazon Beanstalk with Postgres Deploying to CloudBees Deploy web project da riga di comando Description: Unknown tag 'wr:LinkResource' Dynamic data type Empty record mistakenly saved error activating student account Error deploying Bookstore sample to cloud Error deploying WAR against to JBOSS Error testing mobil app in android Error updating metadata process Error when updating to WR 7.2.3 EverLasting error "The TCP/IP connection to the host has failed. Connection refused" Exception REST Post request Execute truncate sql query Exposing SOAP Web SERVICE on port different from 80 file analysis then update MySQL database Filtros Caracteres Especiales Find Model Problemas Foriegn key relationship Format currency From BPM to WebProject - BUILD FAILED Generate and run locally on webratio professional edition. Generation errors on ajax enabled page with many components, ajax links and selective refresh "Generation Error" with Generate and Run Generation options problem getting data from database Getting started with Web Services Groovy and Database Groovy script numer after an error Guardar Saltos de LINEA Hacer pruebas unitarias y de integración / Unit Test in WebRatio HelloWorld Unit sample code Help with math unit. Debug mode says error as result code Hide a form if condition if true Hide form until a flow is triggered Hiding landmarks (or flows) when the user is logged in Hierarchy component How can I import a view in the Domain Model as an attribute of an Entity? How can I invoke a Rest Web Service having dynamic parameters? How database or datamodel migration? How I can receive the primary key value after adding into database from OK Port. How to accelerate the generation process? How to avoid language selection automatically according to the browser? How to block empty string in Database How to change smtp port how to delete this error? How to disble derby database? How to fix Network error(status 0) How to get a wr:AjaxURL tag working How to show certain values derived from relations in the domain model? i can't install mobile version on windows I can't install Webratio on my Desktop (Ubuntu 13.04 x64) I can't run any application with WebRatio (Table/View 'APP.POST' does not exist) Image in List field Insert data into database Installation with java 1.8 Installazione Macosx invio mail fallito invoking a webservice using REST Is it possible to create a derived relationship between databases? java.lang.NullPointerException java virtual machine error JDBC4 Postgresql Driver JDBC connection with mysql on mac Job not start correctly JSP/DO issues on Tomcat 5.5 (Ubuntu) Login Error Logs in page mandatory control code parameter is missing Mapping database of the entity '...' is unspecified Mensaje: the selection cannot be launched and there are no recent launches Missing plugin emulation support error Missing units when importing project [MOBILE] Can't synchronize domain model with beck end DB Mostrar datos de diferentes tablas/ show dates from diferentes entities MS SQL server jdbc file multi selections field problem Multi Selects didn't work in update page MySQL Driver jdbc Next Activity Note property - Error synchronizing with web project No access to protected site view with Login No Apache Derby driver found No cloud accounts available No Database on Cloud account No database on my cloud account Page Home - First time the Project Web begins Parameters order in a webservice request Passing JSON Object to Model Personalizzare lo stile di un progetto PostgreSQL Predefined values in database Problema al generar y ejecutar proyecto Problem accessing MySQL with WebRatio 6 Problema generando la logica de un proyecto Problema generazione codice Problema Grafo da una lista gerarchica Problema ¨HTTP Status 404" Problemas al invocar webservice Problemas con el Operations View Delete Problem: Compile Failed problemi installazione su Mac sistema operativo OSX El Capitan problem on first deploy with webratio Problem saving multi selection from input Problems to connect Sql Server DB from Webratio Problems with Database Metadata Problem syncing reports Problem to run an Application Problem with application runnung Problem with execution of webratio Problem with fields with accents used in attribute condition Problem with ireport Problem with query unit! Problem with stored procedure Problem with the deletion of more than 50.000 records in a table Project cannot be opened with WebRatio Community Platform Project generation best practices Properties of the XSD Resource (File) Publish a web service publish web service for storing information in PostgreSQL DB following XSD Resource query a database redeployCheckInterval property Refresh and Synchronize DB Problems Relaciones Removing the User-Group-Module tagles REST connection and Mobile App deploy Retrieve a value and add some value to it reverse engineering, problema con le relazioni di default Root Context & Enterprise Project Sample web application Schedule a Job when adding a record to the database Script Unit e Mysql Share database connection Showing items that have a relation with an entity Solve "Generation Error" with Generate and Run option Some hint before I generate and deploy a webapp on a 64-bit windows system? Start Job when WebApp starts Statistics Component for WebRatio > 7.2.0 Status ProcessInstance and activityInstance in spanish Student reserved area, download error Sybase JConnect 4 JAR replace Sync DataService Project with Mobile Project Table 'freeapp43.profesion' doesn't exist Tarea de servicio no me evalua el valor Tomcat external session store and WebRatio webapp. Trying to Synchronize Domain Model "Unable to close sub-context ..." Unable to compute the controller URL(s) for applicationUnable to compute the controller URL(s) for application having status PROVISIONING Unable to connect to Internet Unable to execute the script java.lang.NullPointerException Unable to find Cloud free function Unable to get ExpenseReport example work in WebRation Personl 7.2.2 Unable to instantiate a new application instance Unable to update the web project Unable to use Visual Debug Unknow property on Dynaclass after generation Unspecified BPM Engine Database Update mutiple records with the same value Updating attributes of an entity upload file and the move it to other location User Login Timestamp Username come chiave Use Running profile en project Using own User and Group tables usuarios y grupos Webratio Add-ons no permite login Web Ratio Add-ons shop not working WebRatio and MySQL Web ratio data model WEBRATIO LINUX AT EXECUTION TIME WebRatio - list results of joined tables Web Ratio Mobile and Foreign Key WebRatio Mobile on Linux using wrong network interface. Web Ratio Mobile plateform Macos Sierra WebRatio Mobile Platform Community edition - Restful request Web Ratio Mobile - Remote data mapping problem WebRatio no imports all attributes (fields) of a table Webratio with Git support WebService DateTime value is not parsed to Date. Web service provider newline problem web service request using XSD Web service - Synchronize XSD When execute my web application I have this error: returned a null bean When stars web ratio between dofollow and nofollow backlink has affected? When using web services, what kind authentication is used? Where is the ACME demo data stored?! which of these three models is closer to webratio/ifml way of creating web applications White report XML Out Unit and Soap Request Response Unit XML Schema Definition Support XML Schema Definition Support XPCOM Error