我正在使用EJB 3.0和JBoss AS 7.1.1 Final.我尝试将客户端连接到服务器时收到此错误:
Aug 15, 2012 12:05:00 PM org.jboss.ejb.client.EJBClient <clinit>
INFO: JBoss EJB Client version 1.0.5.Final
Exception in thread "main" java.lang.IllegalStateException: No EJB receiver available for handling
[appName:GrahamsProjServer,modulename:GrahamsProjServer,distinctname:] combination for invocation context org.jboss.ejb.client.EJBClientInvoc
ationContext@6a340101
at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:584)
at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:119)
at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)
at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)
at $Proxy0.test(Unknown Source)
at grahamsprojclient.main.Start.testItAll(Unknown Source)
at grahamsprojclient.main.Start.main(Unknown Source)
Run Code Online (Sandbox Code Playgroud)
这是我的standalone.xml:http://pastebin.com/BuvQ6f2H
这里是我的jboss-ejb-client.properties:http://pastebin.com/mKpqZuZJ
这是我的客户的代码:http://pastebin.com/wcVBZvKn
我的classpath确实包含jboss-ejb-client.properties.通过查看清单我确定了.
当我启动客户端时,服务器已经运行,服务器每次都会打印出来:
12:05:00,330 INFO [org.jboss.as.naming] (Remoting "h890bp1" task-3) JBAS011806: Channel end notification received, …
我正在尝试编写一个带有Javascript日期对象的查询,然后将其放入SQL Server和Oracle数据库类型都可识别的对象类型中.
问题是我正在使用webservices.所以它必须是一个字符串,而不是一个实际的传递参数.这就是我的意思:
var date = new Date();
var firstDayOfMonth = new Date(date.getFullYear(), date.getMonth(), 1);
var lastDayOfMonth = new Date(date.getFullYear(), date.getMonth() + 1, 0);
var webServicesQueryWhereClause = 'readDate BETWEEN '+firstDayOfMonth+' AND '+lastDayOfMonth;
Run Code Online (Sandbox Code Playgroud)
除了firstDayOfMonth并且lastDayOfMonth被to_date()实际上包含在数据库可以读取的日期格式之类的东西之外.例如:
var webServicesQueryWhereClause = 'readDate BETWEEN to_date('+firstDayOfMonth+') AND to_date('+lastDayOfMonth+') ';
Run Code Online (Sandbox Code Playgroud)
我应该使用什么来将这些日期放在SQL Server和Oracle都能读取的表单中?
我在两台不同的 PC 上开发 Flutter 应用程序,并希望 Flutter 版本对两者都相同。我在dev频道上,当我执行flutter upgrade它时,它会升级到该频道中的最新版本。
两天前,我flutter upgrade在一台 PC 上做了一个,它转到了1.2.2. 今天在我的另一台 PC 上,我做了一个,flutter upgrade 1.2.2但它转到了版本1.3.2。
升级时有没有办法指定flutter版本?
我需要创建一个报告,其中列数根据传递给iReport的数据而变化,就像子报表一样.有没有办法做到这一点?
我是Kotlin的忠实粉丝,并希望将它与Codename One一起使用而不是Java.由于Kotlin与Java无缝连接,我能用它来构建一个带有Codename One的应用程序吗?
我正在使用Angular 4.3.3和JIT编译器,并在运行我的应用程序时得到以下错误:
Property binding ngforOf not used by any directive on an embedded template.
Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".
Run Code Online (Sandbox Code Playgroud)
我已经确保BrowserModule在我的主应用程序模块中导入并且我已经导入了CommonModule我的子模块,该错误源自此.
这是抛出错误的模板:
<div class="background"></div>
<div class="content normal-page">
<ons-fab position="top right" ripple>+</ons-fab>
<ons-list>
<ons-list-item *ngFor="let item of items; let i = index">
<div class="center">
#{{i}} msg: {{item.msg}}
</div>
</ons-list-item>
</ons-list>
</div>
Run Code Online (Sandbox Code Playgroud)
由于我将正确的模块导入正确的位置可能导致此错误?
一段时间以来,我一直在寻找这个问题的答案,但收到的消息褒贬不一。我知道分号在 JavaScript 中是必需的,因为自动分号插入 (ASI),但是 TypeScript 有相同的限制吗?
我认为它不会,因为它会转换为 JavaScript,并且很可能会在 ASI 会导致问题的地方为您插入一个分号。但我想确定。
我有一个PageView与a 一起使用,BottomNavigationBar以便我可以使用底部栏而不是普通导航栏的可滑动和可点击的选项卡。然后我有两个标签/页面,您可以在它们之间滑动。一个有一个包含 4 个 UI 元素的表单,另一个还没有 UI 元素。一切正常,但性能PageView很差。
当我在页面之间滑动时,起初非常缓慢和跳跃,绝对不是 Flutter 承诺的每秒 60 帧。甚至可能不到 30 次。虽然性能越来越好,但在刷了几次之后,它几乎像一个普通的原生应用程序。
以下是一个包含了我的网页类PageView,BottomNavigationBar和逻辑连接它们。有谁知道我如何提高性能PageView?
class _TabbarPageState extends State<TabbarPage> {
int _index = 0;
final controller = PageController(
initialPage: 0,
keepPage: true,
);
final _tabPages = <Widget>[
StartPage(),
OtherPage(),
];
final _tabs = <BottomNavigationBarItem>[
BottomNavigationBarItem(
icon: Icon(Icons.play_arrow),
title: Text('Start'),
),
BottomNavigationBarItem(
icon: Icon(Icons.accessibility_new),
title: Text('Other'),
)
];
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: …Run Code Online (Sandbox Code Playgroud) 我正在使用 ES5 制作一个扩展HTMLAnchorElement. 由于 Web 组件仅适用于 ES6 及更高版本,因此我在此处包含了 ES5 polyfill 。
制作一个扩展的 web 组件,HTMLElement然后在页面上使用它的标签工作正常。但是扩展除此之外的任何元素HTMLElement似乎都不起作用。
我正在使用最新版本的谷歌浏览器来测试这个。
下面是我的扩展元素的代码HTMLAnchorElement。
function CustomAnchor() {
HTMLAnchorElement.call(this);
}
CustomAnchor.prototype.connectedCallback = function () {
console.log('anchor added to dom');
this.addEventListener('click',
function(e) {
console.log('test');
e.preventDefault();
var result = confirm('Confirmed!');
}
);
};
window.customElements.define('custom-anchor', CustomAnchor, {extends: 'a'});
Run Code Online (Sandbox Code Playgroud)
这是创建元素并将其添加到 DOM 的代码:
var el1 = document.createElement("a")
el1.setAttribute("is", "custom-anchor")
el1.setAttribute("href", "http://www.google.com/")
el1.text = "Go to Google"
document.body.appendChild(el1)
Run Code Online (Sandbox Code Playgroud)
这是 DOM 中显示的内容,看起来是正确的:
<a is="custom-anchor" href="http://www.google.com/">Go to …Run Code Online (Sandbox Code Playgroud) 我有一个使用 Create React App 和 Typescript/React 模板设置的 React 项目。除了当我尝试调试异步/等待函数时,一切似乎都工作正常。
Chrome 开发工具要么将异步函数内的断点显示为灰色,要么当我尝试单击断点(如下面的第 6 行)时,它会立即将断点移动到设置变量的行(第 5 行)。
有谁知道如何解决这一问题?
flutter ×2
javascript ×2
typescript ×2
angular ×1
codenameone ×1
dart ×1
ejb ×1
ejb-3.0 ×1
html ×1
ireport ×1
jboss ×1
jboss7.x ×1
kotlin ×1
oracle ×1
reactjs ×1
sql ×1
sql-server ×1