找回密码
 注册账号

QQ登录

只需一步,快速开始

手机号码,快捷登录

手机号码,快捷登录

初学者课程:T3自学|T6自学|U8自学软件下载课件下载工具下载资料:通资料|U8资料|NC|培训|年结积分规则 | 使用常见问题Q&A
知识库:U8 | | NC | U9 | OA | 政务U8|U9|NCC|NC65|NC65客开|NCC客开新手必读 | 任务 | 快速增金币用友QQ群[微信群]
查看: 8279|回复: 5

关于PersistenceManager连接数据库的问题

[复制链接]
发表于 2012-10-26 17:04:22 | 显示全部楼层 |阅读模式
悬赏20金币未解决
在窗口中的自定义按钮中实现对表的更新操作,但代码在
在调用
sessionManager =PersistenceManager.getInstance();
的时候异常

[AWT-EventQueue-0] ERROR - get data source design error,can't connect to database
nc.bs.framework.exception.ConnectorException: service is not defined as expected:design
        at nc.bs.framework.comn.cli.RemoteResolverImpl.lookup(RemoteResolverImpl.java:146)
        at nc.bs.framework.comn.cli.ClientNCLocator.lookup(ClientNCLocator.java:28)
        at nc.jdbc.framework.DataSourceCenter.getConnection(DataSourceCenter.java:127)
        at nc.jdbc.framework.DataSourceCenter.getConnection(DataSourceCenter.java:99)
        at nc.jdbc.framework.ConnectionFactory.getConnection(ConnectionFactory.java:27)
        at nc.jdbc.framework.JdbcSession.<init>(JdbcSession.java:62)
        at nc.jdbc.framework.JdbcPersistenceManager.init(JdbcPersistenceManager.java:983)
        at nc.jdbc.framework.JdbcPersistenceManager.<init>(JdbcPersistenceManager.java:55)
        at nc.jdbc.framework.PersistenceManager.getInstance(PersistenceManager.java:426)
        at nc.ui.t3.stockprebill.command.DefButton101BoCommand.execute(DefButton101BoCommand.java:30)
        at nc.ui.t3.stockprebill.MyEventHandler.onBoCommand(MyEventHandler.java:95)
        at nc.ui.t3.stockprebill.MyEventHandler.onButton(MyEventHandler.java:82)
        at nc.ui.trade.manage.BillManageUI.onButtonClicked(BillManageUI.java:800)
        at nc.ui.pub.ToftPanel.handleButtonEvent(ToftPanel.java:203)
        at nc.ui.pub.FramePanel.dispatchButtonEvent(FramePanel.java:360)
        at nc.ui.pub.FramePanel.access$300(FramePanel.java:69)
        at nc.ui.pub.FramePanel$ButtonHandler.buttonClicked(FramePanel.java:227)
        at nc.ui.pub.ButtonBar.firePostEvent(ButtonBar.java:352)
        at nc.ui.pub.ButtonBar$1.run(ButtonBar.java:217)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: java.lang.ClassNotFoundException: nc.middleware.tran.NCDataSource
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at nc.bs.framework.comn.cli.RemoteResolverImpl.lookup(RemoteResolverImpl.java:142)
        ... 25 more



发表于 2012-11-1 11:38:27 | 显示全部楼层
ERROR - get data source design error,can't connect to database
不能连接到数据库
回复

使用道具 举报

发表于 2012-11-14 10:09:34 | 显示全部楼层
顶一个!!!
回复

使用道具 举报

发表于 2012-12-24 13:26:52 | 显示全部楼层
数据源design设置了没有

点评

都设置了,还是不起作用  详情 回复 发表于 2013-1-7 16:10
回复

使用道具 举报

发表于 2013-1-7 16:10:07 | 显示全部楼层
回复

使用道具 举报

发表于 2013-1-13 22:05:22 | 显示全部楼层
{:soso_e103:}怎么解决
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号

本版积分规则

QQ|站长微信|Archiver|手机版|小黑屋|用友之家 ( 蜀ICP备07505338号|51072502110008 )

GMT+8, 2024-11-21 20:33 , Processed in 0.079912 second(s), 15 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表