更改包名之后报Error while executing: am start -n "com.example.test/com.example.modules.log

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

问题:更改包名后运行App,App可以安装但无法启动Launch Activity具体信息如下:

Error while executing: am start -n "com.example.test/com.example.modules.log

Error type 3

Error:......does not exist.

原因:根据错误信息来看,Android studio任然启动的是上个包名下的Activity,也就说明Android studio缓存了启动信息,我们需要清除它。

解决方案:找到File-> Invalidate Caches / Restart ,重启Android Studio,重启完成后运行APP就可以正常启动了。

展开阅读全文

Mondrian Error:Internal error:Error while executing query

08-29

最近在架构一个Mondrian,但是出错不知道怎么解决,看到的朋友帮帮忙。rn错误如下:rn[code=Java]JPivot had an error ...rnrnorg.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: com.tonbeller.jpivot.olap.model.OlapException: mondrian.olap.MondrianException: Mondrian Error:Internal error: Error while executing query [select [Measures].[SL], [Measures].[PJDJ], [Measures].[ZXSE] ON COLUMNS, ([CPLB].[SYCP], [KHXB].[SYXB]) ON ROWS from [Sales] ]rnorg.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: com.tonbeller.jpivot.olap.model.OlapException: mondrian.olap.MondrianException: Mondrian Error:Internal error: Error while executing query [select [Measures].[SL], [Measures].[PJDJ], [Measures].[ZXSE] ON COLUMNS,rn ([CPLB].[SYCP], [KHXB].[SYXB]) ON ROWSrnfrom [Sales]rn]rn at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.tonbeller.wcf.controller.RequestFilter$MyHandler.normalRequest(RequestFilter.java:139)rn at com.tonbeller.wcf.controller.RequestSynchronizer.handleRequest(RequestSynchronizer.java:127)rn at com.tonbeller.wcf.controller.RequestFilter.doFilter(RequestFilter.java:263)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: javax.servlet.ServletException: javax.servlet.jsp.JspException: com.tonbeller.jpivot.olap.model.OlapException: mondrian.olap.MondrianException: Mondrian Error:Internal error: Error while executing query [select [Measures].[SL], [Measures].[PJDJ], [Measures].[ZXSE] ON COLUMNS,rn ([CPLB].[SYCP], [KHXB].[SYXB]) ON ROWSrnfrom [Sales]rn]rn at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)rn at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)rn at org.apache.jsp.testpage_jsp._jspService(testpage_jsp.java:261)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)rn ... 20 morernCaused by: com.tonbeller.jpivot.olap.model.OlapException: mondrian.olap.MondrianException: Mondrian Error:Internal error: Error while executing query [select [Measures].[SL], [Measures].[PJDJ], [Measures].[ZXSE] ON COLUMNS,rn ([CPLB].[SYCP], [KHXB].[SYXB]) ON ROWSrnfrom [Sales]rn]rn at com.tonbeller.jpivot.mondrian.MondrianModel.getResult(MondrianModel.java:305)rn at com.tonbeller.jpivot.olap.model.OlapModelDecorator.getResult(OlapModelDecorator.java:54)rn at com.tonbeller.jpivot.olap.model.CachingOlapModel.getResult(CachingOlapModel.java:48)rn at com.tonbeller.jpivot.olap.model.OlapModelDecorator.getResult(OlapModelDecorator.java:54)rn at com.tonbeller.jpivot.table.TableComponent.updateOlapModel(TableComponent.java:246)rn at com.tonbeller.jpivot.table.TableComponent.render2(TableComponent.java:251)rn at com.tonbeller.jpivot.table.TableComponent.render(TableComponent.java:235)rn at com.tonbeller.wcf.component.RendererTag.doEndTag(RendererTag.java:137)rn at org.apache.jsp.testpage_jsp._jspx_meth_wcf_005frender_005f6(testpage_jsp.java:1356)rn at org.apache.jsp.testpage_jsp._jspService(testpage_jsp.java:227)rn ... 23 morernCaused by: mondrian.olap.MondrianException: Mondrian Error:Internal error: Error while executing query [select [Measures].[SL], [Measures].[PJDJ], [Measures].[ZXSE] ON COLUMNS,rn ([CPLB].[SYCP], [KHXB].[SYXB]) ON ROWSrnfrom [Sales]rn]rn at mondrian.resource.MondrianResource$_Def0.ex(MondrianResource.java:785)rn at mondrian.olap.Util.newInternal(Util.java:1340)rn at mondrian.olap.Util.newError(Util.java:1356)rn at mondrian.rolap.RolapConnection.execute(RolapConnection.java:471)rn at com.tonbeller.jpivot.mondrian.MondrianModel.getResult(MondrianModel.java:279)rn ... 32 morernCaused by: mondrian.olap.MondrianException: Mondrian Error:Internal error: Error while loading segment; sql=[select sum("sale"."numbers") as "m0", sum((unitPrice*numbers)) as "m1" from "sale" "sale"]rn at mondrian.resource.MondrianResource$_Def0.ex(MondrianResource.java:785)rn at mondrian.olap.Util.newInternal(Util.java:1340)rn at mondrian.olap.Util.newError(Util.java:1356)rn at mondrian.rolap.SqlStatement.handle(SqlStatement.java:211)rn at mondrian.rolap.SqlStatement.execute(SqlStatement.java:142)rn at mondrian.rolap.RolapUtil.executeQuery(RolapUtil.java:243)rn at mondrian.rolap.RolapUtil.executeQuery(RolapUtil.java:204)rn at mondrian.rolap.agg.SegmentLoader.createExecuteSql(SegmentLoader.java:341)rn at mondrian.rolap.agg.SegmentLoader.load(SegmentLoader.java:75)rn at mondrian.rolap.agg.Aggregation.load(Aggregation.java:166)rn at mondrian.rolap.agg.AggregationManager.loadAggregation(AggregationManager.java:87)rn at mondrian.rolap.FastBatchingCellReader$Batch.loadAggregation(FastBatchingCellReader.java:477)rn at mondrian.rolap.FastBatchingCellReader$Batch.loadAggregation(FastBatchingCellReader.java:413)rn at mondrian.rolap.FastBatchingCellReader.loadAggregation(FastBatchingCellReader.java:207)rn at mondrian.rolap.FastBatchingCellReader.loadAggregations(FastBatchingCellReader.java:188)rn at mondrian.rolap.RolapResult.executeBody(RolapResult.java:754)rn at mondrian.rolap.RolapResult.(RolapResult.java:399)rn at mondrian.rolap.RolapConnection.execute(RolapConnection.java:443)rn ... 33 morernCaused by: java.sql.SQLException: ORA-00942: table or view does not existrnrn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)rn at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)rn at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)rn at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623)rn at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:112)rn at oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:351)rn at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:896)rn at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:383)rn at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:986)rn at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1125)rn at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:205)rn at mondrian.rolap.SqlStatement.execute(SqlStatement.java:128)rn ... 46 morern[/code]rn下面是我的xml文件:rn[code=XML]rnrnrnrnrnrnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn rnrn (unitPrice*numbers)rnrn rnrn rnrn rnrn rnrn rnrn [Measures].[ZXSE] / [Measures].[SL]rnrn rnrn rnrn rnrnrnrn[/code]rn 论坛

