在Hybris 6.7中运行yunitinit时与审计表相关的错误

2020-09-10 09:28发布

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


运行yunitinit时出现类似以下错误:

 
      [java]原因:java.lang.IllegalStateException:无法持久保留审核记录(sql:INSERT INTO junit_medias30sn(itempk,itemtypepk,时间戳,currenttimestamp,changeinguser,payloadbe,payloadafter,operationtype,context)值(?,?,?,  ?,?,?,?,?,?))
      [java] de.hybris.platform.persistence.audit.gateway.impl.DefaultWriteAuditGateway.executePreparedStatementForCmd(DefaultWriteAuditGateway.java:147)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.gateway.impl.DefaultWriteAuditGateway.saveAuditRecords(DefaultWriteAuditGateway.java:88)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.gateway.impl.DefaultWriteAuditGateway.saveTypeAuditRecords(DefaultWriteAuditGateway.java:71)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.impl.DefaultAuditableSaver.storeAudit(DefaultAuditableSaver.java:68)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.impl.TransactionalAuditableOperationHandler.beforeCommit(TransactionalAuditableOperationHandler.java:74)〜[coreserver.jar :?]
      [java]位于java.util.stream.ForEachOps $ ForEachOp $ OfRef.accept(ForEachOps.java:184)〜[?:1.8.0_201]
      [java] at java.util.stream.ReferencePipeline $ 3 $ 1.accept(ReferencePipeline.java:193)〜[?:1.8.0_201]
      [java] at java.util.stream.ReferencePipeline $ 2 $ 1.accept(ReferencePipeline.java:175)〜[?:1.8.0_201]
      [java]位于java.util.ArrayList $ ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)〜[?:1.8.0_201]
      [java]位于java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)〜[?:1.8.0_201]
      [java]位于java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)〜[?:1.8.0_201]
      [java]位于java.util.stream.ForEachOps $ ForEachOp.evaluateSequential(ForEachOps.java:151)〜[?:1.8.0_201]
      [java] at java.util.stream.ForEachOps $ ForEachOp $ OfRef.evaluateSequential(ForEachOps.java:174)〜[?:1.8.0_201]
      [java]位于java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)〜[?:1.8.0_201]
      [java]位于java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)〜[?:1.8.0_201]
      [java]位于de.hybris.platform.tx.Transaction.notifyAttachedObjectsBeforeCommit(Transaction.java:2434)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.tx.Transaction.commit(Transaction.java:680)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.tx.Transaction.finishExecute(Transaction.java:1215)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.tx.Transaction.execute(Transaction.java:1202)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.tx.Transaction.execute(Transaction.java:1157)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.jalo.Item.newInstance(Item.java:4065)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.jalo.type.ComposedType.newInstance(ComposedType.java:1337)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.jalo.type.ComposedType.newInstance(ComposedType.java:1257)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.servicelayer.internal.converter.impl.ItemModelConverter.createNewItem(ItemModelConverter.java:2258)〜[coreserver.jar :?]
      [java] ...另外47个
      [java]原因:java.sql.BatchUpdateException:无效的对象名称'junit_medias30sn'。
      [java] com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeBatch(SQLServerPreparedStatement.java:1824)〜[mssql-jdbc-6.1.0.jre8.jar :?]
      [java]位于de.hybris.platform.jdbcwrapper.PreparedStatementImpl.executeBatch(PreparedStatementImpl.java:275)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.gateway.impl.DefaultWriteAuditGateway.executeBatchForCurrentState(DefaultWriteAuditGateway.java:155)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.gateway.impl.DefaultWriteAuditGateway.executePreparedStatementForCmd(DefaultWriteAuditGateway.java:139)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.gateway.impl.DefaultWriteAuditGateway.saveAuditRecords(DefaultWriteAuditGateway.java:88)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.gateway.impl.DefaultWriteAuditGateway.saveTypeAuditRecords(DefaultWriteAuditGateway.java:71)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.impl.DefaultAuditableSaver.storeAudit(DefaultAuditableSaver.java:68)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.impl.TransactionalAuditableOperationHandler.beforeCommit(TransactionalAuditableOperationHandler.java:74)〜[coreserver.jar :?]
      [java]位于java.util.stream.ForEachOps $ ForEachOp $ OfRef.accept(ForEachOps.java:184)〜[?:1.8.0_201]
      [java] at java.util.stream.ReferencePipeline $ 3 $ 1.accept(ReferencePipeline.java:193)〜[?:1.8.0_201]
      [java] at java.util.stream.ReferencePipeline $ 2 $ 1.accept(ReferencePipeline.java:175)〜[?:1.8.0_201]
      [java]位于java.util.ArrayList $ ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)〜[?:1.8.0_201]
      [java]位于java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)〜[?:1.8.0_201]
      [java]位于java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)〜[?:1.8.0_201]
      [java]位于java.util.stream.ForEachOps $ ForEachOp.evaluateSequential(ForEachOps.java:151)〜[?:1.8.0_201]
      [java] at java.util.stream.ForEachOps $ ForEachOp $ OfRef.evaluateSequential(ForEachOps.java:174)〜[?:1.8.0_201]
      [java]位于java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)〜[?:1.8.0_201]
      [java]位于java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)〜[?:1.8.0_201]
      [java]位于de.hybris.platform.tx.Transaction.notifyAttachedObjectsBeforeCommit(Transaction.java:2434)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.tx.Transaction.commit(Transaction.java:680)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.tx.Transaction.finishExecute(Transaction.java:1215)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.tx.Transaction.execute(Transaction.java:1202)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.tx.Transaction.execute(Transaction.java:1157)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.jalo.Item.newInstance(Item.java:4065)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.jalo.type.ComposedType.newInstance(ComposedType.java:1337)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.jalo.type.ComposedType.newInstance(ComposedType.java:1257)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.servicelayer.internal.converter.impl.ItemModelConverter.createNewItem(ItemModelConverter.java:2258)〜[coreserver.jar :?]
      [java] ...另外47个
 
 

