{"id":6222,"date":"2014-04-13T23:30:56","date_gmt":"2014-04-13T23:30:56","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/problem-about-pandastream-collection-of-common-programming-errors\/"},"modified":"2014-04-13T23:30:56","modified_gmt":"2014-04-13T23:30:56","slug":"problem-about-pandastream-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/problem-about-pandastream-collection-of-common-programming-errors\/","title":{"rendered":"problem about pandastream-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6c3348b9c0cddefb57d0ae45dcc3d1c4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMaksim<br \/>\njava file-upload httpclient pandastream<br \/>\nI&#8217;m building Java client that will automatically upload file from Java server to Panda Instance that I installed on my EC2 cloud using their AMI. I&#8217;m trying to use Apache HTTP Components to upload to Panda Server (Panda Stream). It works fine with my browser client but for some reason I can&#8217;t upload from that library. Here is my code:String videoUploadUrl = &#8220;http:\/\/[panda server ip]\/videos\/&#8221; + getVideoID() + &#8220;\/upload.xml&#8221;; File file = new File(&#8220;\/temp\/videofile.mp4&#8221;);DefaultHttpClient httpclient<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c45e77a32972b739b5f7c919fb6e4989?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\npfdevilliers<br \/>\nruby-on-rails heroku pandastream<br \/>\nI have followed the pandastream setup docs on Heroku, available here https:\/\/devcenter.heroku.com\/articles\/pandastreamHowever when using heroku run console and executing Panda::Profile.all I getirb(main):001:0&gt; Panda::Profile.all NoMethodError: undefined method `connection&#8217; for nil:NilClassfrom \/app\/vendor\/bundle\/ruby\/1.9.1\/gems\/panda-1.5.0\/lib\/panda\/modules\/cloud_connection.rb:4:in `connection&#8217;from \/app\/vendor\/bundle\/ruby\/1.9.1\/gems\/panda-1.5.0\/lib\/panda\/modules\/finders.rb:19:in `find_object<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Maksim java file-upload httpclient pandastream I&#8217;m building Java client that will automatically upload file from Java server to Panda Instance that I installed on my EC2 cloud using their AMI. I&#8217;m trying to use Apache HTTP Components to upload to Panda Server (Panda Stream). It works fine with my browser client but for some reason [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6222","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6222"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6222\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}