I have a issue with Kerberos in Docker - docker

I now build up Kerberos server and Resource server (Spring Boot Application). Once I run Resource server in Intellij then It is ok. It can run as well => No Error.
Once I build my Resource server to jar file and I build a image from jar file after that I run docker image then I always get errors like below:
Caused by: sun.security.krb5.KrbException: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP-REQ - AES256 CTS mode with HMAC SHA1-96
Caused by: org.ietf.jgss.GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP-REQ - AES256 CTS mode with HMAC SHA1-96)
springboot-kerberos | 2023-02-09 08:37:18.231 DEBUG 1 --- [nio-9090-exec-1] w.a.SpnegoAuthenticationProcessingFilter : Received Negotiate Header for request http://website.tchlabs.net:9090/rest/hello: Negotiate YIIClAYGKwYBBQUCoIICiDCCAoSgDTALBgkqhkiG9xIBAgKiggJxBIICbWCCAmkGCSqGSIb3EgECAgEAboICWDCCAlSgAwIBBaEDAgEOogcDBQAgAAAAo4IBamGCAWYwggFioAMCAQWhBhsETUVPV6ImMCSgAwIBA6EdMBsbBEhUVFAbE3dlYnNpdGUudGNobGFicy5uZXSjggEpMIIBJaADAgESoQMCAQOiggEXBIIBE+wUiHYHnpTqXp1TATWkmfC5ZDpRxbGKduAAxt3+POGJmD1HTSDzB5WLHCO3uED2G7+eVOq/h9TBqysRCfAb8JY/G4YsjX1E45raZY+JVZXI0l0Ki58Hqvz/JEfZ3AaSZ5i2hOKnK8CN9Kk8fJg7qdf8MmMomMFmfqjjl/WSdVkFauO0OveqmrfC8drq9s8Nw6H7a/KD9RWLUSge2wa5UegPygcGQsbyNWbbHHCeu4u4D5nChREGymKlCX0XsHfEnnpg+nW5MOwNCyooaeU5HQWb9IkF3poloothS98s3mI1RLpnXZqVCVex/OibI6noV7pY9nlt3stIH5XpgLHZksQHc0u91ZQtbDBU1vWzY5WZF7vApIHQMIHNoAMCARKigcUEgcJvfjqsSDMLx1ZOhlnwojbMCUeUhWYAQcFqcSwd9ggU7fB7GXJ0OsQXPPCfPudcF2B/oKYeAnJTqo3HrXSyAbdUuEBJq66PL62JZFr30AGS82TSDebFQ/e079xtGn98GPGy3dGRB18rYRZ0hLWC58YaLxrbmmUlaAMjIrIsGQdI+4hNMM3xUvtOMEgpUZnPhJl57mXnXPzwBrofJsVdB13BrQGUQYoZf9JlKmMv6QBFpcRHOWY7wH7DdqEeAKZN5zq2uw==
springboot-kerberos | 2023-02-09 08:37:18.236 DEBUG 1 --- [nio-9090-exec-1] o.s.s.authentication.ProviderManager : Authentication attempt using org.springframework.security.kerberos.authentication.KerberosServiceAuthenticationProvider
springboot-kerberos | 2023-02-09 08:37:18.236 DEBUG 1 --- [nio-9090-exec-1] .a.KerberosServiceAuthenticationProvider : Try to validate Kerberos Token
springboot-kerberos | 2023-02-09 08:37:18.311 WARN 1 --- [nio-9090-exec-1] w.a.SpnegoAuthenticationProcessingFilter : Negotiate Header was invalid: Negotiate YIIClAYGKwYBBQUCoIICiDCCAoSgDTALBgkqhkiG9xIBAgKiggJxBIICbWCCAmkGCSqGSIb3EgECAgEAboICWDCCAlSgAwIBBaEDAgEOogcDBQAgAAAAo4IBamGCAWYwggFioAMCAQWhBhsETUVPV6ImMCSgAwIBA6EdMBsbBEhUVFAbE3dlYnNpdGUudGNobGFicy5uZXSjggEpMIIBJaADAgESoQMCAQOiggEXBIIBE+wUiHYHnpTqXp1TATWkmfC5ZDpRxbGKduAAxt3+POGJmD1HTSDzB5WLHCO3uED2G7+eVOq/h9TBqysRCfAb8JY/G4YsjX1E45raZY+JVZXI0l0Ki58Hqvz/JEfZ3AaSZ5i2hOKnK8CN9Kk8fJg7qdf8MmMomMFmfqjjl/WSdVkFauO0OveqmrfC8drq9s8Nw6H7a/KD9RWLUSge2wa5UegPygcGQsbyNWbbHHCeu4u4D5nChREGymKlCX0XsHfEnnpg+nW5MOwNCyooaeU5HQWb9IkF3poloothS98s3mI1RLpnXZqVCVex/OibI6noV7pY9nlt3stIH5XpgLHZksQHc0u91ZQtbDBU1vWzY5WZF7vApIHQMIHNoAMCARKigcUEgcJvfjqsSDMLx1ZOhlnwojbMCUeUhWYAQcFqcSwd9ggU7fB7GXJ0OsQXPPCfPudcF2B/oKYeAnJTqo3HrXSyAbdUuEBJq66PL62JZFr30AGS82TSDebFQ/e079xtGn98GPGy3dGRB18rYRZ0hLWC58YaLxrbmmUlaAMjIrIsGQdI+4hNMM3xUvtOMEgpUZnPhJl57mXnXPzwBrofJsVdB13BrQGUQYoZf9JlKmMv6QBFpcRHOWY7wH7DdqEeAKZN5zq2uw==
springboot-kerberos |
springboot-kerberos | org.springframework.security.authentication.BadCredentialsException: Kerberos validation not successful
springboot-kerberos | at org.springframework.security.kerberos.authentication.sun.SunJaasKerberosTicketValidator.validateTicket(SunJaasKerberosTicketValidator.java:71) ~[spring-security-kerberos-core-1.0.1.RELEASE.jar!/:1.0.1.RELEASE]
springboot-kerberos | at org.springframework.security.kerberos.authentication.KerberosServiceAuthenticationProvider.authenticate(KerberosServiceAuthenticationProvider.java:64) ~[spring-security-kerberos-core-1.0.1.RELEASE.jar!/:1.0.1.RELEASE]
springboot-kerberos | at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:175) ~[spring-security-core-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
springboot-kerberos | at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:195) ~[spring-security-core-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
springboot-kerberos | at org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter$AuthenticationManagerDelegator.authenticate(WebSecurityConfigurerAdapter.java:511) ~[spring-security-config-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
springboot-kerberos | at org.springframework.security.kerberos.web.authentication.SpnegoAuthenticationProcessingFilter.doFilter(SpnegoAuthenticationProcessingFilter.java:145) ~[spring-security-kerberos-web-1.0.1.RELEASE.jar!/:1.0.1.RELEASE]
springboot-kerberos | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
springboot-kerberos | at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200) ~[spring-security-web-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
springboot-kerberos | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
springboot-kerberos | at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) ~[spring-security-web-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
springboot-kerberos | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
springboot-kerberos | at org.springframework.security.web.csrf.CsrfFilter.doFilterInternal(CsrfFilter.java:117) ~[spring-security-web-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
springboot-kerberos | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
springboot-kerberos | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
springboot-kerberos | at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:92) ~[spring-security-web-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
springboot-kerberos | at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:77) ~[spring-security-web-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
springboot-kerberos | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
springboot-kerberos | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
springboot-kerberos | at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) ~[spring-security-web-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
springboot-kerberos | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
springboot-kerberos | at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) ~[spring-security-web-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
springboot-kerberos | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
springboot-kerberos | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
springboot-kerberos | at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) ~[spring-security-web-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
springboot-kerberos | at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) ~[spring-security-web-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
springboot-kerberos | at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358) ~[spring-web-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
springboot-kerberos | at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271) ~[spring-web-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
springboot-kerberos | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.29.jar!/:9.0.29]
springboot-kerberos | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar!/:9.0.29]
springboot-kerberos | at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
springboot-kerberos | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.2.RELEASE.jar!/:5.2.2.RELEASE]
springboot-kerberos | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.29.jar!/:9.0.29]
springboot-kerberos | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar!/:9.0.29]
springboot-kerberos | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) ~[tomcat-embed-core-9.0.29.jar!/:9.0.29]
springboot-kerberos | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) ~[tomcat-embed-core-9.0.29.jar!/:9.0.29]
springboot-kerberos | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:526) ~[tomcat-embed-core-9.0.29.jar!/:9.0.29]
springboot-kerberos | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) ~[tomcat-embed-core-9.0.29.jar!/:9.0.29]
springboot-kerberos | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.29.jar!/:9.0.29]
springboot-kerberos | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) ~[tomcat-embed-core-9.0.29.jar!/:9.0.29]
springboot-kerberos | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) ~[tomcat-embed-core-9.0.29.jar!/:9.0.29]
springboot-kerberos | at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367) ~[tomcat-embed-core-9.0.29.jar!/:9.0.29]
springboot-kerberos | at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.29.jar!/:9.0.29]
springboot-kerberos | at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860) ~[tomcat-embed-core-9.0.29.jar!/:9.0.29]
springboot-kerberos | at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1591) ~[tomcat-embed-core-9.0.29.jar!/:9.0.29]
springboot-kerberos | at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.29.jar!/:9.0.29]
springboot-kerberos | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
springboot-kerberos | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
springboot-kerberos | at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.29.jar!/:9.0.29]
springboot-kerberos | at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
springboot-kerberos | Caused by: java.security.PrivilegedActionException: null
springboot-kerberos | at java.base/java.security.AccessController.doPrivileged(Native Method) ~[na:na]
springboot-kerberos | at java.base/javax.security.auth.Subject.doAs(Subject.java:423) ~[na:na]
springboot-kerberos | at org.springframework.security.kerberos.authentication.sun.SunJaasKerberosTicketValidator.validateTicket(SunJaasKerberosTicketValidator.java:68) ~[spring-security-kerberos-core-1.0.1.RELEASE.jar!/:1.0.1.RELEASE]
springboot-kerberos | ... 48 common frames omitted
springboot-kerberos | Caused by: org.ietf.jgss.GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP-REQ - AES256 CTS mode with HMAC SHA1-96)
springboot-kerberos | at java.security.jgss/sun.security.jgss.krb5.Krb5Context.acceptSecContext(Krb5Context.java:859) ~[java.security.jgss:na]
springboot-kerberos | at java.security.jgss/sun.security.jgss.GSSContextImpl.acceptSecContext(GSSContextImpl.java:361) ~[java.security.jgss:na]
springboot-kerberos | at java.security.jgss/sun.security.jgss.GSSContextImpl.acceptSecContext(GSSContextImpl.java:303) ~[java.security.jgss:na]
springboot-kerberos | at java.security.jgss/sun.security.jgss.spnego.SpNegoContext.GSS_acceptSecContext(SpNegoContext.java:907) ~[java.security.jgss:na]
springboot-kerberos | at java.security.jgss/sun.security.jgss.spnego.SpNegoContext.acceptSecContext(SpNegoContext.java:556) ~[java.security.jgss:na]
springboot-kerberos | at java.security.jgss/sun.security.jgss.GSSContextImpl.acceptSecContext(GSSContextImpl.java:361) ~[java.security.jgss:na]
springboot-kerberos | at java.security.jgss/sun.security.jgss.GSSContextImpl.acceptSecContext(GSSContextImpl.java:303) ~[java.security.jgss:na]
springboot-kerberos | at org.springframework.security.kerberos.authentication.sun.SunJaasKerberosTicketValidator$KerberosValidateAction.run(SunJaasKerberosTicketValidator.java:170) ~[spring-security-kerberos-core-1.0.1.RELEASE.jar!/:1.0.1.RELEASE]
springboot-kerberos | at org.springframework.security.kerberos.authentication.sun.SunJaasKerberosTicketValidator$KerberosValidateAction.run(SunJaasKerberosTicketValidator.java:153) ~[spring-security-kerberos-core-1.0.1.RELEASE.jar!/:1.0.1.RELEASE]
springboot-kerberos | ... 51 common frames omitted
springboot-kerberos | Caused by: sun.security.krb5.KrbException: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP-REQ - AES256 CTS mode with HMAC SHA1-96
springboot-kerberos | at java.security.jgss/sun.security.krb5.KrbApReq.authenticate(KrbApReq.java:278) ~[java.security.jgss:na]
springboot-kerberos | at java.security.jgss/sun.security.krb5.KrbApReq.(KrbApReq.java:149) ~[java.security.jgss:na]
springboot-kerberos | at java.security.jgss/sun.security.jgss.krb5.InitSecContextToken.(InitSecContextToken.java:139) ~[java.security.jgss:na]
springboot-kerberos | at java.security.jgss/sun.security.jgss.krb5.Krb5Context.acceptSecContext(Krb5Context.java:832) ~[java.security.jgss:na]
springboot-kerberos | ... 59 common frames omitted
springboot-kerberos |
springboot-kerberos | 2023-02-09 08:37:18.313 DEBUG 1 --- [nio-9090-exec-1] o.s.s.w.header.writers.HstsHeaderWriter : Not injecting HSTS header since it did not match the requestMatcher org.springframework.security.web.header.writers.HstsHeaderWriter$SecureRequestMatcher#74576e47
springboot-kerberos | 2023-02-09 08:37:18.313 DEBUG 1 --- [nio-9090-exec-1] w.c.HttpSessionSecurityContextRepository : SecurityContext is empty or contents are anonymous - context will not be stored in HttpSession.
springboot-kerberos | 2023-02-09 08:37:18.319 DEBUG 1 --- [nio-9090-exec-1] s.s.w.c.SecurityContextPersistenceFilter : SecurityContextHolder now cleared, as request processing completed
Please help me up this issue, or give some advises to me. Thanks so much

