EntityManager NULL con @PersistenceContext y con EntityManagerFactory

en esta semana estoy creando un proyecto con las siguientes caracteristicas: Proyecto maven tipo war con jdk 1.8, servidor de aplicaciones RedHatJboss EAP 7.1, DB Oracle 12c.

Como podran ver en el archivo pom, estoy usando los repositorios en linea de Red-hat para la version de jboss eap 7.1.

El problema que tengo es que al momento de crear o injectar el EntityManager este siempre es null, y almomento de usarlo (ej: em.persit(entidad)) arroja una NullPointerException exactamente en la línea donde se usa.

Archivo pom

<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0"     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">     <modelVersion>4.0.0</modelVersion>     <groupId>co.com.company</groupId>     <artifactId>AppServices</artifactId>     <version>0.0.1-SNAPSHOT</version>     <packaging>war</packaging>     <name>AppServices</name>     <properties>         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>     <version.wildfly.maven.plugin>2.0.1.Final</version.wildfly.maven.plugin>         <version.jboss.bom>7.1.5.GA</version.jboss.bom>         <version.compiler.plugin>3.8.1</version.compiler.plugin>         <version.surefire.plugin>3.0.0-M3</version.surefire.plugin>         <version.war.plugin>3.2.3</version.war.plugin>         <maven.compiler.target>1.8</maven.compiler.target>         <maven.compiler.source>1.8</maven.compiler.source>     </properties>     <dependencyManagement>         <dependencies>             <dependency>                 <groupId>org.jboss.bom</groupId>                 <artifactId>jboss-eap-javaee7-with-tools</artifactId>                 <version>$  {version.jboss.bom}</version>                 <type>pom</type>                 <scope>import</scope>             </dependency>             <dependency>                 <groupId>org.jboss.eap</groupId>                 <artifactId>wildfly-ejb-client-legacy-bom</artifactId>                 <version>$  {version.jboss.bom}-redhat-00002</version>                 <type>pom</type>                 <scope>import</scope>             </dependency>         </dependencies>     </dependencyManagement>     <dependencies>         <dependency>             <groupId>org.jboss.resteasy</groupId>             <artifactId>resteasy-jaxrs</artifactId>             <scope>provided</scope>         </dependency>         <dependency>             <groupId>org.hibernate</groupId>             <artifactId>hibernate-validator</artifactId>             <scope>provided</scope>         </dependency>         <dependency>             <groupId>org.hibernate</groupId>             <artifactId>hibernate-entitymanager</artifactId>             <scope>provided</scope>         </dependency>         <dependency>             <groupId>org.jboss.eap</groupId>             <artifactId>wildfly-ejb3</artifactId>             <scope>provided</scope>         </dependency>     </dependencies>     <build>         <finalName>$  {project.artifactId}</finalName>         <plugins>             <plugin>                 <artifactId>maven-war-plugin</artifactId>                 <version>$  {version.war.plugin}</version>                 <configuration>                     <failOnMissingWebXml>false</failOnMissingWebXml>                 </configuration>             </plugin>             <plugin>                 <artifactId>maven-clean-plugin</artifactId>                 <version>3.1.0</version>             </plugin>             <plugin>                 <groupId>org.apache.maven.plugins</groupId>                 <artifactId>maven-compiler-plugin</artifactId>                 <version>$  {version.compiler.plugin}</version>                 <configuration>                     <source>$  {maven.compiler.source}</source>                     <target>$  {maven.compiler.target}</target>                 </configuration>             </plugin>             <plugin>                 <artifactId>maven-install-plugin</artifactId>                 <version>3.0.0-M1</version>             </plugin>             <plugin>                 <groupId>org.wildfly.plugins</groupId>                 <artifactId>wildfly-maven-plugin</artifactId>                 <version>$  {version.wildfly.maven.plugin}</version>                 <inherited>true</inherited>                 <configuration>                     <skip>true</skip>                 </configuration>             </plugin>         </plugins>     </build>     <profiles>     </profiles>     <repositories>         <repository>             <id>jboss-eap-repository-group</id>             <name>JBoss EAP Maven Repository</name>             <url>https://maven.repository.redhat.com/ga/</url>             <layout>default</layout>             <releases>                 <enabled>true</enabled>                 <updatePolicy>never</updatePolicy>             </releases>             <snapshots>                 <enabled>true</enabled>                 <updatePolicy>never</updatePolicy>             </snapshots>         </repository>     </repositories>     <pluginRepositories>         <pluginRepository>             <id>jboss-eap-repository-group</id>             <name>JBoss EAP Maven Repository</name>             <url>https://maven.repository.redhat.com/ga/</url>             <releases>                 <enabled>true</enabled>             </releases>             <snapshots>                 <enabled>true</enabled>             </snapshots>         </pluginRepository>     </pluginRepositories> </project> 