我在local.properties中有 auditing.enabled = false 。 有人遇到过这个问题吗?

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


运行yunitinit时出现类似以下错误:

 
      [java]原因:java.lang.IllegalStateException:无法持久保留审核记录(sql:INSERT INTO junit_medias30sn(itempk,itemtypepk,时间戳,currenttimestamp,changeinguser,payloadbe,payloadafter,operationtype,context)值(?,?,?,  ?,?,?,?,?,?))
      [java] de.hybris.platform.persistence.audit.gateway.impl.DefaultWriteAuditGateway.executePreparedStatementForCmd(DefaultWriteAuditGateway.java:147)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.gateway.impl.DefaultWriteAuditGateway.saveAuditRecords(DefaultWriteAuditGateway.java:88)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.gateway.impl.DefaultWriteAuditGateway.saveTypeAuditRecords(DefaultWriteAuditGateway.java:71)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.impl.DefaultAuditableSaver.storeAudit(DefaultAuditableSaver.java:68)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.impl.TransactionalAuditableOperationHandler.beforeCommit(TransactionalAuditableOperationHandler.java:74)〜[coreserver.jar :?]
      [java]位于java.util.stream.ForEachOps $ ForEachOp $ OfRef.accept(ForEachOps.java:184)〜[?:1.8.0_201]
      [java] at java.util.stream.ReferencePipeline $ 3 $ 1.accept(ReferencePipeline.java:193)〜[?:1.8.0_201]
      [java] at java.util.stream.ReferencePipeline $ 2 $ 1.accept(ReferencePipeline.java:175)〜[?:1.8.0_201]
      [java]位于java.util.ArrayList $ ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)〜[?:1.8.0_201]
      [java]位于java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)〜[?:1.8.0_201]
      [java]位于java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)〜[?:1.8.0_201]
      [java]位于java.util.stream.ForEachOps $ ForEachOp.evaluateSequential(ForEachOps.java:151)〜[?:1.8.0_201]
      [java] at java.util.stream.ForEachOps $ ForEachOp $ OfRef.evaluateSequential(ForEachOps.java:174)〜[?:1.8.0_201]
      [java]位于java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)〜[?:1.8.0_201]
      [java]位于java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)〜[?:1.8.0_201]
      [java]位于de.hybris.platform.tx.Transaction.notifyAttachedObjectsBeforeCommit(Transaction.java:2434)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.tx.Transaction.commit(Transaction.java:680)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.tx.Transaction.finishExecute(Transaction.java:1215)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.tx.Transaction.execute(Transaction.java:1202)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.tx.Transaction.execute(Transaction.java:1157)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.jalo.Item.newInstance(Item.java:4065)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.jalo.type.ComposedType.newInstance(ComposedType.java:1337)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.jalo.type.ComposedType.newInstance(ComposedType.java:1257)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.servicelayer.internal.converter.impl.ItemModelConverter.createNewItem(ItemModelConverter.java:2258)〜[coreserver.jar :?]
      [java] ...另外47个
      [java]原因:java.sql.BatchUpdateException:无效的对象名称'junit_medias30sn'。
      [java] com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeBatch(SQLServerPreparedStatement.java:1824)〜[mssql-jdbc-6.1.0.jre8.jar :?]
      [java]位于de.hybris.platform.jdbcwrapper.PreparedStatementImpl.executeBatch(PreparedStatementImpl.java:275)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.gateway.impl.DefaultWriteAuditGateway.executeBatchForCurrentState(DefaultWriteAuditGateway.java:155)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.gateway.impl.DefaultWriteAuditGateway.executePreparedStatementForCmd(DefaultWriteAuditGateway.java:139)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.gateway.impl.DefaultWriteAuditGateway.saveAuditRecords(DefaultWriteAuditGateway.java:88)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.gateway.impl.DefaultWriteAuditGateway.saveTypeAuditRecords(DefaultWriteAuditGateway.java:71)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.impl.DefaultAuditableSaver.storeAudit(DefaultAuditableSaver.java:68)〜[coreserver.jar :?]
      [java] de.hybris.platform.persistence.audit.impl.TransactionalAuditableOperationHandler.beforeCommit(TransactionalAuditableOperationHandler.java:74)〜[coreserver.jar :?]
      [java]位于java.util.stream.ForEachOps $ ForEachOp $ OfRef.accept(ForEachOps.java:184)〜[?:1.8.0_201]
      [java] at java.util.stream.ReferencePipeline $ 3 $ 1.accept(ReferencePipeline.java:193)〜[?:1.8.0_201]
      [java] at java.util.stream.ReferencePipeline $ 2 $ 1.accept(ReferencePipeline.java:175)〜[?:1.8.0_201]
      [java]位于java.util.ArrayList $ ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)〜[?:1.8.0_201]
      [java]位于java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)〜[?:1.8.0_201]
      [java]位于java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)〜[?:1.8.0_201]
      [java]位于java.util.stream.ForEachOps $ ForEachOp.evaluateSequential(ForEachOps.java:151)〜[?:1.8.0_201]
      [java] at java.util.stream.ForEachOps $ ForEachOp $ OfRef.evaluateSequential(ForEachOps.java:174)〜[?:1.8.0_201]
      [java]位于java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)〜[?:1.8.0_201]
      [java]位于java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)〜[?:1.8.0_201]
      [java]位于de.hybris.platform.tx.Transaction.notifyAttachedObjectsBeforeCommit(Transaction.java:2434)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.tx.Transaction.commit(Transaction.java:680)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.tx.Transaction.finishExecute(Transaction.java:1215)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.tx.Transaction.execute(Transaction.java:1202)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.tx.Transaction.execute(Transaction.java:1157)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.jalo.Item.newInstance(Item.java:4065)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.jalo.type.ComposedType.newInstance(ComposedType.java:1337)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.jalo.type.ComposedType.newInstance(ComposedType.java:1257)〜[coreserver.jar :?]
      [java]位于de.hybris.platform.servicelayer.internal.converter.impl.ItemModelConverter.createNewItem(ItemModelConverter.java:2258)〜[coreserver.jar :?]
      [java] ...另外47个
 
 

我在local.properties中有 auditing.enabled = false 。 有人遇到过这个问题吗?

付费偷看设置
发送
1条回答
哎,真难
1楼-- · 2020-09-10 10:12

看起来像这样,可能是Hybris中的错误。 当我设置 auditing.enabled = true 时,它可以正常工作。 并且随后在具有 auditing.enabled = false 的同一个数据库上执行 yunitinit 也是可以的。

一周热门 更多>