首页 \ 问答 \ 如何解释SBT错误消息(How to interpret SBT error messages)

如何解释SBT错误消息(How to interpret SBT error messages)

在scalatra中做一些工作,并且在运行./sbt时,我看到了以下错误消息:

[trace] Stack trace suppressed: run last compile:sources for the full output.
[error] (compile:sources) org.fusesource.scalate.InvalidSyntaxException: `val' expected but `s' found at 1.12
[error] Total time: 0 s, completed Jul 1, 2013 6:04:31 PM

任何人都可以对1.12所指的内容有所了解吗? 我正在运行一个非常基本的Scalatra框架,稍微修改(添加了一个.ssp文件,一个.scala文件已编辑)来自用g8下载的hello-scala标准


Doing some work in scalatra, and when running ./sbt, I'm seeing this error message:

[trace] Stack trace suppressed: run last compile:sources for the full output.
[error] (compile:sources) org.fusesource.scalate.InvalidSyntaxException: `val' expected but `s' found at 1.12
[error] Total time: 0 s, completed Jul 1, 2013 6:04:31 PM

Can anyone give some insight into what 1.12 refers to? I'm running a pretty basic Scalatra framework, slightly modified (one .ssp file added, one .scala filed edited) from the hello-scala standard that downloads with g8


原文:https://stackoverflow.com/questions/17414594
更新时间:2024-05-03 12:05

最满意答案

你的问题在这里:

rs.getString("cad_add_line_2" + "cad_add_line_3" + "cad_add_line_4")

这将编译为:

rs.getString("cad_add_line_2cad_add_line_3cad_add_line_4")

我强烈怀疑没有这样的专栏存在。


你的意思是:

rs.getString("cad_add_line_2")
+ rs.getString("cad_add_line_3")
+ rs.getString("cad_add_line_4")

你在这里有完全相同的问题:

rs.getString("cad_postal_code" + "cad_postal_cd_4")

Your issue is here:

rs.getString("cad_add_line_2" + "cad_add_line_3" + "cad_add_line_4")

This will compile to:

rs.getString("cad_add_line_2cad_add_line_3cad_add_line_4")

And I would strongly suspect no such column exists.


Did you mean:

rs.getString("cad_add_line_2")
+ rs.getString("cad_add_line_3")
+ rs.getString("cad_add_line_4")

You have the exact same issue here:

rs.getString("cad_postal_code" + "cad_postal_cd_4")

相关问答

