{"action":"opened","issue":{"url":"https://api.github.com/repos/Stratio/Crossdata/issues/587","repository_url":"https://api.github.com/repos/Stratio/Crossdata","labels_url":"https://api.github.com/repos/Stratio/Crossdata/issues/587/labels{/name}","comments_url":"https://api.github.com/repos/Stratio/Crossdata/issues/587/comments","events_url":"https://api.github.com/repos/Stratio/Crossdata/issues/587/events","html_url":"https://github.com/Stratio/Crossdata/issues/587","id":161414276,"number":587,"title":"java.lang.RuntimeException: java.lang.RuntimeException: Table/View Not Found: <xxxx>","user":{"login":"cpedrero","id":6648128,"avatar_url":"https://avatars.githubusercontent.com/u/6648128?v=3","gravatar_id":"","url":"https://api.github.com/users/cpedrero","html_url":"https://github.com/cpedrero","followers_url":"https://api.github.com/users/cpedrero/followers","following_url":"https://api.github.com/users/cpedrero/following{/other_user}","gists_url":"https://api.github.com/users/cpedrero/gists{/gist_id}","starred_url":"https://api.github.com/users/cpedrero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpedrero/subscriptions","organizations_url":"https://api.github.com/users/cpedrero/orgs","repos_url":"https://api.github.com/users/cpedrero/repos","events_url":"https://api.github.com/users/cpedrero/events{/privacy}","received_events_url":"https://api.github.com/users/cpedrero/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-21T11:39:12Z","updated_at":"2016-06-21T11:39:12Z","closed_at":null,"body":"Hi mates! we was trying to test in our project a query over Crossdata 1.3.0-RC3-SNAPSHOT and when Cassandra table is not defined in Crossdata Catalog yet, I get a RuntimeException like thisone:\r\n\r\n`Caused by: java.lang.Exception: java.lang.RuntimeException: Table/View Not Found: test_table\r\n\tat com.stratio.crossdata.server.actors.JobActor$$anonfun$com$stratio$crossdata$server$actors$JobActor$$receive$1.applyOrElse(JobActor.scala:153)\r\n\tat akka.actor.Actor$class.aroundReceive(Actor.scala:467)\r\n\tat com.stratio.crossdata.server.actors.JobActor.aroundReceive(JobActor.scala:96)`\r\n\r\nMy code is similar to your driver example over Cassandra:\r\n\r\n`\r\nimport akka.actor.{Actor, ActorLogging, Props}\r\nimport akka.http.scaladsl.model.StatusCodes._\r\nimport com.datio.daas.core.bean.XDBeanQuery\r\nimport com.datio.daas.core.crossdata.SqlQueryCreator\r\nimport com.datiobd.daas.model.bean.BeanErrorRequest\r\nimport com.stratio.crossdata.driver.Driver\r\nimport com.stratio.crossdata.driver.config.DriverConf\r\nimport scala.collection.JavaConverters._\r\nclass XDActor(targets: List[String]) extends Actor with ActorLogging {\r\n\r\n  val conf = new DriverConf()\r\n    .setFlattenTables(false)\r\n    .setTunnelTimeout(30)\r\n    .setClusterContactPoint(targets.asJava)\r\n\r\n  lazy val driver = Option(Driver.getOrCreate(conf))\r\n  override def receive: Receive = {\r\n    case xdBean: XDBeanQuery => {\r\n      try {\r\n        for {\r\n          xdDriver <- driver\r\n        } {\r\n          sender !\r\n            xdDriver.sql(SqlQueryCreator(xdBean.sqlQuery).createSelect).waitForResult().resultSet\r\n        }\r\n      } catch {\r\n        case ex: Exception =>\r\n          sender !  Left(BeanErrorRequest(BadRequest.intValue, ex.getCause.getMessage))\r\n      }finally {\r\n        driver.foreach(_.stop())\r\n      }\r\n    }\r\n\r\n  }\r\n}`\r\n\r\nMaybe I did something wrong or maybe we should get an ErrorSQLResult o something like that to manage the error message.\r\nCould you help us about that? Thanks!"}}
{"actor":{"display_login":"cpedrero"}}