Expand my Community achievements bar.

Issues while integrating AEM with Youtube

Avatar

Level 1

0down votefavorite

I am using AEM 6.2. I need to integrate my AEM instance with Youtube. The scenario is when someone publishes a video from Author instance, the video should be published to Publisher instance as well as Youtube. Upon deactivation of any video, it should get removed from Youtube. I followed steps given in:

https://helpx.adobe.com/experience-manager/6-2/assets/using/video.html Publishing videos to youtube.

I have set up a Cloudservice in Author instance as mentioned in above document. This cloud service connects to my Youtube channel but when I activate any video, I am getting following exception:

*15.02.2018 07:05:16.367 ERROR [168.133.61.135 [1518696316001] POST /bin/replicate.json HTTP/1.1] com.day.cq.dam.s7dam.common.youtube.impl.YouTubeAccountServiceImpl error determining if asset XYZ.mp4 has already been published on channel youtube_channel_1 15.02.2018 07:05:16.367 ERROR [168.133.61.135 [1518696316001] POST /bin/replicate.json HTTP/1.1] com.day.cq.dam.s7dam.common.preprocessor.DynamicMediaPreprocessor Unable to analyze /content/dam/corporate-us/videos/XYZ.mp4 for YouTube publish java.lang.NullPointerException: null at com.day.cq.dam.s7dam.common.youtube.impl.YouTubeAccountServiceImpl.publishVideoToYouTube(YouTubeAccountServiceImpl.java:210) at com.day.cq.dam.s7dam.common.preprocessor.DynamicMediaPreprocessor.preprocess(DynamicMediaPreprocessor.java:78) at com.day.cq.replication.impl.ReplicatorImpl.replicate(ReplicatorImpl.java:462) at com.day.cq.replication.impl.servlets.CommandServlet.doPost(CommandServlet.java:116)*

2 Replies

Avatar

Level 10

We have asked the Asset team to look here and check the docs.

Avatar

Level 10

Eng team replied -- There’s also AEM 6.2 SP1 CFP 2 that fixed an issue if a proxy is setup and YouTube failed.