Related

Debezium Connect with schema registry

With my Connector for debezium
{
"name": "arctype-connector-hint",
"config": {
"connector.class": "io.debezium.connector.postgresql.PostgresConnector",
"tasks.max": "1",
"plugin.name": "pgoutput",
"database.hostname": "db",
"database.port": "5432",
"database.user": "postgres",
"database.password": "arctype",
"database.dbname": "test",
"database.server.name": "ARCTYPE",
"table.include.list": "public.outbox_wal",
"transforms": "outbox,setValueSchema,selective",
"transforms.outbox.type": "io.debezium.transforms.outbox.EventRouter",
"transforms.outbox.route.topic.replacement": "${routedByValue}",
"transforms.outbox.table.fields.additional.placement": "type:header:eventType,id:header:messageId",
"transforms.outbox.table.expand.json.payload": "true",
"transforms.selective.predicate": "IsOutboxTable",
"transforms.selective.type": "io.debezium.transforms.outbox.EventRouter",
"predicates": "IsOutboxTable",
"predicates.IsOutboxTable.type": "org.apache.kafka.connect.transforms.predicates.TopicNameMatches",
"predicates.IsOutboxTable.pattern": "asset",
"publication.autocreate.mode": "filtered",
"topic.creation.default.replication.factor": 1,
"topic.creation.default.partitions": 1,
"topic.creation.default.compression.type": "lz4",
"transforms.setValueSchema.type": "org.apache.kafka.connect.transforms.SetSchemaMetadata$Value",
"transforms.setValueSchema.schema.name": "io.confluent.connect.avro.ConnectDefault",
"heartbeat.topics.prefix": "debezium-heartbeat",
"key.converter.schemas.enable": "true",
"key.converter": "io.confluent.connect.avro.AvroConverter",
"key.converter.schema.registry.url": "http://schema-registry:8081",
"value.converter": "io.confluent.connect.avro.AvroConverter",
"value.converter.schema.registry.url": "http://schema-registry:8081",
"internal.key.converter": "org.apache.kafka.connect.json.JsonConverter",
"internal.value.converter": "org.apache.kafka.connect.json.JsonConverter",
"value.converter.connect.meta.data": "false",
"connect.meta.data": "false",
"heartbeat.interval.ms": "5000",
"heartbeat.action.query": "INSERT INTO kafka_connect_heartbeat (id, last_heartbeat_time) VALUES (1, NOW()) ON CONFLICT(id) DO UPDATE SET last_heartbeat_time=EXCLUDED.last_heartbeat_time;",
"heartbeat.writeback.enabled": true,
"heartbeat.writeback.table": "public.kafka_connect_heartbeat",
"slot.name": "testpgoutput"
}
}
I am getting error
org.apache.kafka.connect.errors.ConnectException: Tolerance exceeded in error handler
connect_1 | at org.apache.kafka.connect.runtime.errors.RetryWithToleranceOperator.execAndHandleError(RetryWithToleranceOperator.java:223)
connect_1 | at org.apache.kafka.connect.runtime.errors.RetryWithToleranceOperator.execute(RetryWithToleranceOperator.java:149)
connect_1 | at org.apache.kafka.connect.runtime.WorkerSourceTask.convertTransformedRecord(WorkerSourceTask.java:330)
connect_1 | at org.apache.kafka.connect.runtime.WorkerSourceTask.sendRecords(WorkerSourceTask.java:356)
connect_1 | at org.apache.kafka.connect.runtime.WorkerSourceTask.execute(WorkerSourceTask.java:258)
connect_1 | at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:188)
connect_1 | at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:243)
connect_1 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
connect_1 | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
connect_1 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
connect_1 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
connect_1 | at java.base/java.lang.Thread.run(Thread.java:829)
connect_1 | Caused by: org.apache.kafka.connect.errors.DataException: Failed to serialize Avro data from topic asset :
connect_1 | at io.confluent.connect.avro.AvroConverter.fromConnectData(AvroConverter.java:93)
connect_1 | at org.apache.kafka.connect.storage.Converter.fromConnectData(Converter.java:64)
connect_1 | at org.apache.kafka.connect.runtime.WorkerSourceTask.lambda$convertTransformedRecord$3(WorkerSourceTask.java:330)
connect_1 | at org.apache.kafka.connect.runtime.errors.RetryWithToleranceOperator.execAndRetry(RetryWithToleranceOperator.java:173)
connect_1 | at org.apache.kafka.connect.runtime.errors.RetryWithToleranceOperator.execAndHandleError(RetryWithToleranceOperator.java:207)
connect_1 | ... 11 more
connect_1 | Caused by: org.apache.kafka.common.errors.SerializationException: Error serializing Avro message
connect_1 | at io.confluent.kafka.serializers.AbstractKafkaAvroSerializer.serializeImpl(AbstractKafkaAvroSerializer.java:154)
connect_1 | at io.confluent.connect.avro.AvroConverter$Serializer.serialize(AvroConverter.java:153)
connect_1 | at io.confluent.connect.avro.AvroConverter.fromConnectData(AvroConverter.java:86)
connect_1 | ... 15 more
connect_1 | Caused by: org.apache.avro.SchemaParseException: Can't redefine: io.confluent.connect.avro.ConnectDefault
connect_1 | at org.apache.avro.Schema$Names.put(Schema.java:1542)
connect_1 | at org.apache.avro.Schema$NamedSchema.writeNameRef(Schema.java:805)
connect_1 | at org.apache.avro.Schema$RecordSchema.toJson(Schema.java:967)
connect_1 | at org.apache.avro.Schema$UnionSchema.toJson(Schema.java:1234)
connect_1 | at org.apache.avro.Schema$RecordSchema.fieldsToJson(Schema.java:995)
connect_1 | at org.apache.avro.Schema$RecordSchema.toJson(Schema.java:979)
connect_1 | at org.apache.avro.Schema$UnionSchema.toJson(Schema.java:1234)
connect_1 | at org.apache.avro.Schema.toString(Schema.java:419)
connect_1 | at org.apache.avro.Schema.toString(Schema.java:410)
connect_1 | at io.confluent.kafka.schemaregistry.avro.AvroSchema.canonicalString(AvroSchema.java:151)
connect_1 | at io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient.registerAndGetId(CachedSchemaRegistryClient.java:257)
connect_1 | at io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient.register(CachedSchemaRegistryClient.java:366)
connect_1 | at io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient.register(CachedSchemaRegistryClient.java:337)
connect_1 | at io.confluent.kafka.serializers.AbstractKafkaAvroSerializer.serializeImpl(AbstractKafkaAvroSerializer.java:115)
connect_1 | ... 17 more
1.) First I Created Connector with First Json with confluent schema registry.
2.) When message has been produced from outbox_wal table to kafka but schema registry is giving exception
If anybody faced this please share
3.) Exception is also pasted above.
Message type we are using is AVRO

