cancel
Showing results for 
Search instead for 
Did you mean: 

Export Media Error - No Secure Media Renderer

Former Member
0 Kudos

Hi Experts !

Facing an issue with Media Export.

Below is the script I am using

 #-----------------------------------------------------------
 INSERT_UPDATE Media;code[unique=true];catalogVersion(catalog(id),version)[unique=true,default='BobsContentCatalog:Staged'];mime;realfilename;@media[translator=de.hybris.platform.impex.jalo.media.MediaDataTranslator]
 "#% impex.exportItems( ""Media"" , false );"


Getting an expection as below:

 18.09.03 13:50:59:044    WARN    line 3 at main script: No secure media renderer available in current context. Media PK:8796185133086. No URL will be rendered.
 18.09.03 13:50:59:044    WARN    line 3 at main script: No secure media renderer available in current context. Media PK:8796185133086. No URL will be rendered.
 18.09.03 13:50:59:044    WARN    line 3 at main script: No secure media renderer available in current context. Media PK:8796093055006. No URL will be rendered.
 18.09.03 13:50:59:044    WARN    line 3 at main script: No secure media renderer available in current context. Media PK:8796093055006. No URL will be rendered.
 18.09.03 13:51:13:977    ERROR    line 3 at main script: Error while exporting media file: null
 java.lang.NullPointerException: name
     at java.util.Objects.requireNonNull(Objects.java:228)
     at java.util.zip.ZipEntry.<init>(ZipEntry.java:108)
     at de.hybris.platform.impex.jalo.ImpExZip.startNewEntry(ImpExZip.java:94)
     at de.hybris.platform.impex.jalo.DefaultExportMediaHandler.exportData(DefaultExportMediaHandler.java:46)
     at de.hybris.platform.impex.jalo.media.MediaDataTranslator.performExport(MediaDataTranslator.java:130)
     at de.hybris.platform.impex.jalo.header.SpecialColumnDescriptor.performExport(SpecialColumnDescriptor.java:120)
     at de.hybris.platform.impex.jalo.exp.ImpExCSVExportWriter.writeLine(ImpExCSVExportWriter.java:266)
     at de.hybris.platform.impex.jalo.exp.Exporter.exportItems(Exporter.java:1154)
     at de.hybris.platform.impex.jalo.exp.Exporter.exportItems(Exporter.java:831)
     at de.hybris.platform.impex.jalo.exp.Exporter.exportItems(Exporter.java:775)
     at de.hybris.platform.impex.jalo.exp.DeprecatedExporter.exportItems(DeprecatedExporter.java:100)
     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 bsh.Reflect.invokeMethod(Reflect.java:134)
     at bsh.Reflect.invokeObjectMethod(Reflect.java:80)
     at bsh.Name.invokeMethod(Name.java:858)
     at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
     at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
     at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
     at bsh.Interpreter.eval(Interpreter.java:645)
     at bsh.Interpreter.eval(Interpreter.java:739)
     at bsh.Interpreter.eval(Interpreter.java:728)
     at de.hybris.platform.impex.jalo.ImpExReader.legacyExecute(ImpExReader.java:3188)
     at de.hybris.platform.impex.jalo.ImpExReader.execute(ImpExReader.java:3142)
     at de.hybris.platform.impex.jalo.ImpExReader.execute(ImpExReader.java:3111)
     at de.hybris.platform.impex.jalo.ImpExReader.processCodeLine(ImpExReader.java:3016)
     at de.hybris.platform.impex.jalo.ImpExReader.readLine(ImpExReader.java:1921)
     at de.hybris.platform.impex.jalo.exp.Exporter.exportInternal(Exporter.java:535)
     at de.hybris.platform.impex.jalo.exp.Exporter.runScriptBasedExport(Exporter.java:239)
     at de.hybris.platform.impex.jalo.exp.Exporter.export(Exporter.java:179)
     at de.hybris.platform.impex.jalo.cronjob.ImpExExportJob.performCronJob(ImpExExportJob.java:55)
     at de.hybris.platform.cronjob.jalo.Job.execute(Job.java:1390)
     at de.hybris.platform.cronjob.jalo.Job.performImpl(Job.java:814)
     at de.hybris.platform.cronjob.jalo.Job.access$1(Job.java:767)
     at de.hybris.platform.cronjob.jalo.Job$JobRunable.run(Job.java:686)
     at de.hybris.platform.util.threadpool.PoolableThread.internalRun(PoolableThread.java:208)
     at de.hybris.platform.core.threadregistry.RegistrableThread.run(RegistrableThread.java:135)
 
 18.09.03 13:51:45:180    INFO    Exported 8273 items in 60 s (speed 137 items/s).
 18.09.03 13:51:45:180    INFO    Overall exported items are 8273.
 18.09.03 13:51:55:556    ERROR    line 3 at main script: error executing code line at 3 : Sourced file: inline evaluation of: ``impex.exportItems( "Media" , false );'' : Method Invocation impex.exportItems




What could be the issue ?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member618655
Active Participant
0 Kudos

Debug DefaultExportMediaHandler and see which object is throwing null pointer and where is it getting passed from. that should resolve your issue.