Archivo Persistence.xml

<persistence version="2.1"    xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    xsi:schemaLocation="         http://xmlns.jcp.org/xml/ns/persistence         http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">    <persistence-unit name="primary" transaction-type="JTA">       <provider>org.hibernate.ejb.HibernatePersistence</provider>       <jta-data-source>java:jboss/datasources/AppServicesDS</jta-data-source>       <class>co.com.company.appservices.persistencia.entidades.comun.UnaEntidad</class>       <exclude-unlisted-classes>false</exclude-unlisted-classes>       <!-- Hibernate properties -->         <properties>             <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle12cDialect" />             <property name="hibernate.connection.charSet" value="UTF-8" />             <property name="hibernate.hbm2ddl.auto" value="validate" />             <property name="hibernate.show_sql" value="false" />         </properties>    </persistence-unit> </persistence> 

La entidad

import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table;  @Entity @Table(name = "NOMBRE_TABLA") public class NombreTabla implements IEntidad<Integer>, Serializable{      @Id     @Column(name = "idNombreTabla")     private Integer id;      @Column(name = "descripcion")     private String descripcion;  //Constructor y metodos de acceso } 

Interface repositorio

public interface IRepositorio<K, E extends IEntidad<?>> extends Serializable {     E buscarPorId(K id);     void crear(E entidad);     void eliminar(E entidad);     E salvarOActualizar(E entidad); } 

Clase abstracta repositorio

public abstract class Repositorio<K, E extends IEntidad<?>> implements IRepositorio<K,E>{     private Class<E> entidad;      public Repositorio(Class<E> entidad) {         this.entidad = entidad;     }      protected abstract EntityManager getEntityManager();      @Override     public void crear(E entidad) {         getEntityManager().persist(entidad); //Aca se genera la excepcion     } } 

Implementacion repositorio

import javax.persistence.EntityManager; import javax.persistence.PersistenceContext;  public class NombreTablaRepositorio extends Repositorio<Integer, NombreTabla>{      @PersistenceContext(unitName = "primary")     private EntityManager em;      public NombreTablaRepositorio() {         super(NombreTabla.class);     }      @Override     protected EntityManager getEntityManager() {         return this.em;     } } 

El error completo es:

01:12:01,283 ERROR [io.undertow.request] (default task-3) UT005023: Exception handling request to /AppServices/rest/administracion/nombres-tablas: org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException     at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:78)     at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:222)     at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:179)     at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:422)     at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:213)     at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:228)     at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)     at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)     at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)     at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)     at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)     at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)     at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)     at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)     at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)     at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)     at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)     at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)     at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)     at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)     at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)     at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)     at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)     at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)     at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)     at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)     at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)     at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)     at io.undertow.servlet.handlers.ServletInitialHandler.access$  100(ServletInitialHandler.java:81)     at io.undertow.servlet.handlers.ServletInitialHandler$  2.call(ServletInitialHandler.java:138)     at io.undertow.servlet.handlers.ServletInitialHandler$  2.call(ServletInitialHandler.java:135)     at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$  1.call(ServletRequestContextThreadSetupAction.java:48)     at io.undertow.servlet.core.ContextClassLoaderSetupAction$  1.call(ContextClassLoaderSetupAction.java:43)     at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$  create$  0(SecurityContextThreadSetupAction.java:105)     at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$  UndertowThreadSetupAction.lambda$  create$  0(UndertowDeploymentInfoService.java:1508)     at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$  UndertowThreadSetupAction.lambda$  create$  0(UndertowDeploymentInfoService.java:1508)     at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$  UndertowThreadSetupAction.lambda$  create$  0(UndertowDeploymentInfoService.java:1508)     at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$  UndertowThreadSetupAction.lambda$  create$  0(UndertowDeploymentInfoService.java:1508)     at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$  UndertowThreadSetupAction.lambda$  create$  0(UndertowDeploymentInfoService.java:1508)     at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)     at io.undertow.servlet.handlers.ServletInitialHandler.access$  000(ServletInitialHandler.java:81)     at io.undertow.servlet.handlers.ServletInitialHandler$  1.handleRequest(ServletInitialHandler.java:104)     at io.undertow.server.Connectors.executeRootHandler(Connectors.java:326)     at io.undertow.server.HttpServerExchange$  1.run(HttpServerExchange.java:812)     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)     at java.util.concurrent.ThreadPoolExecutor$  Worker.run(ThreadPoolExecutor.java:624)     at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NullPointerException     at co.com.company.appservices.persistencia.repositorio.Repositorio.crear(Repositorio.java:28)     at co.com.company.appservices.negocio.administracion.impl.AdministracionTabla.crearNombreTabla(AdministracionTabla.java:29)     at co.com.company.appservices.rest.administracion.facade.TablaService.crearNombreTabla(TablaService.java:38)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)     at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:295)     at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:249)     at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:236)     at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:406)     ... 44 more 