How to create a docker image with a preloaded core

I am trying to create a Dockerfile and Docker-compose that will automatically startup a working Solr instance, with a core preloaded.
This is what I have so far but I am getting errors on solr startup.
Dockerfile
from solr:latest
COPY mycore /opt/solr/server/solr/mycores/mycore
docker-compose
version: '2'
services:
solr:
build: .
image: my-solr-image
ports:
- "8983:8983"
environment:
- SOLR_HEAP=2g
entrypoint:
- docker-entrypoint.sh
- solr-precreate
- mycore
Here is the error that I've encountered.
Shown when I load the dashboard
mycore: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: /opt/solr/server/solr/mycores/mycore/data/index/write.lock
In the console just after server starts
sf_solr | 2019-02-08 01:01:22.741 INFO (main) [ ] o.e.j.s.Server Started #2779ms
sf_solr | 2019-02-08 01:01:22.852 INFO (coreLoadExecutor-9-thread-1) [ x:mycore] o.a.s.c.SolrConfig Using Lucene MatchVersion: 7.6.0
sf_solr | 2019-02-08 01:01:23.142 INFO (coreLoadExecutor-9-thread-1) [ x:mycore] o.a.s.s.IndexSchema [mycore] Schema name=default-config
sf_solr | 2019-02-08 01:01:23.774 INFO (coreLoadExecutor-9-thread-1) [ x:mycore] o.a.s.s.IndexSchema Loaded schema default-config/1.6 with uniqueid field id
sf_solr | 2019-02-08 01:01:23.802 INFO (coreLoadExecutor-9-thread-1) [ x:mycore] o.a.s.c.CoreContainer Creating SolrCore 'mycore' using configuration from instancedir /opt/solr/server/solr/mycores/mycore, trusted=true
sf_solr | 2019-02-08 01:01:23.824 INFO (coreLoadExecutor-9-thread-1) [ x:mycore] o.a.s.m.r.SolrJmxReporter JMX monitoring for 'solr.core.mycore' (registry 'solr.core.mycore') enabled at server: com.sun.jmx.mbeanserver.JmxMBeanServer#5562c41e
sf_solr | 2019-02-08 01:01:23.836 INFO (coreLoadExecutor-9-thread-1) [ x:mycore] o.a.s.c.SolrCore [[mycore] ] Opening new SolrCore at [/opt/solr/server/solr/mycores/mycore], dataDir=[/opt/solr/server/solr/mycores/mycore/data/]
sf_solr | 2019-02-08 01:01:23.857 INFO (coreLoadExecutor-9-thread-1) [ x:mycore] o.a.s.c.SolrCore [mycore] CLOSING SolrCore org.apache.solr.core.SolrCore#6b1f208b
sf_solr | 2019-02-08 01:01:23.857 INFO (coreLoadExecutor-9-thread-1) [ x:mycore] o.a.s.m.SolrMetricManager Closing metric reporters for registry=solr.core.mycore, tag=6b1f208b
sf_solr | 2019-02-08 01:01:23.858 INFO (coreLoadExecutor-9-thread-1) [ x:mycore] o.a.s.m.r.SolrJmxReporter Closing reporter [org.apache.solr.metrics.reporters.SolrJmxReporter#10f7ad61: rootName = null, domain =
solr.core.mycore, service url = null, agent id = null] for registry solr.core.mycore / com.codahale.metrics.MetricRegistry#14360d1d
sf_solr | 2019-02-08 01:01:23.866 ERROR (coreContainerWorkExecutor-2-thread-1) [ ] o.a.s.c.CoreContainer Error waiting for SolrCore to be loaded on startup
sf_solr | org.apache.solr.common.SolrException: Unable to create core [mycore]
sf_solr | at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1159) ~[solr-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:47:52]
sf_solr | at org.apache.solr.core.CoreContainer.lambda$load$13(CoreContainer.java:684) ~[solr-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:47:52]
sf_solr | at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:197) ~[metrics-core-3.2.6.jar:3.2.6]
sf_solr | at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
sf_solr | at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:209) [solr-solrj-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:47:53]
sf_solr | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
sf_solr | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
sf_solr | at java.lang.Thread.run(Thread.java:834) [?:?]
sf_solr | Caused by: org.apache.solr.common.SolrException: /opt/solr/server/solr/mycores/mycore/data/index/write.lock
sf_solr | at org.apache.solr.core.SolrCore.<init>(SolrCore.java:1014) ~[solr-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:47:52]
sf_solr | at org.apache.solr.core.SolrCore.<init>(SolrCore.java:869) ~[solr-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:47:52]
sf_solr | at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1138) ~[solr-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:47:52]
sf_solr | ... 7 more
sf_solr | Caused by: java.nio.file.NoSuchFileException: /opt/solr/server/solr/mycores/mycore/data/index/write.lock
sf_solr | at sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) ~[?:?]
sf_solr | at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]
sf_solr | at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) ~[?:?]
sf_solr | at sun.nio.fs.UnixPath.toRealPath(UnixPath.java:860) ~[?:?]
sf_solr | at org.apache.lucene.store.NativeFSLockFactory.obtainFSLock(NativeFSLockFactory.java:108) ~[lucene-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:44:20]
sf_solr | at org.apache.lucene.store.FSLockFactory.obtainLock(FSLockFactory.java:41) ~[lucene-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:44:20]
sf_solr | at org.apache.lucene.store.BaseDirectory.obtainLock(BaseDirectory.java:45) ~[lucene-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:44:20]
sf_solr | at org.apache.lucene.store.FilterDirectory.obtainLock(FilterDirectory.java:105) ~[lucene-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:44:20]
sf_solr | at org.apache.solr.core.SolrCore.isWriterLocked(SolrCore.java:729) ~[solr-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:47:52]
sf_solr | at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:750) ~[solr-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:47:52]
sf_solr | at org.apache.solr.core.SolrCore.<init>(SolrCore.java:960) ~[solr-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:47:52]
sf_solr | at org.apache.solr.core.SolrCore.<init>(SolrCore.java:869) ~[solr-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:47:52]
sf_solr | at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1138) ~[solr-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:47:52]
sf_solr | ... 7 more
sf_solr | Suppressed: java.nio.file.AccessDeniedException: /opt/solr/server/solr/mycores/mycore/data/index/write.lock
sf_solr | at sun.nio.fs.UnixException.translateToIOException(UnixException.java:90) ~[?:?]
sf_solr | at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]
sf_solr | at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) ~[?:?]
sf_solr | at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:215) ~[?:?]
sf_solr | at java.nio.file.Files.newByteChannel(Files.java:370) ~[?:?]
sf_solr | at java.nio.file.Files.createFile(Files.java:647) ~[?:?]
sf_solr | at org.apache.lucene.store.NativeFSLockFactory.obtainFSLock(NativeFSLockFactory.java:98) ~[lucene-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:44:20]
sf_solr | at org.apache.lucene.store.FSLockFactory.obtainLock(FSLockFactory.java:41) ~[lucene-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:44:20]
sf_solr | at org.apache.lucene.store.BaseDirectory.obtainLock(BaseDirectory.java:45) ~[lucene-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:44:20]
sf_solr | at org.apache.lucene.store.FilterDirectory.obtainLock(FilterDirectory.java:105) ~[lucene-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:44:20]
sf_solr | at org.apache.solr.core.SolrCore.isWriterLocked(SolrCore.java:729) ~[solr-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:47:52]
sf_solr | at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:750) ~[solr-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:47:52]
sf_solr | at org.apache.solr.core.SolrCore.<init>(SolrCore.java:960) ~[solr-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:47:52]
sf_solr | at org.apache.solr.core.SolrCore.<init>(SolrCore.java:869) ~[solr-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:47:52]
sf_solr | at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1138) ~[solr-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:47:52]
sf_solr | at org.apache.solr.core.CoreContainer.lambda$load$13(CoreContainer.java:684) ~[solr-core-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:47:52]
sf_solr | at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:197) ~[metrics-core-3.2.6.jar:3.2.6]
sf_solr | at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
sf_solr | at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:209) [solr-solrj-7.6.0.jar:7.6.0 719cde97f84640faa1e3525690d262946571245f - nknize - 2018-12-07 14:47:53]
sf_solr | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
sf_solr | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
sf_solr | at java.lang.Thread.run(Thread.java:834) [?:?]

