MAC 无法通过数据线连接到手机

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/Jff316948714/article/details/78284776


原本准备了一台 魅族手机进行游戏测试,连接数据线后却无法显示手机连接状态 (exlipse下始终不能显示手机连接状态)

 

解决方案如下:

1. 在 Android 的 sdk/tools 路径下终端执行命令 android update adb
完成后在路径 /Users/username/.android 下会看到 adb_usb.ini 文件 (username : 你自己的电脑名称)

2. 通过终端执行命令行 system_profiler SPUSBDataType
或者 通过 关于本机 --- 系统报告 --- USB  两种方式找到 手机的 Vendor ID: 0x2a45

3.将Vendor ID 的值加入到 adb_usb.ini 文件中

1

ox2a45

注意:第一行写1

4. 然后在终端依次执行 
adb kill-server
adb start-server

 

5. 重新连接手机

 

展开阅读全文

linux下无法通过数据源连接到数据库

11-24

开发环境:myEclipse6.0、jdk1.4、weblogic10rn我想实现用java程序通过jndi的方式链接数据库,数据源名称为loushang,在windows下测试无任何问题,但是在linux系统下会报如下错误:rn rnweblogic.jdbc.extensions.PoolPermissionsSQLException: weblogic.common.resourcepool.ResourcePermissionsException: User "" does not have permission to perform operation "reserve" on resource "loushang" of module "null" of application "null" of type "ConnectionPool"rn at weblogic.jdbc.common.internal.JDBCUtil.wrapAndThrowResourceException(JDBCUtil.java:252)rn at weblogic.jdbc.pool.Driver.connect(Driver.java:160)rn at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:642)rn at weblogic.jdbc.jts.Driver.connect(Driver.java:124)rn at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:338)rn at com.inspur.hysk.database.DbConnection.getConnection(DbConnection.java:35)rn at com.inspur.hysk.yyyJmjBind.YyyJmjBind.bdKpzd(YyyJmjBind.java:34)rn at com.inspur.hysk.webservice.SecurtyWebService.bdKpzd(SecurtyWebService.java:142)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:600)rn at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194)rn at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:98)rn at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)rn at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)rn at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)rn at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)rn at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)rn at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)rn at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)rn at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)rn at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(Unknown Source)rn at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)rn at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)rn at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)rn at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)rn at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)rnrn请各位大侠帮忙解决一下,非常感谢! 论坛

没有更多推荐了,返回首页