Agradezco de su colaboración.

Uri de un archivo me llega null

Tengo un problema, estoy intentando seleccionar un documento para enviarlo a un servidor mediante un webservice en php, el problema es que cuando selecciono el archivo la ruta que me devuelve es content://com.android.providers.downloads.documents/document/16733 y me lo toma como si fuera null, como si esa ruta no existiera, no entiendo porque, estoy usando la libreria de “net.gotev:uploadservice:3.5.2” para poder hacer uso de Multipart y enviar el archivo, tambien uso una clase llamada FilePath para obtener la ruta real del documento que el usuario seleccione pero no se que esta fallando.

Este es mi método para elegir el archivo:

public void showDocumentFilePicker(){         Intent intent = new Intent();         intent.setType("application/pdf");         intent.setAction(Intent.ACTION_GET_CONTENT);         startActivityForResult(Intent.createChooser(intent, "Selecciona un archivo"), 2);     } 

Y esto es lo que recibo en el ActivityForResult:

if (requestCode == 2 && resultCode == Activity.RESULT_OK){             filePath = data.getData();             Toast.makeText(getApplicationContext(), "PDF Seleccionado: "+filePath, Toast.LENGTH_LONG).show();             uploadDocumentos();         } 

Y por ultimo este es el metodo uploadDocumentos():

