Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: None
    • Labels:
      None
    • Release Notes:
      Fixed test failures in the PurchaseHistory, StreamConversion, and WikipediaPipeline example apps included in the sdk.
    • Rank:
      1|hzyzxj:

      Description

      The Purchase app example test fails when run in the sdk.

      2015-09-16 19:08:36,205 ERROR [executor-2] purchase.UserProfileServiceHandler80bf997a1ae2bdbaa7c97ee1e884e310 (?:setUserProfile(?)) - Transaction Failure:
      co.cask.tephra.TransactionFailureException: User handler exception:
      	at co.cask.cdap.examples.purchase.UserProfileServiceHandler80bf997a1ae2bdbaa7c97ee1e884e310.setUserProfile(Unknown Source)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:79)
      	at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:41)
      	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
      	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
      	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
      	at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43)
      	at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67)
      	at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NoClassDefFoundError: org/jboss/netty/buffer/ChannelBuffers
      	at co.cask.cdap.examples.purchase.UserProfileServiceHandler.setUserProfile(UserProfileServiceHandler.java:65)
      	... 16 more
      Caused by: java.lang.ClassNotFoundException: org.jboss.netty.buffer.ChannelBuffers
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      	... 17 more
      

      This is not a problem when run in cdap, only if you build the sdk then run 'mvn package' from the examples/Purchase directory in the sdk. I'm guessing we have similar problems with other apps.

        Attachments

          Activity

            People

            • Assignee:
              ashau Albert Shau
              Reporter:
              ashau Albert Shau
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: