My Windows Store app is built and deployed successfully on test machines. It is successfully validated from Windows App Certification Kit (WACK) with all the tests enabled. But when I try to upload it to the Windows Store, I always get the following error stack trace during the upload step of the submission process:
Internal package processing error: System.ArgumentException: Invalid OsMinVersion: 0 at Microsoft.MarketplaceServices.Ingestion.ProductCatalogService.Controllers.V1.PackageValidationV1Controller.WindowsMinVersionsAreSameOsVersion(Int64 osMinVersion, Int64 osMinVersion2) in c:\B\311\DCEProductCatalog_Live\S\private\DCEProductCatalog\src\ProductCatalogFD\ProductCatalogFD\V1\Global\PackageValidationV1Controller.cs:line 3249 at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate) at Microsoft.MarketplaceServices.Ingestion.ProductCatalogService.Controllers.V1.PackageValidationV1Controller.d__1c6.MoveNext() in c:\B\311\DCEProductCatalog_Live\S\private\DCEProductCatalog\src\ProductCatalogFD\ProductCatalogFD\V1\Global\PackageValidationV1Controller.cs:line 3211 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at Microsoft.MarketplaceServices.Ingestion.ProductCatalogService.Controllers.V1.PackageValidationV1Controller.d__12b.MoveNext() in c:\B\311\DCEProductCatalog_Live\S\private\DCEProductCatalog\src\ProductCatalogFD\ProductCatalogFD\V1\Global\PackageValidationV1Controller.cs:line 2335 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at Microsoft.MarketplaceServices.Ingestion.ProductCatalogService.Controllers.V1.PackageValidationV1Controller.d__db.MoveNext() in c:\B\311\DCEProductCatalog_Live\S\private\DCEProductCatalog\src\ProductCatalogFD\ProductCatalogFD\V1\Global\PackageValidationV1Controller.cs:line 1746 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at Microsoft.MarketplaceServices.Ingestion.ProductCatalogService.Controllers.V1.PackageValidationV1Controller.d__68.MoveNext() in c:\B\311\DCEProductCatalog_Live\S\private\DCEProductCatalog\src\ProductCatalogFD\ProductCatalogFD\V1\Global\PackageValidationV1Controller.cs:line 851 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.MarketplaceServices.Ingestion.ProductCatalogService.Controllers.V1.PackageValidationV1Controller.d__40.MoveNext() in c:\B\311\DCEProductCatalog_Live\S\private\DCEProductCatalog\src\ProductCatalogFD\ProductCatalogFD\V1\Global\PackageValidationV1Controller.cs:line 551 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at Microsoft.MarketplaceServices.Ingestion.ProductCatalogService.Controllers.V1.PackageValidationV1Controller.d__0.MoveNext() in c:\B\311\DCEProductCatalog_Live\S\private\DCEProductCatalog\src\ProductCatalogFD\ProductCatalogFD\V1\Global\PackageValidationV1Controller.cs:line 242
This is my first submission to the Windows Store ever and it's quite strange for me that I can even see the stack trace instead of a user friendly error message.
As far as I understood, users usually receive a helpful error message with a "How to fix it" section.
I have already contacted Microsoft support and they weren't able to help me. They only suggested asking in their technical forum, as I already did, but I haven't received any answer so far and my deadline is coming.
Any idea why I see this error?
UPDATE: I found people with similar problems whose accounts were migrated to the new unified Windows Development dashboard exactly like mine. So it might be a problem in the new submission and validation process.
Related
I have (spring boot) integration tests that use a test container for a (mysql)database. When the tests end (even if they are successful), I get an ssl exception (see below). I've looked around, and it seems this is an error with the mysql driver. I would like to silence these so that in the event anything fails, I can easily determine from the logs (while right now, the majority of my logs are from this misleading exception) Does anyone know how to silence these logs (I don't want to not use ssl). For your reference, the logs are printed below:
2019-12-15 12:50:52.588 INFO 16171 --- [ Thread-3] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
2019-12-15 12:50:52.588 INFO 16171 --- [ Thread-3] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
Sun Dec 15 12:50:52 EST 2019 WARN: Caught while disconnecting...
EXCEPTION STACK TRACE:
** BEGIN NESTED EXCEPTION **
javax.net.ssl.SSLException
MESSAGE: closing inbound before receiving peer's close_notify
STACKTRACE:
javax.net.ssl.SSLException: closing inbound before receiving peer's close_notify
at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:133)
at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:117)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:307)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:263)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:254)
at java.base/sun.security.ssl.SSLSocketImpl.shutdownInput(SSLSocketImpl.java:645)
at java.base/sun.security.ssl.SSLSocketImpl.shutdownInput(SSLSocketImpl.java:624)
at com.mysql.cj.protocol.a.NativeProtocol.quit(NativeProtocol.java:1319)
at com.mysql.cj.NativeSession.quit(NativeSession.java:182)
at com.mysql.cj.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:1750)
at com.mysql.cj.jdbc.ConnectionImpl.close(ConnectionImpl.java:720)
at com.zaxxer.hikari.pool.PoolBase.quietlyCloseConnection(PoolBase.java:135)
at com.zaxxer.hikari.pool.HikariPool.lambda$closeConnection$1(HikariPool.java:441)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
** END NESTED EXCEPTION **
Sun Dec 15 12:50:52 EST 2019 WARN: Caught while disconnecting...
EXCEPTION STACK TRACE:
** BEGIN NESTED EXCEPTION **
javax.net.ssl.SSLException
MESSAGE: closing inbound before receiving peer's close_notify
...
rest ommitted for brevity
Thanks
Well, you just need to add
logging.level.<package_name>=ERROR
to your spring configuration properties
I would first try with
logging.level.javax.net.ssl=ERROR
but if it doesn't work try with different packages. Problem that I see in the log is that it looks like it was done not via standard logging mechanism but to stderr. If that's the case and properties approach won't work - then you'll need to specify your own PrintStream for stderr. That can be done with
System.setErr(new PrintStream(new OutputStream() {
#Override
public void write(int i) throws IOException {
//ignore
}
}));
We have migrated our servers to Cloud (AWS). We are using SSRS 2008R2. We are facing an issue while opening few attachments in the reports ( not all the attachments ).
We get the following error :
Server Error in '/OpenAttachments' Application.
The remote Server returned an error: (404) Not Found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The remote server returned an error: (404) Not Found.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[WebException: The remote server returned an error: (404) Not Found.]
System.Net.HttpWebRequest.GetResponse() +8674060
WebApplication1.WebForm1.Page_Load(Object sender, EventArgs e) in C:\Users\fdsfsdfsdfn\Documents\Visual Studio 2012\Projects\WebApplication1\WebApplication1\OpenAtt.aspx.vb:17
System.Web.UI.Control.LoadRecursive() +71
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178
Most of the attachments are working fine. This is happening with only a few attachments.
Thanks in advance.
Surya
I have implemented CustomReportItems in SSRS, it works fine in all scenarios while deployed on a reportserver except when it takes more than 2:15 minutes to save a report to pdf, amazing thing is if i render my report in designer mode i.e from visual studio it works fine even for those report which take more than 2 hours to render.
I have tried following things to fix the issue.
1) http://www.avyuktasolutions.com/blog/sql-server-reporting-services-timeout-settings/ Almost all timeouts in the mentioned link.
2) Thread abort exception is thrwon exactly after 2 min 15 sec.
Exception on Browser
Unable to read data from the transport connection: The connection was closed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.IOException: Unable to read data from the transport connection: The connection was closed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[IOException: Unable to read data from the transport connection: The connection was closed.]
System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size) +1321
Microsoft.Reporting.WebForms.SoapReportExecutionService.ServerUrlRequest(AbortState abortState, String url, Stream outputStream, String& mimeType, String& fileNameExtension) +649
Exception in Log
processing!ReportServer_0-2!212c!10/12/2015-19:03:50:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.RenderingObjectModelException: , Microsoft.ReportingServices.ReportProcessing.RenderingObjectModelException: An error has occurred during processing of the CustomReportItem 'PVCharts1' with the 'PVCharts' extension. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at PVChartsCRI.PVCRI.DrawImage(CustomReportItem customReportItem)
at PVChartsCRI.PVCRI.EvaluateReportItemInstance(CustomReportItem cri)
at Microsoft.ReportingServices.OnDemandReportRendering.CustomReportItem.EvaluateGeneratedReportItemInstance()
--- End of inner exception stack trace ---;
library!ReportServer_0-2!212c!10/12/2015-19:03:51:: w WARN: Microsoft.ReportingServices.Diagnostics.Utilities.RSException: An error has occurred during processing of the CustomReportItem 'PVCharts1' with the 'PVCharts' extension. ---> Microsoft.ReportingServices.ReportProcessing.RenderingObjectModelException: An error has occurred during processing of the CustomReportItem 'PVCharts1' with the 'PVCharts' extension. ---> System.NullReferenceException: Object reference not set to an instance of an object.
webserver!ReportServer_0-2!212c!10/12/2015-19:03:51:: e ERROR: Reporting Services error Microsoft.ReportingServices.Diagnostics.Utilities.RSException: An error has occurred during processing of the CustomReportItem 'PVCharts1' with the 'PVCharts' extension. ---> Microsoft.ReportingServices.Diagnostics.Utilities.RSException: An error has occurred during processing of the CustomReportItem 'PVCharts1' with the 'PVCharts' extension. ---> Microsoft.ReportingServices.ReportProcessing.RenderingObjectModelException: An error has occurred during processing of the CustomReportItem 'PVCharts1' with the 'PVCharts' extension. ---> System.NullReferenceException: Object reference not set to an instance of an object.
library!ReportServer_0-2!212c!10/12/2015-19:03:51:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeException: The request has been aborted., Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeException: An error occurred in the HTTP Runtime object for application domain ReportServer_MSSQLSERVER_0-2-130891320078579635. Most likely, the HTTP request contains an unsupported verb or invalid syntax. ---> System.Web.HttpException: Request timed out.
--- End of inner exception stack trace ---;
ui!ReportManager_0-1!22fc!10/12/2015-19:03:51:: i INFO: Unhandled exception: Microsoft.Reporting.WebForms.ReportServerException: Unable to read data from the transport connection: The connection was closed. ---> System.IO.IOException: Unable to read data from the transport connection: The connection was closed.
at System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at Microsoft.Reporting.WebForms.SoapReportExecutionService.ServerUrlRequest(AbortState abortState, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
--- End of inner exception stack trace ---
at Microsoft.Reporting.WebForms.SoapReportExecutionService.ServerUrlRequest(AbortState abortState, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
at Microsoft.Reporting.WebForms.SoapReportExecutionService.Render(AbortState abortState, String reportPath, String executionId, String historyId, String format, XmlNodeList deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)
at Microsoft.Reporting.WebForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)
at Microsoft.Reporting.WebForms.ServerModeSession.RenderReport(String format, Boolean allowInternalRenderers, String deviceInfo, NameValueCollection additionalParams, Boolean cacheSecondaryStreamsForHtml, String& mimeType, String& fileExtension)
at Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response)
at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
I solved this issue my self. Actually during execution of report i was writing log in bin folder. I don't know why but after around 2 minutes thread was aborted by the process. I simply changed the directory with out changing anything configuration. It is working fine now.
I have a short 2 step Spring Batch job that reads from an xml rest service call using StaxEventItemReader in Strict mode. I want it in strict mode because without the ability to connect to the rest service, there is no reason to continue. I want to catch the exception and exit gracefully with a custom message, not with a stack trace.
I'm able to catch the exception using a StepExecutionListener with afterStep() method checking the failures (stepExecution.getFailureExceptions()), but the stack trace is still being output. I'm getting my custom message (13:05:32,981 in the STS Output below) plus the stack trace. When I used the ItemReaderListener with onError method the onError method is not called, I'm guessing because it is an initialization exception not a read error.
What is the best method for capturing the failed to initialize reader exception and suppress the stack trace from the output?
SpringBatch Job:
<batch:job id="randomSends2NG">
<batch:step id="getStations" next="generateAndSend">
<batch:tasklet>
<batch:chunk reader="getStationsFromNG_RestXML"
processor="idExtractor"
writer="stationsWriter"
commit-interval="1">
</batch:chunk>
<batch:listeners>
<batch:listener ref="noStationsStopListener" />
</batch:listeners>
</batch:tasklet>
</batch:step>
<batch:step id="generateAndSend">
<batch:tasklet>
<batch:chunk reader="readStationIdsList"
processor="createRandomRequests"
writer="ngBroadcasterService"
commit-interval="400">
</batch:chunk>
</batch:tasklet>
</batch:step>
</batch:job>
STS output with stack trace:
13:05:30,479 [main] INFO SimpleJobLauncher - No TaskExecutor has been set, defaulting to synchronous executor.
13:05:30,776 [main] INFO DepartmentSendCountsNoOpReader - constructing stationSendCountsReader
LightYellow color:43
13:05:31,368 [main] INFO ProcessStatisticsTasklet - constructor...
13:05:31,525 [main] INFO RequestsListReader - constructing requestsListReader
13:05:31,588 [main] INFO Jaxb2Marshaller - Creating JAXBContext with classes to be bound [class com.pevco.pevcotubesystem.StationConfig]
13:05:31,886 [main] INFO SimpleJobLauncher - Job: [FlowJob: [name=randomSends2NG]] launched with the following parameters: [{hostNameOrIP=192.168.100.10:8383}]
13:05:31,902 [main] INFO SimpleStepHandler - Executing step: [getStations]
13:05:32,981 [main] ERROR AbstractStep - Encountered an error executing step getStations in job randomSends2NG
org.springframework.batch.item.ItemStreamException: Failed to initialize the reader
at org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader.open(AbstractItemCountingItemStreamItemReader.java:147)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy8.open(Unknown Source)
at org.springframework.batch.item.support.CompositeItemStream.open(CompositeItemStream.java:96)
at org.springframework.batch.core.step.tasklet.TaskletStep.open(TaskletStep.java:310)
at org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:195)
at org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:148)
at org.springframework.batch.core.job.flow.JobFlowExecutor.executeStep(JobFlowExecutor.java:64)
at org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:67)
at org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:165)
at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:144)
at org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:134)
at org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:304)
at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:135)
at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:50)
at org.springframework.batch.core.launch.support.SimpleJobLauncher.run(SimpleJobLauncher.java:128)
at org.springframework.batch.core.launch.support.CommandLineJobRunner.start(CommandLineJobRunner.java:362)
at org.springframework.batch.core.launch.support.CommandLineJobRunner.main(CommandLineJobRunner.java:590)
Caused by: java.lang.IllegalStateException: Input resource must exist (reader is in 'strict' mode)
at org.springframework.batch.item.xml.StaxEventItemReader.doOpen(StaxEventItemReader.java:195)
at org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader.open(AbstractItemCountingItemStreamItemReader.java:144)
... 27 more
13:05:32,981 [main] ERROR NoStationsStopListener - Not able to get stations list from NG. Check that NG is running
13:05:32,998 [main] INFO SimpleJobLauncher - Job: [FlowJob: [name=randomSends2NG]] completed with the following parameters: [{hostNameOrIP=192.168.100.10:8383}] and the following status: [FAILED]
13:05:32,998 [main] INFO ClassPathXmlApplicationContext - Closing org.springframework.context.support.ClassPathXmlApplicationContext#4f4a7090: startup date [Wed Jul 01 13:05:29 EDT 2015]; root of context hierarchy
When facing this problem probably the best solution is to check for REST service as soon as possible because "without the ability to connect to the rest service, there is no reason to continue [...] and exit gracefully with a custom message".
Before first step use a JobExecutionDecider where you check for REST availability and continue or end your job according to service presence/absence.
How to see my application's exception in hdinsight?
I created an hadoop stream job, when I run my job, it fails with
Error: java.lang.RuntimeException: PipeMapRed.waitOutputThreads(): subprocess failed with code 255
at org.apache.hadoop.streaming.PipeMapRed.waitOutputThreads(PipeMapRed.java:320)
at org.apache.hadoop.streaming.PipeMapRed.mapRedFinished(PipeMapRed.java:533)
at org.apache.hadoop.streaming.PipeMapper.close(PipeMapper.java:130)
at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:61)
at org.apache.hadoop.streaming.PipeMapRunner.run(PipeMapRunner.java:34)
at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:430)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:342)
at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:168)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1594)
at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:163)
As far as I know, this is because my code has some bug and throws an exception out and then crash, how can I get the exception infomation? Is there a application log or something for hdinsight?
RDP to the head node (you will have to enable remote to the hdinsight cluster) and click on the yarn UI shortcut on the desktop. This will show the task logs.