Firebase Analytics API StatusRunTimeException with XdsInitializationException - firebase

My problem - when start runReportRequest catched exeptions: StatusRunTimeException, XdsInitializationException. It is problem exist only when start jar-file, and when start in IDE that's ok and problem doesn't exist. Full log error:
янв. 08, 2023 8:49:41 PM io.grpc.internal.ManagedChannelImpl$NameResolverListener handleErrorInSyncContext
WARNING: [Channel<1>: (analyticsdata.googleapis.com:443)] Failed to resolve name. status=Status{code=UNAVAILABLE, description=Failed to initialize xDS, cause=io.grpc.xds.XdsInitializationException: Cannot find bootstrap configuration
Environment variables searched:
GRPC_XDS_BOOTSTRAP
GRPC_XDS_BOOTSTRAP_CONFIG
`Java System Properties searched:
io.grpc.xds.bootstrap
io.grpc.xds.bootstrapConfig
at io.grpc.xds.BootstrapperImpl.bootstrap(BootstrapperImpl.java:110)
at io.grpc.xds.SharedXdsClientPoolProvider.getOrCreate(SharedXdsClientPoolProvider.java:87)
at io.grpc.xds.XdsNameResolver.start(XdsNameResolver.java:179)
at io.grpc.internal.ManagedChannelImpl.exitIdleMode(ManagedChannelImpl.java:418)
at io.grpc.internal.ManagedChannelImpl$RealChannel$2.run(ManagedChannelImpl.java:981)
at io.grpc.SynchronizationContext.drain(SynchronizationContext.java:95)
at io.grpc.SynchronizationContext.execute(SynchronizationContext.java:127)
at io.grpc.internal.ManagedChannelImpl$RealChannel.newCall(ManagedChannelImpl.java:978)
at com.google.api.gax.grpc.GrpcChannelUUIDInterceptor.interceptCall(GrpcChannelUUIDInterceptor.java:52)
at io.grpc.ClientInterceptors$InterceptorChannel.newCall(ClientInterceptors.java:156)
at com.google.api.gax.grpc.GrpcHeaderInterceptor.interceptCall(GrpcHeaderInterceptor.java:80)
at io.grpc.ClientInterceptors$InterceptorChannel.newCall(ClientInterceptors.java:156)
at com.google.api.gax.grpc.GrpcMetadataHandlerInterceptor.interceptCall(GrpcMetadataHandlerInterceptor.java:54)
at io.grpc.ClientInterceptors$InterceptorChannel.newCall(ClientInterceptors.java:156)
at io.grpc.internal.ManagedChannelImpl.newCall(ManagedChannelImpl.java:920)
at io.grpc.internal.ForwardingManagedChannel.newCall(ForwardingManagedChannel.java:63)
at com.google.api.gax.grpc.ChannelPool$AffinityChannel.newCall(ChannelPool.java:514)
at com.google.api.gax.grpc.ChannelPool.newCall(ChannelPool.java:143)
at com.google.api.gax.grpc.GrpcClientCalls.newCall(GrpcClientCalls.java:99)
at com.google.api.gax.grpc.GrpcDirectCallable.futureCall(GrpcDirectCallable.java:60)
at com.google.api.gax.grpc.GrpcUnaryRequestParamCallable.futureCall(GrpcUnaryRequestParamCallable.java:65)
at com.google.api.gax.grpc.GrpcExceptionCallable.futureCall(GrpcExceptionCallable.java:64)
at com.google.api.gax.rpc.AttemptCallable.call(AttemptCallable.java:87)
at com.google.api.gax.rpc.RetryingCallable.futureCall(RetryingCallable.java:63)
at com.google.api.gax.rpc.RetryingCallable.futureCall(RetryingCallable.java:41)
at com.google.api.gax.tracing.TracedUnaryCallable.futureCall(TracedUnaryCallable.java:75)
at com.google.api.gax.rpc.UnaryCallable$1.futureCall(UnaryCallable.java:126)
at com.google.api.gax.rpc.UnaryCallable.futureCall(UnaryCallable.java:87)
at com.google.api.gax.rpc.UnaryCallable.call(UnaryCallable.java:112)
at com.google.analytics.data.v1beta.BetaAnalyticsDataClient.runRealtimeReport(BetaAnalyticsDataClient.java:672)
at ru.vkcleanlite.ApplicationKt.getRealtimeReport(Application.kt:87)
at ru.vkcleanlite.ApplicationKt$startRequests$1.run(Application.kt:135)
}
com.google.api.gax.rpc.UnavailableException: io.grpc.StatusRuntimeException: UNAVAILABLE: Failed to initialize xDS`
Initialization:
BetaAnalyticsDataClient.create().use { analyticsData ->
val request = RunRealtimeReportRequest.newBuilder()
.setProperty("properties/$propertyId")
.addDimensions(Dimension.newBuilder().setName("city"))
.addMetrics(Metric.newBuilder().setName("activeUsers"))
.build()
val response = analyticsData.runRealtimeReport(request)
}
How, I see, need add environment variables GRPC_XDS_BOOTSTRAP GRPC_XDS_BOOTSTRAP_CONFIG, but where get this is files? Official guide shared links on Git, where source link unsaffed, browser denied. But in this time, I'm not sure, what problem in environment variable, because in IDE that's all work, and in quick start (offical firebase guide for GA4) not contains information about settings for grps-connection. Pehraps, my research incorrect and problem another. For now updated grpc, but it not fixed problem. How it fixed? Thanks!

Related

itk::ImageFileReaderException (000000B4DD17F060)

I'm new here, learning ITK through QT Creator; this is demo. https://itk.org/Doxygen/html/Examples_2IO_2ImageReadWrite_8cxx-example.html
I want to display Medical images '.jpg format'. I didn't got any such error (red signed) in ISSUE-box but in APPLICATION OUTPUT-box found such sentences;
is anyone encounter such error before; thanks indeed
itk::ImageFileReaderException (000000B4DD17F060)
Location: "unknown"
File: E:\ITK\ITK\include\ITK-5.2\itkImageFileReader.hxx
Line: 133
Description: Could not create IO object for reading file C://Users//siat//Documents//ImageReadExportVTK//Chest-CT.jpg
There are no registered IO factories.
Please visit https://www.itk.org/Wiki/ITK/FAQ#NoFactoryException to diagnose the problem.

Slackr: x Problem with `id` - Cannot send messages

I am not an admin so I can't change the scopes. I can send slackr_bot messages to a channel I set up in the creation of the app in UI but doing the below does not work. Has anyone found a solution to this?
I created a txt file called: test.txt
Within that txt file it looks like this:
api_token: xxxxxxxxxxxx
channel: #channel_name
username: myusername
incoming_webhook_url: https://hooks.slack.com/services/xxxxxxxxxxx/xxxxxxxxxxxxx
Then I want to simply send a message but eventually I would like to run the function
ggslackr(qplot(mpg, wt, data=mtcars))
slackr_setup(config_file = "test.txt")
my_message <- paste("I'm sending a Slack message at", Sys.time(), "from my R script.")
slackr_msg(my_message, channel = "#channel_name", as_user=F)
Here is the error message:
Error: Join columns must be present in data.
x Problem with `id`.
Run `rlang::last_error()` to see where the error occurred.
In addition: Warning message:
In structure(vars, groups = group_vars, class = c("dplyr_sel_vars", :
Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
Consider 'structure(list(), *)' instead.
Edit #2:
Okay, I learned some things regarding packages. If I had to do this over, I'd have gone to their github repo and read the issue tracker.
The reason is that it appears that slackr has a few issues related to changes in Slack's API.
And also since there has been a large updating of R (version 4.x) a lot of packages got broken.
My sense is that our issue is with a line of code inside a slackr function (slackr_util.r--iirc) that calls a dplyr join that is looking for a particular id that does not exist.
So, I'm going to watch the issue tracker and see what comes of it.
Edit: Try slackr_bot(my_message,channel = "#general")
worked as advertised!
But ggslackr continues to fail.
I'm having the same issue. I've found in another thread a debugging start:
`rlang::last_error()`
When I run that,
Backtrace:
1. slackr::slackr_msg(my_message, channel = "#general")
5. slackr::slackr_chtrans(channel)
6. slackr::slackr_ims(api_token)
8. dplyr:::left_join.data.frame(users, ims, by = "id", copy = TRUE)
9. dplyr:::join_mutate(...)
10. dplyr:::join_cols(...)
11. dplyr:::standardise_join_by(by, x_names = x_names, y_names = y_names)
12. dplyr:::check_join_vars(by$y, y_names)
So, step 8 there is a join effort by id, which I suppose this implies that 'id' is missing.
yet, if I run from github issue tracker : slackr::slackrSetup(echo=TRUE) I get the following:
{
"SLACK_CHANNEL": ["#general"],
"SLACK_USERNAME": ["slackr_brian"],
"SLACK_ICON_EMOJI": ["NA"],
"SLACK_INCOMING_URL_PREFIX": ["https://hooks.xxxxxxx"],
"SLACK_API_TOKEN": ["token secret"]
}
I'm not sure where to go from here as the issue tracker conversation makes mention of confirming webhooks going to the correct channel and becomes very user specific.
So, that's as far as I have gotten.

NoSuchMethodError using fasterxml jackson

I am getting this error when running a spring application and using a RestTemplate
However when running a junit test I see no problem
In my test I generate this json.
[
{
"idProcesoElectoral": 9,
"idSolicitud": 591,
"folioSiilnere": "E1009000591",
"idEstatusSolicitud": 2,
"fechaEstatus": "25/10/17 13:13:51"
}
]
The error:
java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectWriter.forType(Lcom/fasterxml/jackson/databind/JavaType;)Lcom/fasterxml/jackson/databind/ObjectWriter;
at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.writeInternal(AbstractJackson2HttpMessageConverter.java:264)
at org.springframework.http.converter.AbstractGenericHttpMessageConverter.write(AbstractGenericHttpMessageConverter.java:100)
at org.springframework.web.client.RestTemplate$HttpEntityRequestCallback.doWithRequest(RestTemplate.java:830)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:617)
at org.springframework.security.oauth2.client.OAuth2RestTemplate.doExecute(OAuth2RestTemplate.java:128)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:580)
at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:380)
I have read that it is probably a version conflict somewhere, but can't find the culprit.
Here are the jackson libraries included
./siilnere-web/target/siilnere-web-6.4.1.0.5/WEB-INF/lib/jackson-datatype-jsr310-2.2.3-beta5.jar
./siilnere-web/target/siilnere-web-6.4.1.0.5/WEB-INF/lib/jackson-annotations-2.8.9.jar
./siilnere-web/target/siilnere-web-6.4.1.0.5/WEB-INF/lib/jackson-databind-2.8.9.jar
./siilnere-web/target/siilnere-web-6.4.1.0.5/WEB-INF/lib/jackson-core-2.8.9.jar
./siilnere-ear/target/siilnere-ear-6.4.1.0.5/APP-INF/lib/jackson-datatype-jsr310-2.2.3-beta5.jar
./siilnere-ear/target/siilnere-ear-6.4.1.0.5/APP-INF/lib/jackson-core-asl-1.9.13.jar
./siilnere-ear/target/siilnere-ear-6.4.1.0.5/APP-INF/lib/jackson-mapper-asl-1.9.13.jar
./siilnere-ear/target/siilnere-ear-6.4.1.0.5/APP-INF/lib/jackson-annotations-2.8.9.jar
./siilnere-ear/target/siilnere-ear-6.4.1.0.5/APP-INF/lib/jackson-databind-2.8.9.jar
./siilnere-ear/target/siilnere-ear-6.4.1.0.5/APP-INF/lib/jackson-core-2.8.9.jar
Any help is appreciated.
Thankyou
Edit:
I read a suggestion to temporarily use java parameter -verbose:class to try to debug this.
I greped the output of weblogic and got this
and found statements like this (though I didn't find any like refering to class ObjectWriter):
Loaded com.fasterxml.jackson.databind.deser.std.StringDeserializer from file:/opt/Oracle/Oracle/Middleware/Oracle_Home/oracle_common/modules/com.fasterxml.jackson.core.jackson-databind.jar
However I have this in weblogic.xml:
<container-descriptor>
<prefer-web-inf-classes>false</prefer-web-inf-classes>
<prefer-application-packages>
<package-name>com.fasterxml</package-name>
</prefer-application-packages>
</container-descriptor>

MSDeploy 3 and dbDacFx not recognizing parameters it claims it supports. Am I missing something?

Here is my commandline:
msdeploy.exe -verb:sync -Source:dbDacFx="C:\MyDB.dacpac" -dest:dbDacFx="Data Source=myserver;Database=MyDB;userid=myuser;password=secret",wmsvc="https://www.myserver.com",username=myotheruser,password=anothersecret,BlockOnPossibleDataLoss="False" -verbose
The presence of that BlockOnPossibleDataLoss parameter causes this error:
Error Code: 109
More Information:
Error: Exception has been thrown by the target of an invocation.
Error: Provider 'dbDacFx' does not support setting 'BlockOnPossibleDataLoss'.
Error count: 1.
If I take it out the BlockOnPossibleDataLoss parameter, it works fine.
If I put in a garbage setting like this:
msdeploy.exe -verb:sync -Source:dbDacFx="C:\MyDB.dacpac" -dest:dbDacFx="Data Source=myserver;Database=MyDB;userid=myuser;password=secret",wmsvc="https://www.myserver.com",username=myotheruser,password=anothersecret,asdfghjkl="False" -verbose
I get this error message:
Error: The provider 'dbDacFx' does not support the 'asdfghjkl' setting. Supporte
d settings are (dropDestinationDatabase, dacpacAction, includeData, commandTimeo
ut, AllowDropBlockingAssemblies, AllowIncompatiblePlatform, BackupDatabaseBefore
Changes, BlockOnPossibleDataLoss, BlockWhenDriftDetected, CommentOutSetVarDeclar
ations, CompareUsingTargetCollation, CreateNewDatabase, DeployDatabaseInSingleUs
erMode, DisableAndReenableDdlTriggers, DoNotAlterChangeDataCaptureObjects, DoNot
AlterReplicatedObjects, DropConstraintsNotInSource, DropDmlTriggersNotInSource,
DropExtendedPropertiesNotInSource, DropIndexesNotInSource, DropObjectsNotInSourc
e, DropPermissionsNotInSource, DropRoleMembersNotInSource, GenerateSmartDefaults
, IgnoreAnsiNulls, IgnoreAuthorizer, IgnoreColumnCollation, IgnoreComments, Igno
reCryptographicProviderFilePath, IgnoreDdlTriggerOrder, IgnoreDdlTriggerState, I
gnoreDefaultSchema, IgnoreDmlTriggerOrder, IgnoreDmlTriggerState, IgnoreExtended
Properties, IgnoreFileAndLogFilePath, IgnoreFilegroupPlacement, IgnoreFileSize,
IgnoreFillFactor, IgnoreFullTextCatalogFilePath, IgnoreIdentitySeed, IgnoreIncre
ment, IgnoreIndexOptions, IgnoreIndexPadding, IgnoreKeywordCasing, IgnoreLockHin
tsOnIndexes, IgnoreLoginSids, IgnoreNotForReplication, IgnoreObjectPlacementOnPa
rtitionScheme, IgnorePartitionSchemes, IgnorePermissions, IgnoreQuotedIdentifier
s, IgnoreRoleMembership, IgnoreRouteLifetime, IgnoreSemicolonBetweenStatements,
IgnoreTableOptions, IgnoreUserSettingsObjects, IgnoreWhitespace, IgnoreWithNoche
ckOnCheckConstraints, IgnoreWithNocheckOnForeignKeys, IncludeCompositeObjects, I
ncludeTransactionalScripts, NoAlterStatementsToChangeClrTypes, PopulateFilesOnFi
leGroups, RegisterDataTierApplication, RunDeploymentPlanExecutors, ScriptDatabas
eCollation, ScriptDatabaseCompatibility, ScriptDatabaseOptions, ScriptDeployStat
eChecks, ScriptFileSize, ScriptNewConstraintValidation, ScriptRefreshModule, Tre
atVerificationErrorsAsWarnings, UnmodifiableObjectWarnings, VerifyCollationCompa
tibility, VerifyDeployment, authType, computerName, encryptPassword, includeAcls
, password, prefetchPayload, userName, wmsvc).
Error count: 1.
Note that it includes BlockOnPossibleDataLoss as one of the supported settings in the error message about not supporting some other garbage parameter. This is totally contradictory. Further, if you simply ask the dbDacFx provider what it supports:
msdeploy.exe -Help -Source:dbDacFx
It lists a host of settings, including:
Provider Setting: BlockOnPossibleDataLoss
A true or false value for the 'BlockOnPossibleDataLoss'
setting.
I understand from reading about dbDacFx and many other users frustrated at its incompleteness that it has been "undercooked". But this is the first time I've realized how absurd the situation is where it reports that it doesn't support a specific parameter, yet lists it among the parameters it supports.
Will this be fixed, or should I discard dbDacFx? Am I missing something?

Problem compiling Flex project from Flash Builder

I'm having a problem with Adobe Flash Builder, when trying to compile and run a Flex Project I had previously coded outside FB.
I imported the classes following the correct package file system, and everything seemed to work correctly: none of the classes shows errors (and if I code something wrong, an error is shown, so FB error system is working), the auto-complete works fine in all classes, the Main.xmxl class is set up as 'default Application' in the project...
Maybe I skipped a step in between or something, but I always get the following error when trying to compile:
Error
Sun Jun 19 18:40:32 CEST 2011
Uncaught exception in compiler
java.lang.NullPointerException
at flex2.compiler.mxml.lang.StandardDefs.isIUIComponent(StandardDefs.java:784)
at flex2.compiler.mxml.builder.ComponentBuilder.constructComponent(ComponentBuilder.java:177)
at flex2.compiler.mxml.builder.ComponentBuilder.analyze(ComponentBuilder.java:84)
at flex2.compiler.mxml.dom.Node.analyze(Node.java:53)
at flex2.compiler.mxml.builder.VectorBuilder$ElementNodeHandler.componentNode(VectorBuilder.java:173)
at flex2.compiler.mxml.lang.ValueNodeHandler.invoke(ValueNodeHandler.java:73)
at flex2.compiler.mxml.builder.VectorBuilder.processChildren(VectorBuilder.java:142)
at flex2.compiler.mxml.builder.VectorBuilder.analyze(VectorBuilder.java:97)
at flex2.compiler.mxml.dom.VectorNode.analyze(VectorNode.java:50)
at flex2.compiler.mxml.builder.AbstractBuilder$RValueNodeHandler.vectorNode(AbstractBuilder.java:999)
at flex2.compiler.mxml.lang.ValueNodeHandler.invoke(ValueNodeHandler.java:113)
at flex2.compiler.mxml.builder.AbstractBuilder$RValueNodeHandler.process(AbstractBuilder.java:975)
at flex2.compiler.mxml.builder.AbstractBuilder.processRValueNodes(AbstractBuilder.java:941)
at flex2.compiler.mxml.builder.AbstractBuilder.processPropertyNodes(AbstractBuilder.java:770)
at flex2.compiler.mxml.builder.AbstractBuilder.processPropertyNodes(AbstractBuilder.java:741)
at flex2.compiler.mxml.builder.ComponentBuilder$ComponentChildNodeHandler.property(ComponentBuilder.java:506)
at flex2.compiler.mxml.lang.ChildNodeHandler$CoreDeclarationHandler.property(ChildNodeHandler.java:208)
at flex2.compiler.mxml.lang.DeclarationHandler.invoke(DeclarationHandler.java:94)
at flex2.compiler.mxml.lang.ChildNodeHandler$CoreDeclarationHandler.invoke(ChildNodeHandler.java:236)
at flex2.compiler.mxml.builder.ComponentBuilder$ComponentChildNodeHandler.invoke(ComponentBuilder.java:705)
at flex2.compiler.mxml.lang.ChildNodeHandler.scanChildNodes(ChildNodeHandler.java:79)
at flex2.compiler.mxml.builder.ComponentBuilder.processChildren(ComponentBuilder.java:437)
at flex2.compiler.mxml.builder.ComponentBuilder.analyze(ComponentBuilder.java:88)
at flex2.compiler.mxml.dom.Node.analyze(Node.java:53)
at flex2.compiler.mxml.builder.DocumentBuilder$NestedDeclarationNodeHandler.componentNode(DocumentBuilder.java:792)
at flex2.compiler.mxml.lang.ValueNodeHandler.invoke(ValueNodeHandler.java:73)
at flex2.compiler.mxml.builder.DocumentBuilder$DocumentChildNodeHandler.processNestedDeclaration(DocumentBuilder.java:716)
at flex2.compiler.mxml.builder.ComponentBuilder$ComponentChildNodeHandler.nestedDeclaration(ComponentBuilder.java:616)
at flex2.compiler.mxml.builder.DocumentBuilder$DocumentChildNodeHandler.invoke(DocumentBuilder.java:763)
at flex2.compiler.mxml.lang.ChildNodeHandler.scanChildNodes(ChildNodeHandler.java:79)
at flex2.compiler.mxml.builder.ComponentBuilder.processChildren(ComponentBuilder.java:437)
at flex2.compiler.mxml.builder.DocumentBuilder.analyze(DocumentBuilder.java:188)
at flex2.compiler.mxml.dom.Node.analyze(Node.java:53)
at flex2.compiler.mxml.ImplementationCompiler.parse1(ImplementationCompiler.java:183)
at flex2.compiler.mxml.MxmlCompiler.parse1(MxmlCompiler.java:179)
at flex2.compiler.CompilerAPI.parse1(CompilerAPI.java:2872)
at flex2.compiler.CompilerAPI.parse1(CompilerAPI.java:2825)
etc...
Any guesses? I'm really getting mad with it...
Help would be greatly appreciated :)

Resources