How to use Pa_IsStreamActive in PortAudio?

I use PortAudio V19-devel (pa_stable_v19_20140130) to synthesize the output of a text-to-speech engine.
First, I've registered a function using PaStreamFinishedCallback (void *userData), so that it gets called when the audio stream becomes inactive.
According to the Stream State Machine, while beeing in state "Active" (in other words beeing in the callback for processing audio data) and returning paAbort, we trigger a transition to state "Callback finished" and Pa_IsStreamActive returns 0, after all buffers have been canceled.
Unfortunately I don't know how to do this right, since Pa_IsStreamActive returns 1 after an paAbort. The question is how to determine that all buffers have been canceled? Below you can find the corresponding snippets of my code:
int AudioConnection::onAudioDataReceived (const void *input, void *output,
unsigned long frames, const PaStreamCallbackTimeInfo *time,
PaStreamCallbackFlags status, void *userdata
) {
int finished;
unsigned int i;
AudioConnection *data = (AudioConnection *)userdata;
unsigned int framesLeft = data->numFrames - data->cursor;
int8_t *out = (int8_t *)output;
// Declared to prevent unused variable warnings
(void) time; (void) input; (void) status;
if (framesLeft >= frames) {
for (i = 0; i < frames; i++) {
*out++ = data->audioSamples[data->cursor++];
*out++ = data->audioSamples[data->cursor++];
}
data->cursor += frames;
finished = paContinue;
}
else if (framesLeft == 0) {
*out++ = 0;
*out++ = 0;
data->cursor = 0;
finished = paAbort;
}
// final buffer
else if (framesLeft < frames) {
for (i = 0; i < framesLeft; i++) {
*out++ = data->audioSamples[data->cursor++];
*out++ = data->audioSamples[data->cursor++];
}
data->cursor = 0;
finished = paComplete;
}
// should never happen
else {
finished = paAbort;
}
return finished;
}
This is my callback code, that gets called after audio stream has finished:
void AudioConnection::onAudioStreamFinished (void *userdata) {
AudioConnection *data = (AudioConnection *) userdata;
ACE_DEBUG ((LM_TRACE, ACE_TEXT ("(%t | %P | %D | %N) AudioConnection::onAudioStreamFinished ()\n")));
ACE_DEBUG ((LM_TRACE, ACE_TEXT ("(%t | %P | %D | %N) AudioConnection::isAudioStreamActive () = %d \n"), data->isAudioStreamActive ()));
}
And
bool AudioConnection::isAudioStreamActive () {
return Pa_IsStreamActive (audioStream) ? true : false;
}
The following trace indicates the problem- I would expect that isAudioStreamActive in the last line returns 0. Any feedback on this is appreciated. Thanks!
(1987417168 | 19339 | 2016-09-27 23:10:30.935040 | ../src/AudioConnection.cpp) AudioConnection::isAudioStreamActive () = 0
(1987417168 | 19339 | 2016-09-27 23:10:30.936162 | ../src/AudioConnection.cpp) AudioConnection::playAudioStream ()
(1954542672 | 19339 | 2016-09-27 23:10:30.977247 | ../src/AudioConnection.cpp) AudioConnection framesLeft: 27648
(1954542672 | 19339 | 2016-09-27 23:10:31.007114 | ../src/AudioConnection.cpp) AudioConnection framesLeft: 26112
(1954542672 | 19339 | 2016-09-27 23:10:31.037122 | ../src/AudioConnection.cpp) AudioConnection framesLeft: 24576
(1954542672 | 19339 | 2016-09-27 23:10:31.067106 | ../src/AudioConnection.cpp) AudioConnection framesLeft: 23040
(1954542672 | 19339 | 2016-09-27 23:10:31.097107 | ../src/AudioConnection.cpp) AudioConnection framesLeft: 21504
(1954542672 | 19339 | 2016-09-27 23:10:31.137147 | ../src/AudioConnection.cpp) AudioConnection framesLeft: 19968
(1954542672 | 19339 | 2016-09-27 23:10:31.187113 | ../src/AudioConnection.cpp) AudioConnection framesLeft: 18432
(1954542672 | 19339 | 2016-09-27 23:10:31.237124 | ../src/AudioConnection.cpp) AudioConnection framesLeft: 16896
(1954542672 | 19339 | 2016-09-27 23:10:31.287146 | ../src/AudioConnection.cpp) AudioConnection framesLeft: 15360
(1954542672 | 19339 | 2016-09-27 23:10:31.337112 | ../src/AudioConnection.cpp) AudioConnection framesLeft: 13824
(1954542672 | 19339 | 2016-09-27 23:10:31.387106 | ../src/AudioConnection.cpp) AudioConnection framesLeft: 12288
(1954542672 | 19339 | 2016-09-27 23:10:31.437225 | ../src/AudioConnection.cpp) AudioConnection framesLeft: 10752
(1954542672 | 19339 | 2016-09-27 23:10:31.487161 | ../src/AudioConnection.cpp) AudioConnection framesLeft: 9216
(1954542672 | 19339 | 2016-09-27 23:10:31.537158 | ../src/AudioConnection.cpp) AudioConnection framesLeft: 7680
(1954542672 | 19339 | 2016-09-27 23:10:31.587206 | ../src/AudioConnection.cpp) AudioConnection framesLeft: 6144
(1954542672 | 19339 | 2016-09-27 23:10:31.637156 | ../src/AudioConnection.cpp) AudioConnection framesLeft: 4608
(1954542672 | 19339 | 2016-09-27 23:10:31.687188 | ../src/AudioConnection.cpp) AudioConnection framesLeft: 3072
(1954542672 | 19339 | 2016-09-27 23:10:31.737236 | ../src/AudioConnection.cpp) AudioConnection framesLeft: 1536
(1954542672 | 19339 | 2016-09-27 23:10:31.787165 | ../src/AudioConnection.cpp) AudioConnection framesLeft: 0 .......silence.
(1954542672 | 19339 | 2016-09-27 23:10:31.787428 | ../src/AudioConnection.cpp) AudioConnection::onAudioStreamFinished ()
(1954542672 | 19339 | 2016-09-27 23:10:31.787736 | ../src/AudioConnection.cpp) AudioConnection::isAudioStreamActive () = 1
The result of Pa_IsStreamActive depends on which host you use. It's not so surprising that it returns 1 after paAbort since that means something anomalous occurred and PortAudio should quit immediately. Most likely in this case you want to use paComplete instead. I think you want framesLeft <= frames for "final buffer".

