Magja throws Product not exists when uploading a file

33 views
Skip to first unread message

Nauman Basheer

unread,
Sep 10, 2013, 6:34:31 AM9/10/13
to magja-...@googlegroups.com
Hello, 
I have tried uploading a product using Magja. When I attach an image, it throws me an error, Product not exists. 

I have simply followed this example https://code.google.com/p/magja/wiki/Examples_Products

Please let me know what should I do. 

Nauman Basheer

unread,
Sep 10, 2013, 6:37:51 AM9/10/13
to magja-...@googlegroups.com
The complete exception is : 

com.google.code.magja.service.ServiceException: Product not exists.
at com.google.code.magja.service.product.ProductMediaRemoteServiceImpl.save(ProductMediaRemoteServiceImpl.java:203)
at com.google.code.magja.service.product.ProductRemoteServiceImpl.save(ProductRemoteServiceImpl.java:517)
at com.google.code.magja.service.product.ProductRemoteServiceImpl.save(ProductRemoteServiceImpl.java:424)
at com.aroha.medi.mckesson.Manager.upload(Manager.java:234)
at com.aroha.medi.mckesson.Manager.run(Manager.java:136)

Mike Meiners

unread,
Feb 3, 2014, 11:14:47 AM2/3/14
to magja-...@googlegroups.com
I just ran into a similar problem, but found this post about Magento treating sku's as integers:

I had started from the example you mentioned, but had changed the sku to an integer-based one like we use in our inventory, and starting seeing this problem.  Following the suggestion in the link, I added a space to the end of the sku, and then it worked fine:
Product product = new Product();
product.setSku("224143 ");
...
Reply all
Reply to author
Forward
0 new messages