error C2061:syntax error : identifier 'temp_disp' Error executing cl.exe.

06-06

/*正在学习链表的相关知识,建立了简单链表的查找,浏览,插入函数;rn在浏览函数时出现如上错误,错误行在代码中已标出rn希望大家给予帮助!*/rnrn/****************************************************rn Simple student's score manages systemrn****************************************************/rnrnrn#include rn#include rn#include rn#define SIZE sizeof(struct Student )rnrnstruct Student rnrn char name[10];rn int score;rn struct Student *next;rn*Head = NULL, *Temp = NULL;rnrnrnint main()rnrn void Add(); /*插入节点函数声明*/rn struct Student *Find(); /*查找信息函数声明*/rn void Disp(); /*浏览信息函数声明*/ rn int choice;rn while (1)rn rn system("cls"); /*清除屏幕*/rn printf ("***************************\n");rn printf ("%-10s", "1.add"); /*左对齐,1.插入*/rn printf ("2.browse\n"); /* 2. 浏览*/rn printf ("%-10s", "3.delete"); /* 3. 删除*/rn printf ("4.find\n"); /* 4. 查找*/rn printf ("5.exit\n"); /* 5. 退出*/rn printf ("***************************\n");rn printf ("Input your choice: ");rn scanf ("%d", &choice);rn switch(choice)rn rn case 1: Add(); break; /*插入节点*/rn case 2: Disp(); break; /*浏览信息*/rn case 3: break; /**/rn case 4: /*查找信息*/rn rn struct Student *temp_find;rn char ok_find;rn temp_find = Find(); /*调用查找函数*/rn if (temp_find == NULL)rn rn break;rn rn elsern rn printf ("Do you want to print the news that you find out? (Y/N)\n");rn getchar();rn scanf ("%c", &ok_find);rn printf ("%x ", temp_find);rn if(ok_find == 'Y')rn printf ("%s %d", temp_find->name, temp_find->score);rn rn system ("pause"); /*暂停*/rn rn break;rn case 5: rn rn return 0; rn rn break;rn default : printf("Input error!\n");rn rn rn return 0;rnrnrnrn/* 插入节点函数*/rnvoid Add()rnrn char ok; rn system("cls"); /*清屏*/rn struct Student *now_add; rn now_add = (struct Student *)malloc(SIZE);rn printf ("now_add=%x\n", now_add);rn if (now_add == NULL) /*申请空间失败*/rn rn printf ("Apply for space failure!\n");rn system ("pause");rn rn printf ("name: ");rn scanf ("%s", now_add->name);rn printf ("score: ");rn scanf ("%d", &now_add->score);rn if (Head == NULL)rn rn Head = Temp = now_add;rn Temp->next = NULL;rn rn else rn rn Temp->next = now_add; rn Temp = now_add;rn Temp->next = NULL; //rn rn printf ("head=%x\n",Head);rn printf ("Are you sure? (Y/N): ");rn getchar();rn scanf ("%c", &ok); rn if (ok == 'Y')rn rn printf ("The date input sccessful!\n");rn rn else rn rn free (now_add);rn printf ("You have already deleted!\n");rn rn system ("pause"); /*暂停*/ rnrnrn/*查找*/rnstruct Student *Find()rnrn system("cls"); /*清屏*/rn int count = 0;rn struct Student *temp_re = NULL , *t = NULL;rn char name_seek[10];rn printf ("Who do you want to seek?\n");rn printf ("Please input the name you want to seek: ");rn getchar(); //rn scanf ("%s", name_seek);rn printf ("Head=%x\n", Head);rn rn if (Head != NULL)rn rn for ( t = Head; t!= NULL; t = t->next )rn rn if ( strcmp(t->name, name_seek) == 0)rn rn count = 1;rn temp_re = t;rn printf ("Find it!\n");rn printf ("temp_re = %x\n", temp_re);rn rn rn rn else if (Head == NULL)rn rn printf ("Sorry!\n You haven't created a data resource!\n");rn printf ("Please create first!\n");rn printf ("Please check if your input is wrong!"); rn temp_re = Head;rn rn else if (count == 0)rn rn printf ("Don't find it!\n");rn system("pause");rn rn return (temp_re); rnrnrnrn/*浏览*/rnvoid Disp()rnrn system ("cls");rn struct Student *temp_disp = NULL;rn printf ("Head=%x " , Head);rn if (Head == NULL)rn rn printf ("Sorry, three is no data!\nPlease creat it first!\n");rn rn [color=#FF0000] temp_disp = Head; /*此行vc++6.0报错*/[/color]rn printf ("temp_disp=%x\n", temp_disp);rn dorn rn printf ("%s %d\n", temp_disp->name, temp_disp->score);rn rn temp_disp = temp_disp->next;rn while (temp_disp != NULL)rn rn system ("pause"); /*暂停*/rnrnrnrnrn 论坛

