小编Ale*_*x M的帖子

启动前报告UiAutomation未连接错误

当我尝试将APK上传到android market时,我收到了以下错误的启动前报告。这仅在三星银河S9上发生。

java.lang.IllegalStateException: UiAutomation not connected!
    at android.app.UiAutomation.throwIfNotConnectedLocked(UiAutomation.java:1043)
    at android.app.UiAutomation.waitForIdle(UiAutomation.java:647)
    at android.support.test.uiautomator.r.a(QueryController.java:36)
    at android.support.test.uiautomator.r.c(QueryController.java:32)
    at android.support.test.uiautomator.r.a(QueryController.java:9)
    at android.support.test.uiautomator.y.g(UiDevice.java:91)
    at androidx.test.tools.crawler.platform.uiautomator.UiAutomatorScreenStateBuilder.getCurrentActivity(UiAutomatorScreenStateBuilder.java:39)
    at androidx.test.tools.crawler.platform.uiautomator.UiAutomatorStateExtractor.getCurrentActivity(UiAutomatorStateExtractor.java:34)
    at androidx.test.tools.crawler.platform.hybrid.HybridStateExtractor.getCurrentActivity(HybridStateExtractor.java:31)
    at androidx.test.tools.crawler.controller.remote.RemotePlatform.handlePerformActionMessage(RemotePlatform.java:25)
    at androidx.test.tools.crawler.controller.remote.RemotePlatform.access$300(RemotePlatform.java:91)
    at androidx.test.tools.crawler.controller.remote.RemotePlatform$ControllerMessageHandler.handleMessage(RemotePlatform.java:8)
Run Code Online (Sandbox Code Playgroud)

我认为与我的代码无关,因为我在android studio模拟器中运行该应用程序时没有出现问题。

有什么帮助吗?

谢谢你的帮助

java android developer-console

5
推荐指数
0
解决办法
442
查看次数

JPQL查询非entites集合

我想用一组非实体进行JPQL查询.这是我的表实体:

@Entity
@Table(name = "ct_table")
public class Table {
...

@CollectionOfElements(fetch = FetchType.EAGER)
@JoinTable(name = "ct_table_result", joinColumns = @JoinColumn(name = "tableId"))
@MapKey(columns = { @Column(name = "label") })
@Column(name = "value")
private Map<String, String> tableResults;
...
Run Code Online (Sandbox Code Playgroud)

然后我尝试做这样的查询

select count(*) from table where table.tableResults['somekey'].value='somevalue'
Run Code Online (Sandbox Code Playgroud)

但我得到以下异常:

Cannot create element join for a collection of non-entities!
Run Code Online (Sandbox Code Playgroud)

有什么建议??

谢谢你的时间

编辑:

我使用JPA 1和hibernate 3.3.JBoss 5中的默认库

java jpa jpql

3
推荐指数
1
解决办法
1497
查看次数

Mashery vs WSO2 vs 3scale

我想知道Mashery,WSO2和3scale之间的区别.之前使用过API管理器的人可以发表意见吗?每个人的优点和缺点是什么

谢谢

干杯

wso2 mashery 3scale

1
推荐指数
1
解决办法
4088
查看次数

标签 统计

java ×2

3scale ×1

android ×1

developer-console ×1

jpa ×1

jpql ×1

mashery ×1

wso2 ×1