Closing a xxforms:dialog which contains a xbl datatable generates an unknown error

Using 4.0.0 Beta 3.
We have a dialog using xxforms:dialog which is opened using xxforms:show and closed using xxforms:hide (either from an action button or the X (close) button). There is a common thread that if the dialog contains a xbl datatable an unknown error is generated (See below).
Sometimes the dialog hides completely with no client side error, other times the dialog does not re-render the page because a client side error occurs ( Message: 'undefined' is not an object (evaluating 'tooltips[control.id].cfg.getProperty') )
Any thoughts?
+----------------------------------------------------------------------------------------------------------------------+
|An Error has Occurred |
|----------------------------------------------------------------------------------------------------------------------|
|[No error message provided.] |
|----------------------------------------------------------------------------------------------------------------------|
|Application Call Stack |
|----------------------------------------------------------------------------------------------------------------------|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: java.lang.IllegalStateException |
|----------------------------------------------------------------------------------------------------------------------|
|org.orbeon.oxf.xforms.BindingContext$$anonfun$ances|apply |BindingContext.scala | 71|
|org.orbeon.oxf.xforms.BindingContext$$anonfun$ances|apply |BindingContext.scala | 71|
|scala.Option |getOrElse |Option.scala | 108|
|org.orbeon.oxf.xforms.BindingContext |ancestorOrSelfInScope$1 |BindingContext.scala | 71|
|org.orbeon.oxf.xforms.BindingContext |pushVariable |BindingContext.scala | 74|
|org.orbeon.oxf.xforms.XFormsContextStack |scopeVariable |XFormsContextStack.java | 224|
|org.orbeon.oxf.xforms.action.actions.XFormsActionAc|apply |XFormsActionAction.scala | 48|
|org.orbeon.oxf.xforms.action.actions.XFormsActionAc|apply |XFormsActionAction.scala | 41|
|scala.collection.Iterator$class |foreach |Iterator.scala | 772|
|scala.collection.JavaConversions$JIteratorWrapper |foreach |JavaConversions.scala | 573|
|scala.collection.IterableLike$class |foreach |IterableLike.scala | 73|
|scala.collection.JavaConversions$JListWrapper |foreach |JavaConversions.scala | 615|
|org.orbeon.oxf.xforms.action.actions.XFormsActionAc|execute |XFormsActionAction.scala | 41|
|org.orbeon.oxf.xforms.action.XFormsActionInterprete|runSingleIteration |XFormsActionInterpreter.java | 204|
|org.orbeon.oxf.xforms.action.XFormsActionInterprete|runAction |XFormsActionInterpreter.java | 150|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: org.orbeon.oxf.common.ValidationException |
|----------------------------------------------------------------------------------------------------------------------|
|org.orbeon.oxf.common.ValidationException |wrapException |ValidationException.java | 126|
|org.orbeon.oxf.xforms.action.XFormsActionInterprete|runAction |XFormsActionInterpreter.java | 157|
|org.orbeon.oxf.xforms.event.EventHandlerImpl$$anonf|apply$mcV$sp |EventHandlerImpl.scala | 249|
|org.orbeon.oxf.xforms.event.EventHandlerImpl$$anonf|apply |EventHandlerImpl.scala | 249|
|org.orbeon.oxf.xforms.event.EventHandlerImpl$$anonf|apply |EventHandlerImpl.scala | 249|
|org.orbeon.oxf.util.DynamicVariable |withValue |DynamicVariable.scala | 40|
|org.orbeon.oxf.xforms.action.XFormsAPI$ |withScalaAction |XFormsAPI.scala | 39|
|org.orbeon.oxf.xforms.event.EventHandlerImpl |handleEvent |EventHandlerImpl.scala | 248|
|org.orbeon.oxf.xforms.event.Dispatch$$anonfun$dispa|apply$mcV$sp |Dispatch.scala | 79|
|org.orbeon.oxf.xforms.event.Dispatch$$anonfun$dispa|apply |Dispatch.scala | 78|
|org.orbeon.oxf.xforms.event.Dispatch$$anonfun$dispa|apply |Dispatch.scala | 78|
|org.orbeon.oxf.util.Logging$class |withDebug |Logging.scala | 43|
|org.orbeon.oxf.xforms.event.Dispatch$ |withDebug |Dispatch.scala | 22|
|org.orbeon.oxf.xforms.event.Dispatch$$anonfun$dispa|apply |Dispatch.scala | 78|
|org.orbeon.oxf.xforms.event.Dispatch$$anonfun$dispa|apply |Dispatch.scala | 72|
|scala.collection.TraversableLike$WithFilter$$anonfu|apply |TraversableLike.scala | 697|
|scala.collection.LinearSeqOptimized$class |foreach |LinearSeqOptimized.scala | 59|
|scala.collection.immutable.List |foreach |List.scala | 76|
|scala.collection.TraversableLike$WithFilter |map |TraversableLike.scala | 696|
|org.orbeon.oxf.xforms.event.Dispatch$$anonfun$dispa|apply |Dispatch.scala | 72|
|---8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<---|
|org.orbeon.oxf.util.ScalaUtils$ |withRootException |ScalaUtils.scala | 116|
|org.orbeon.oxf.servlet.OrbeonServlet |service |OrbeonServlet.scala | 67|
|javax.servlet.http.HttpServlet |service |HttpServlet.java | 722|
|org.apache.catalina.core.ApplicationFilterChain |internalDoFilter |ApplicationFilterChain.java | 305|
|org.apache.catalina.core.ApplicationFilterChain |doFilter |ApplicationFilterChain.java | 210|
|org.apache.catalina.core.StandardWrapperValve |invoke |StandardWrapperValve.java | 225|
|org.apache.catalina.core.StandardContextValve |invoke |StandardContextValve.java | 169|
|org.apache.catalina.authenticator.AuthenticatorBase|invoke |AuthenticatorBase.java | 472|
|org.apache.catalina.core.StandardHostValve |invoke |StandardHostValve.java | 168|
|org.apache.catalina.valves.ErrorReportValve |invoke |ErrorReportValve.java | 98|
|org.apache.catalina.valves.AccessLogValve |invoke |AccessLogValve.java | 927|
|org.apache.catalina.valves.RemoteIpValve |invoke |RemoteIpValve.java | 680|
|org.apache.catalina.core.StandardEngineValve |invoke |StandardEngineValve.java | 118|
|org.apache.catalina.connector.CoyoteAdapter |service |CoyoteAdapter.java | 407|
|org.apache.coyote.http11.AbstractHttp11Processor |process |AbstractHttp11Processor.java | 999|
|org.apache.coyote.AbstractProtocol$AbstractConnecti|process |AbstractProtocol.java | 565|
|org.apache.tomcat.util.net.JIoEndpoint$SocketProces|run |JIoEndpoint.java | 309|
|java.util.concurrent.ThreadPoolExecutor |runWorker |ThreadPoolExecutor.java |1110|
|java.util.concurrent.ThreadPoolExecutor$Worker |run |ThreadPoolExecutor.java | 603|
|java.lang.Thread |run |Thread.java | 722|
+----------------------------------------------------------------------------------------------------------------------+"}
This indeed looks like a bug. I created an issue for this on GitHub, and you can watch that thread if you'd like to get updates on this.