public void uploadDocumentos(){         String pdfNombre = "Prueba";         String pdfPath = FilePath.getRealPath(this, filePath);          if(pdfPath == null){             Toast.makeText(getApplicationContext(),"No se ha podido seleccionar el archivo", Toast.LENGTH_LONG).show();             Log.i("ERROR", "Error: "+filePath);         }else{             try{                  String pdfID = "prueba123";                 //Tenemos que implementar algo similar al MultipartUploadRequest                 new MultipartUploadRequest(this, pdfID, UPLOAD_FILE_PDF)                         .addFileToUpload(pdfPath, "pdf")                         .addParameter("name", pdfNombre)                         .setNotificationConfig(new UploadNotificationConfig())                         .setMaxRetries(2)                         .startUpload();              }catch (Exception e){                 Toast.makeText(getApplicationContext(), "Error: "+e.getMessage(), Toast.LENGTH_LONG).show();                 Log.i("ERROR", "Error: "+e.getMessage());             }         }     } 

Y la clase FilePath que uso es esta, esta es la clase que uso para recuperar la Uri del archivo que estoy seleccionando:

public class FilePath {      public static String getRealPath(final Context context, final Uri uri) {          if (uri.getScheme().equals("file")) {             return uri.toString();          } else if (uri.getScheme().equals("content")) {             // DocumentProvider             if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {                 if (DocumentsContract.isDocumentUri(context, uri)) {                      // ExternalStorageProvider                     if (isExternalStorageDocument(uri)) {                         final String docId = DocumentsContract.getDocumentId(uri);                         final String[] split = docId.split(":");                         final String type = split[0];                          if ("primary".equalsIgnoreCase(type)) {                             return Environment.getExternalStorageDirectory() + "/" + split[1];                         }                          // TODO handle non-primary volumes                     }                     // DownloadsProvider                     else if (isDownloadsDocument(uri)) {                          final String id = DocumentsContract.getDocumentId(uri);                         final Uri contentUri = ContentUris.withAppendedId(                                 Uri.parse("content://com.android.providers.downloads.documents/document/"), Long.valueOf(id));                          return getDataColumn(context, contentUri, null, null);                     }                     // MediaProvider                     else if (isMediaDocument(uri)) {                         final String docId = DocumentsContract.getDocumentId(uri);                         final String[] split = docId.split(":");                         final String type = split[0];                          Uri contentUri = null;                         if ("image".equals(type)) {                             contentUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;                         } else if ("video".equals(type)) {                             contentUri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;                         } else if ("audio".equals(type)) {                             contentUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;                         }                          final String selection = "_id=?";                         final String[] selectionArgs = new String[]{                                 split[1]                         };                          return getDataColumn(context, contentUri, selection, selectionArgs);                     }                 }             }         }          return null;     }       public static String getDataColumn(Context context, Uri uri, String selection,                                        String[] selectionArgs) {          Cursor cursor = null;         final String column = "_data";         final String[] projection = {                 column         };          try {             cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs,                     null);             if (cursor != null && cursor.moveToFirst()) {                 final int column_index = cursor.getColumnIndexOrThrow(column);                 return cursor.getString(column_index);             }         } finally {             if (cursor != null)                 cursor.close();         }         return null;     }       public static boolean isExternalStorageDocument(Uri uri) {         return "com.android.externalstorage.documents".equals(uri.getAuthority());     }      public static boolean isDownloadsDocument(Uri uri) {         return "com.android.providers.downloads.documents".equals(uri.getAuthority());     }      public static boolean isMediaDocument(Uri uri) {         return "com.android.providers.media.documents".equals(uri.getAuthority());     } } 

El problema es que al seleccionar el archivo no me da un error, lo que me dice es que no se pudo seleccionar el archivo, este mensaje lo imprimo si la ruta del archivo es null, pero no entiendo que estoy haciendo mal al recuperar el documento.

Error al actualizar un campo NULL en MySql

Tengo una tabla con valores en null que quiero actualizar para que todos sean 0 ,estoy haciendo esta instruccion

UPDATE pedido set cajas = 0 WHERE cajas IS NULL ; 

donde “cajas” es el campo con valores en null, pero al realizar la consulta no afecta a nada , siendo que hay muchos campos con valores en null como pueden ver en la siguiente consulta introducir la descripción de la imagen aquí

en total hay 298 valores en null , pero al tratar de actualizar no hace nada, si alguien me pudiera indicar que podria estar mal se lo agradeceria

PHP Fatal error: Uncaught Error: Call to a member function prepare() on null

Ayuda estoy en el proceso de creación de un blog y al tratar de acceder al index me sale en pantalla que hubo un error con la función prepare() on null, no entiendo porque porfa ayuda 🙁 abajo cree la conexión

    function conexion($  bd_config){         try {         $  conexion = new PDO('mysql:host=localhost;dbname='.$  bd_config['basedatos'], $  bd_config['usuario'], $  bd_config['pass']);         $  conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);          return $  conexion;          } catch (PDOException $  e) {     return false;     }     } 

Aquí definí los datos de la Base de datos

<?php  define('RUTA', 'http://localhost/curso/Practicas/PracticaBlog/');  $  bd_config = array(     'basedatos' => 'blog',     'usuario' => 'root',     'pass' => '' );  $  blog_config = array(     'post_por_pagina'=> '2',     'carpeta_imagenes' => 'imagenes/' );  $  blog_admin = array(     'usuario' => 'Nicolas',     'password' => '456' );  ?> 

aquí abajo llamo la conexión

<?php   require 'admin/config.php';   require 'functions.php';   if (!$  conexion) {     header('Location: Error.php'); }  $  posts = obtener_post($  blog_config['post_por_pagina'],$  conexion);  if (!$  posts) {     header('Location: Error.php'); }  require 'views/index.view.php';   ?> 

Si hacen falta mas detalles comentenlo y los pondré, gracias buen dia :,D

Object returned by the following call stack is null. ListItemAllFields AddWithOverwrite Folders

I am working on Migration tool using SharePoint CSOM from file system to sharepoint, Everything was working fine until now i face new exception on some of the folder as mentioned below.

Cannot invoke method or retrieve property from null object. Object returned by the following call stack is null. ListItemAllFields AddWithOverwrite Folders at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream) at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()

on below line

CreatedFolder = ParentSPFolder.Folders.AddWithOverwrite(DestPath, true); 

I have already read below questions but not matching my case.

Cannot invoke method or retrieve property from null object. Object returned by the following call stack is null. \"File\r\n\"

Server Exception : Cannot invoke method or retrieve property from null object. Object returned by the following call stack is null. \“File\r\n\”

Can you please guide me whats wrong with the code.

Thank You.

Attribute code error: null value – how to find which attribute code?

We ran into this exact error: Certain Magento Pages returning HTTP Error 500 after a payment was done with PayPal Express Checkout (PayPal redirects to our website after the transaction is completed, then the error 500 occurs).

But checking the error log didn’t provide any information (see below for details). In the end, our developer used a workaround to resolve this issue, but he has to move on to more pressing matters, so I’m trying to get to the bottom of it instead.

The workaround is simply to return an empty value instead of a null value when Magento retrieves attribute codes. He changed this file:

vendor\magento\module-eav\Model\Validator\Attribute\Data.php

And changed this section of it:

    /**  * Validate EAV model attributes with data models  *  * @param \Magento\Framework\Model\AbstractModel $  entity  * @return bool  */ public function isValid($  entity) {     /** @var $  attributes Attribute[] */     $  attributes = $  this->_getAttributes($  entity);      $  data = [];     if ($  this->_data) {         $  data = $  this->_data;     } elseif ($  entity instanceof \Magento\Framework\DataObject) {         $  data = $  entity->getData();     }      foreach ($  attributes as $  attribute) {         $  attributeCode = $  attribute->getAttributeCode();         if (!$  attribute->getDataModel() && !$  attribute->getFrontendInput()) {             continue;         }         $  dataModel = $  this->_attrDataFactory->create($  attribute, $  entity);         $  dataModel->setExtractedData($  data);         if (!isset($  data[$  attributeCode])) {             $  data[$  attributeCode] = null;         }         if($  data[$  attributeCode] == null){             $  data[$  attributeCode] = "";         }         $  result = $  dataModel->validateValue($  data[$  attributeCode]);         if (true !== $  result) {             $  this->_addErrorMessages($  attributeCode, (array)$  result);         }     }     return count($  this->_messages) == 0; } 

Any idea how we could identify the missing/faulty attribute code? There are no exception returned and Magento’s debug log looked like this:

[2019-07-11 23:06:44] main.DEBUG: array (   'ipn' =>  [PayPal API information]   ),   'postback_to' => 'https://ipnpb.paypal.com/cgi-bin/webscr',   'exception' => 'The "order" authorizations aren\'t implemented.', ) [] [] [2019-07-11 23:06:44] main.CRITICAL: The "order" authorizations aren't implemented. {"exception":"[object] (Exception(code: 0): The \"order\" authorizations aren't implemented. at [root]/vendor/magento/module-paypal/Model/Ipn.php:363)"} []     

I can only conclude that the source of the error really isn’t in ipn.php…

Error log:

[ N 2019-07-11 04:27:36.5293 26283/T5 age/Cor/SecurityUpdateChecker.h:517 ]: Security update check: no update found (next check in 24 hours)

That was the only line for the day.

Magento 2.3.2 Authorize.net Cannot read property ‘length’ of null

Just setup a fresh install of Magento2.3.2 and enabled Authorize.net now when I try to do a transaction I just get a spinner on the checkout page and in the console I get an error that says the below and not sure what to do. Also I notice a field in the Authorize.net admin panel labeled public Key but idk where to get that. I have the API ID, Transaction key and Signature Key. What is the Public Key and where do I get it? Maybe because I have that field blank thats why I get this error?

Uncaught TypeError: Cannot read property 'length' of null at b (AcceptCore.js:1) at Object.a.dispatchData.a.dispatchData (AcceptCore.js:1) at UiClass._createTokens (acceptjs-client.js:59) at UiClass.<anonymous> (acceptjs-client.js:45) at fire (jquery.js:3232) at Object.fireWith [as resolveWith] (jquery.js:3362) at Object.deferred.<computed> [as resolve] (jquery.js:3461) at HTMLBodyElement.<anonymous> (acceptjs-factory.js:29) at HTMLBodyElement.dispatch (jquery.js:5226) at HTMLBodyElement.elemData.handle (jquery.js:4878) at v (AcceptCore.js:1) at w (AcceptCore.js:1) at AcceptCore.js:1 at AcceptCore.js:1 

Unable to get property ‘PageManager’ of undefined or null reference SP2013

I’ve just created a new custom list on my site, with a simple list, one text column, no javascript, no CEWP, just a very basic vanilla function.

Running the page with PF12 open, the error “Unable to get property ‘PageManager’ of undefined or null reference” comes up.

Is this normal? What is causing this? Any fix?