spring boot start error

02-06

2018-02-06 09:59:24.084 |-INFO [restartedMain] tv.seei.manage.ManageApplication [48] -| Starting ManageApplication on USER-PC with PID 6588 (E:\ideaWorkspace\manage\target\classes started by Administrator in E:\ideaWorkspace\SpringBootSample01)n 2018-02-06 09:59:24.087 |-INFO [restartedMain] tv.seei.manage.ManageApplication [597] -| The following profiles are active: devn 2018-02-06 09:59:24.276 |-INFO [background-preinit] org.hibernate.validator.internal.util.Version [30] -| HV000001: Hibernate Validator 5.3.6.Finaln 2018-02-06 09:59:25.267 |-INFO [restartedMain] org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext [583] -| Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@c74731: startup date [Tue Feb 06 09:59:25 CST 2018]; root of context hierarchyn 2018-02-06 09:59:28.826 |-INFO [restartedMain] org.springframework.data.repository.config.RepositoryConfigurationDelegate [165] -| Multiple Spring Data modules found, entering strict repository configuration mode!n 2018-02-06 09:59:28.976 |-INFO [restartedMain] org.springframework.data.repository.config.RepositoryConfigurationDelegate [165] -| Multiple Spring Data modules found, entering strict repository configuration mode!n 2018-02-06 09:59:29.085 |-INFO [restartedMain] org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport [270] -| Spring Data Redis - Could not safely identify store assignment for repository candidate interface tv.seei.manage.authorization.dao.UserDao.n 2018-02-06 09:59:31.695 |-WARN [restartedMain] org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext [551] -| Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.NullPointerExceptionn 2018-02-06 09:59:31.714 |-INFO [restartedMain] org.springframework.boot.autoconfigure.logging.AutoConfigurationReportLoggingInitializer [101] -| nn Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.n 2018-02-06 09:59:31.745 |-ERROR [restartedMain] org.springframework.boot.SpringApplication [771] -| Application startup failedn org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.NullPointerExceptionn at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137)n at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)n at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)n at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)n at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)n at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)n at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)n at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)n at tv.seei.manage.ManageApplication.main(ManageApplication.java:12)n at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)n at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)n at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)n at java.lang.reflect.Method.invoke(Method.java:498)n at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)n Caused by: java.lang.NullPointerException: nulln at org.springframework.boot.autoconfigure.web.ServerProperties$Tomcat$1.customize(ServerProperties.java:878)n at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.configureContext(TomcatEmbeddedServletContainerFactory.java:498)n at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.prepareContext(TomcatEmbeddedServletContainerFactory.java:234)n at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:178)n at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:164)n at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134)n ... 13 common frames omitted 问答

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