Invalid Variant Operation using MS Word OLE Automation only on one specific machine

I am doing some search replace work using OLE Automation. The involved code is somehow the same I posted in This question.
On only one machine I have an "Invalid Variant Operation" error. This error appeared just after upgrading from MSOffice 2003 to 2010. But this occurs only on one pc, i tested on several pcs with office 2010 and the code works great.
I am really stuck, I tried to build with Eureka log And I will paste the call stack at the end of this question.
I hope somebody already stumbled into this problem so you can suggest.
The problem occured at a customer end, there are 100 machines connected to same DB and only on one it doesn't work.
Call Stack Information:
--------------------------------------------------------------------------------------------------
|Address |Module |Unit |Class |Procedure/Method |Line |
--------------------------------------------------------------------------------------------------
|*Exception Thread: ID=776; Priority=0; Class=; [Main] |
|------------------------------------------------------------------------------------------------|
|0043554F|Project1.exe|SysUtils.pas| |DoneExceptions |17031[25]|
|00435520|Project1.exe|SysUtils.pas| |DoneExceptions |17031[25]|
|00435CAA|Project1.exe|SysUtils.pas| |DoneExceptions |17031[25]|
|770F48F0|oleaut32.dll | | |VariantClear | |
|00435B43|Project1.exe|SysUtils.pas| |DoneExceptions |17031[25]|
|0043590C|Project1.exe|SysUtils.pas| |DoneExceptions |17031[25]|
|00435B48|Project1.exe|SysUtils.pas| |DoneExceptions |17031[25]|
|00435BE4|Project1.exe|SysUtils.pas| |DoneExceptions |17031[25]|
|00407316|Project1.exe|System.pas | |_HandleFinally |14330[39]|
|00407460|Project1.exe|System.pas | |_RaiseExcept |14712[1] |
|00635EED|Project1.exe|ComObj.pas | |DispCallError |2024[13] |
|004070DA|Project1.exe|System.pas | |_HandleAnyException |13728[81]|
|77E256A3|RPCRT4.dll | | |NdrClientCall2 | |
|7C80A174|kernel32.dll | | |WideCharToMultiByte | |
|0040C4DB|Project1.exe|System.pas | |LocaleCharsFromUnicode |29632[1] |
|0040C4C0|Project1.exe|System.pas | |LocaleCharsFromUnicode |29631[0] |
|00407EFC|Project1.exe|System.pas | |CharFromWChar |17375[3] |
|00407EDC|Project1.exe|System.pas | |CharFromWChar |17372[0] |
|00407F17|Project1.exe|System.pas | |CharFromWChar |17381[1] |
|00407F08|Project1.exe|System.pas | |CharFromWChar |17380[0] |
|004090CE|Project1.exe|System.pas | |_UStrToString |22054[8] |
|00404DA4|Project1.exe|System.pas | |Move |4808[1] |
|004090ED|Project1.exe|System.pas | |_UStrToString |22061[15]|
|7C920380|ntdll.dll | | |RtlImageNtHeader | |
|00407460|Project1.exe|System.pas | |_RaiseExcept |14712[1] |
|00635EED|Project1.exe|ComObj.pas | |DispCallError |2024[13] |
|004070DA|Project1.exe|System.pas | |_HandleAnyException |13728[81]|
|00407460|Project1.exe|System.pas | |_RaiseExcept |14712[1] |
|00635EED|Project1.exe|ComObj.pas | |DispCallError |2024[13] |
|7C913247|ntdll.dll | | |RtlConvertUlongToLargeInteger| |
|00404A95|Project1.exe|System.pas | |_ReallocMem |3871[22] |
|00404A88|Project1.exe|System.pas | |_ReallocMem |3850[1] |
|00409130|Project1.exe|System.pas | |_UStrSetLength |22152[27]|
|00408198|Project1.exe|System.pas | |_UStrAsg |17715[1] |
|0040C3EF|Project1.exe|System.pas | |UTF8ToUnicodeString |28576[11]|
|00407DB8|Project1.exe|System.pas | |_UStrClr |16954[1] |
|0040C404|Project1.exe|System.pas | |UTF8ToUnicodeString |28577[12]|
|7C91E485|ntdll.dll | | |KiUserApcDispatcher | |
|7C912B04|ntdll.dll | | |RtlInterlockedPushListSList | |
|77E943DB|SHLWAPI.dll | | |SHRegGetValueW | |
|77E943E8|SHLWAPI.dll | | |SHRegGetValueW | |
|00407460|Project1.exe|System.pas | |_RaiseExcept |14712[1] |
|00635EED|Project1.exe|ComObj.pas | |DispCallError |2024[13] |
|00635E48|Project1.exe|ComObj.pas | |DispCallError |2011[0] |
|00635F20|Project1.exe|ComObj.pas | |DispatchInvokeError |2031[1] |
|00635F1C|Project1.exe|ComObj.pas | |DispatchInvokeError |2031[1] |
|00635BF9|Project1.exe|ComObj.pas | |DispatchInvoke |1895[108]|
|00635940|Project1.exe|ComObj.pas | |DispatchInvoke |1787[0] |
|00635E3B|Project1.exe|ComObj.pas | |VarDispInvoke |2002[10] |
|774CF17D|ole32.dll | | |CoCreateInstanceEx | |
|77E25AE5|RPCRT4.dll | | |IUnknown_Release_Proxy | |
|00435C7A|Project1.exe|SysUtils.pas| |DoneExceptions |17031[25]|
|00435BE4|Project1.exe|SysUtils.pas| |DoneExceptions |17031[25]|
|004627DF|Project1.exe|Classes.pas |TThread |Create |11471[28]|
|004627D0|Project1.exe|Classes.pas |TThread |Create |11471[28]|
|00501FE5|Project1.exe|ActnList.pas|TContainedAction|Execute |448[8] |
|00501FB4|Project1.exe|ActnList.pas|TContainedAction|Execute |440[0] |
|00502DA0|Project1.exe|ActnList.pas|TCustomAction |Execute |1094[7] |
|00406498|Project1.exe|System.pas | |_CallDynaInst |11592[1] |
|004626A3|Project1.exe|Classes.pas |TThread |Create |11471[28]|
|00532DA4|Project1.exe|Menus.pas |TMenuItem |Click |2525[17] |

Resources