更多
  • 建议你这样试试看: 1. 在 Eclipse 中新一个 maven 工程。 2. 修改 pom.xml 文件添加如下内容: 3. org.springframework.boot spring-boot-starter-parent 1.5.9.RELEASE org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-actuator org.springframework.bo ...
  • spring
  • 默认的@SpringBootApplication仅对应用程序类的包和所有子包启用组件扫描。 由于TestApp的包是com.test,而TestBean的包是com.bean,因此组件扫描不会检测bean类。 解: 如果您使用的是Spring Boot 1.2.x: 将以下注释添加到TestApp类: @ComponentScan({"com.test", "com.bean"}) 或者将TestBean移动到com.test的子包,例如com.test.bean 如果您已经在使用Spring Boot ...
  • unsupportedMediaTypeException方法的@ExceptionHandler注释不包含IllegalArgumentException ,而不是: @ResponseStatus(HttpStatus.UNSUPPORTED_MEDIA_TYPE) @ExceptionHandler(value = { UnsupportedMediaTypeException.class, InvalidMediaTypeException.class }) public void unsup ...
  • if在JSP中,这不是一个正确的语法。 这段代码就是Thymeleaf中的例子。 在JSP中,您应该使用c:if代替:
    .... This is not a correct syntax for if in JSP. This snippet of code is example of if in Thymeleaf. In JSP you should ...
  • Spring Boot是独一无二的弹簧装置,包含电池。 如果你使用它,你会浪费更少的时间在非功能上,因为你会免费获得很多东西。 与经典的Spring设置相比,我观察到的优点列表(当然,还有更多,请查看Spring Boot网站): 依赖关系管理 - 常用库的版本是预先选定的,并且可以分组到您可以包含在项目中的不同入门POM中。 通过选择一个Spring Boot版本,您可以隐式选择几十个依赖项,否则您将不得不自行选择和协调自己 自动配置 - 您不必手动配置分派器servlet,静态资源映射,属性源加载器,消 ...
  • 好吧我想我可能已经解决了。 我确实需要进行一些进一步的测试。 经过调查,似乎spark被配置为在Jetty上运行 ,而不是在Tomcat 上运行 。 查看日志文件,我可以看到它正在尝试使用Jetty。 我查看了依赖项,并找到了一个org.eclipse.jetty.orbit 。 我设法通过在configurations.all下面添加它来排除它 exclude module: 'javax.servlet' Ok I think I may have solved it. I do need to ru ...
  • 你的问题在这里: rs.getString("cad_add_line_2" + "cad_add_line_3" + "cad_add_line_4") 这将编译为: rs.getString("cad_add_line_2cad_add_line_3cad_add_line_4") 我强烈怀疑没有这样的专栏存在。 你的意思是: rs.getString("cad_add_line_2") + rs.getString("cad_add_line_3") + rs.getString("cad_add ...
  • 在您的示例中,您的EntityManager始终为null。 Spring不会自动将一个连接到您的Entity类。 我也不确定你的目标是什么,但我敢打赌,你很可能不希望让你的Entity拥有你的EntityManager 我认为你可能在寻找的是Spring Data Repositories 。 我会建议阅读,以获得基本知识。 开始使用存储库: 首先我会做的是删除transient EntityManager entityManager; 和您的Account类中的persist/merge功能。 在App ...

相关文章

更多

最新问答

更多
  • python的访问器方法有哪些
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。
  • 响应navi重叠h1和nav上的h1链接不起作用(Responsive navi overlaps h1 and navi links on h1 isn't working)
  • 在C中读取文件:“r”和“a +”标志的不同行为(Reading a File in C: different behavior for “r” and “a+” flags)
  • NFC提供什么样的带宽?(What Kind of Bandwidth does NFC Provide?)
  • 元素上的盒子阴影行为(box-shadow behaviour on elements)
  • Laravel检查是否存在记录(Laravel Checking If a Record Exists)
  • 设置base64图像的大小javascript - angularjs(set size of a base64 image javascript - angularjs)
  • 想学Linux 运维 深圳有哪个培训机构好一点
  • 为什么有时不需要在lambda中捕获一个常量变量?(Why is a const variable sometimes not required to be captured in a lambda?)
  • 在Framework 3.5中使用服务器标签<%=%>设置Visible属性(Set Visible property with server tag <%= %> in Framework 3.5)
  • AdoNetAppender中的log4net连接类型无效(log4net connection type invalid in AdoNetAppender)
  • 错误:发送后无法设置标题。(Error: Can't set headers after they are sent. authentication system)
  • 等待EC2实例重启(Wait for an EC2 instance to reboot)
  • 如何在红宝石中使用正则表达式?(How to do this in regex in ruby?)
  • 使用鼠标在OpenGL GLUT中绘制多边形(Draw a polygon in OpenGL GLUT with mouse)
  • 江民杀毒软件的KSysnon.sys模块是什么东西?
  • 处理器在传递到add_xpath()或add_value()时调用了什么顺序?(What order are processors called when passed into add_xpath() or add_value()?)
  • sp_updatestats是否导致SQL Server 2005中无法访问表?(Does sp_updatestats cause tables to be inaccessible in SQL Server 2005?)
  • 如何创建一个可以与持续运行的服务交互的CLI,类似于MySQL的shell?(How to create a CLI that can interact with a continuously running service, similar to MySQL's shell?)
  • AESGCM解密失败的MAC(AESGCM decryption failing with MAC)
  • SQL查询,其中字段不包含$ x(SQL Query Where Field DOES NOT Contain $x)
  • PerSession与PerCall(PerSession vs. PerCall)
  • C#:有两个构造函数的对象:如何限制哪些属性设置在一起?(C#: Object having two constructors: how to limit which properties are set together?)
  • 平衡一个精灵(Balancing a sprite)
  • n2cms Asp.net在“文件”菜单上给出错误(文件管理器)(n2cms Asp.net give error on Files menu (File Manager))
  • Zurb Foundation 4 - 嵌套网格对齐问题(Zurb Foundation 4 - Nested grid alignment issues)
  • 湖北京山哪里有修平板计算机的