How to get the jms quickstart packaged with JBoss-Fuse-6.1.0.redhat-355 to work? - jms

The Karaf output is as under :
JBossFuse:karaf#root> features:addurl mvn:org.jboss.quickstarts.fuse/jms/6.1.0.redhat-355/xml/features
JBossFuse:karaf#root> features:install quickstart-jms
[Fatal Error] :6:3: The element type "hr" must be terminated by the matching end-tag "</hr>".
Error executing command: The element type "hr" must be terminated by the matching end-tag "</hr>".
I am not sure where this html element is being used.
log:display-exceptionreveals :
2016-02-12 07:36:24,571 | INFO | l Console Thread | Console | ?
? | 17 - org.apache.karaf.shell.console - 2.3.0.redhat-610355 | Exception caught while executing command
org.xml.sax.SAXParseException: The element type "hr" must be terminated by the matching end-tag "</hr>".
JBossFuse:karaf#root> log:display-exception
org.xml.sax.SAXParseException: The element type "hr" must be terminated by the matching end-tag "</hr>".
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)[:]
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)[:]
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)[:2.3.0.redhat-610355]
at org.apache.karaf.features.internal.FeatureValidationUtil.validate(FeatureValidationUtil.java:
52)[23:org.apache.karaf.features.core:2.3.0.redhat-610355]
at org.apache.karaf.features.internal.FeaturesServiceImpl.validateRepository(FeaturesServiceImpl
.java:215)[23:org.apache.karaf.features.core:2.3.0.redhat-610355]
at org.apache.karaf.features.internal.FeaturesServiceImpl.internalAddRepository(FeaturesServiceImpl.java:256)[23:org.apache.karaf.features.core:2.3.0.redhat-610355]
at org.apache.karaf.features.internal.FeaturesServiceImpl.getFeatures(FeaturesServiceImpl.java:1
015)[23:org.apache.karaf.features.core:2.3.0.redhat-610355]
at org.apache.karaf.features.internal.FeaturesServiceImpl.getFeature(FeaturesServiceImpl.java:97
3)[23:org.apache.karaf.features.core:2.3.0.redhat-610355]
at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.jav
a:395)[23:org.apache.karaf.features.core:2.3.0.redhat-610355]
at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:
62)[37:org.apache.karaf.features.command:2.3.0.redhat-610355]
at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.jav
a:41)[37:org.apache.karaf.features.command:2.3.0.redhat-610355]
at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)[17:org.
apache.karaf.shell.console:2.3.0.redhat-610355]
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[17:org.
apache.karaf.shell.console:2.3.0.redhat-610355]
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610355] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610355]
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610355]
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610355]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610355]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610355] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-610355]
at org.apache.karaf.shell.console.jline.Console.run(Console.java:189)[17:org.apache.karaf.shell.console:2.3.0.redhat-610355]
at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[17:org.apache.karaf.shell.console:2.3.0.redhat-610355]
JBossFuse:karaf#root>
If anyone can help me get this working it will help.
TIA

I got most of the quickstarts (incl the JMS one) to work on this version -> jboss-fuse-6.0.0.redhat-024. My JDK was 1.7.0_60 and was set to JAVA_HOME.

Related

Thymeleaf with springboot, error trying to check if list is empty now working

i'm trying to check if my list called listPersons is empty or not, but when i check i got an error like this:
Caused by: org.attoparser.ParseException: Exception evaluating
SpringEL expression: .... Caused by:
org.thymeleaf.exceptions.TemplateProcessingException: Exception
evaluating SpringEL expression: "#lists.isEmpty(listPersons"
(template: "index" - line 15, col 8)
I have tried this:
<h2 th:if="${#lists.isEmpty(listPersons)}">No hay personas</h2>
<div th:if="${#!lists.isEmpty(listPersons)}">
and this:
${listPersons.isEmpty()}
But none of the options are working. I'm using thymeleaf-3.0.15 and springboot version 2.7.2
In my Java method i have this line:
model.addAttribute("listPersons", personaService.getAll());
You are not using the conditional statements correctly, hence you are getting the SPEL error
<div th:if="${#!lists.isEmpty(listPersons)}">
Use the below for your condition
<div th:if="${not #lists.isEmpty(listPersons)}">
Refer https://www.thymeleaf.org/doc/tutorials/2.1/usingthymeleaf.html#conditional-evaluation
to get more insights.

Configuration Assistant (biee.py) Failed with Exit Value 1 at OBIEE12c

During installation and configuration of obiee12c(12.2.1.4), configuration assistant failed with an error.
The following is the installation log.
[2021-09-19T16:31:35.218+09:00] [bi] [NOTIFICATION] [] [oracle.bi.install.config.basesteps] [tid: 42] [ecid: 0000MTUM^f91Vctsoc7EDm1RztE2000004,0] Failed single shot step: BIEE with: Execution of [/u01/app/oracle/middleware/oracle_common/common/bin/wlst.sh, /u01/app/oracle/middleware/bi/modules/oracle.bi.configassistant/biee.py, /u01/app/oracle/middleware, /u01/app/oracle/middleware/user_projects/domains/bi, weblogic, Expanded, hxfpr371, 9502, 9503, ORACLE, oracle.jdbc.OracleDriver, jdbc:oracle:thin:#//:1521/, TST1, jdbc:oracle:thin:#//:1521/, ] failed with exit value 1
[2021-09-19T16:31:35.219+09:00] [bi] [ERROR] [] [oracle.bi.install.config.actions] [tid: 42] [ecid: 0000MTUM^f91Vctsoc7EDm1RztE2000004,0] Non-skipped failure during configuration action: Execution of [/u01/app/oracle/middleware/oracle_common/common/bin/wlst.sh, /u01/app/oracle/middleware/bi/modules/oracle.bi.configassistant/biee.py, /u01/app/oracle/middleware, /u01/app/oracle/middleware/user_projects/domains/bi, weblogic, Expanded, hxfpr371, 9502, 9503, ORACLE, oracle.jdbc.OracleDriver, jdbc:oracle:thin:#//:1521/, TST1, jdbc:oracle:thin:#//:1521/, ] failed with exit value 1[[
oracle.bi.exec.ExecutionStatusException: Execution of [/u01/app/oracle/middleware/oracle_common/common/bin/wlst.sh, /u01/app/oracle/middleware/bi/modules/oracle.bi.configassistant/biee.py, /u01/app/oracle/middleware, /u01/app/oracle/middleware/user_projects/domains/bi, weblogic, Expanded, hxfpr371, 9502, 9503, ORACLE, oracle.jdbc.OracleDriver, jdbc:oracle:thin:#//:1521/, TST1, jdbc:oracle:thin:#//:1521/, ] failed with exit value 1
at oracle.bi.exec.StdinProcess.runProcess(StdinProcess.java:106)
at oracle.bi.exec.ExecScript.executeScript(ExecScript.java:191)
at oracle.bi.exec.ExecScript.executeSynchronousScript(ExecScript.java:95)
at oracle.bi.exec.ExecWLST.executeWLSTScript(ExecWLST.java:62)
at oracle.bi.install.config.steps.WLSTStep.executeSingleShot(WLSTStep.java:55)
at oracle.bi.install.config.basesteps.SingleShotActionStep.execute(SingleShotActionStep.java:31)
at oracle.bi.install.config.basesteps.StepList.execute(StepList.java:85)
at oracle.bi.install.config.actions.BIConfigAction.doExecute(BIConfigAction.java:127)
at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:405)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:88)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:108)
at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
at oracle.as.install.engine.modules.configuration.action.RequestQueue.performSequentialExecution(RequestQueue.java:284)
at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:260)
at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:185)
at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:82)
at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:87)
at java.lang.Thread.run(Thread.java:748)
the issue is due to a java configuration parameter i guess, try this before installation :
go to « C:\Java\jdk1.8.0_192\jre\lib\security »
** replace this path with your own path
edit the file « java.security » and replace this line :
securerandom.source=file:/dev/random
by this line :
securerandom.source=file:/dev/urandom
for more details : Doc ID 2221805.1

What does mean the ElasticSearch exceptions: "all shards failed" and "No search context found for id"?

I'm working with ELS using the Scroll API and the following errors is persisting:
09:21:12.118] elastic-qlik-event-job [main] ERROR com.valemobi.ImportExportController - Não foi possivel recuperar pagina:
org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]
at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:177)
at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:1793)
at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1770)
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1527)
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1484)
at
Suppressed: org.elasticsearch.client.ResponseException: method [POST], host [http://database.elasticsearch.*.prod:8088], URI [/_search/scroll], status line [HTTP/1.1 404 Not Found]
{"error":{"root_cause":[{"type":"search_context_missing_exception","reason":"No search context found for id [15068451]"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":-1,"index":null,"reason":{"type":"search_context_missing_exception","reason":"No search context found for id [15068451]"}}],"caused_by":{"type":"search_context_missing_exception","reason":"No search context found for id [15068451]"}},"status":404}
at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:283)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:261)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:235)
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1514)
... 15 common frames omitted
Caused by: org.elasticsearch.ElasticsearchException: Elasticsearch exception [type=search_context_missing_exception, reason=No search context found for id [15068451]]
at org.elasticsearch.ElasticsearchException.innerFromXContent(ElasticsearchException.java:496)
at org.elasticsearch.ElasticsearchException.fromXContent(ElasticsearchException.java:407)
at org.elasticsearch.ElasticsearchException.innerFromXContent(ElasticsearchException.java:437)
at org.elasticsearch.ElasticsearchException.failureFromXContent(ElasticsearchException.java:603)
at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:169)
... 18 common frames omitted
Does anybody have any idea what may be causing this and how do I fix it?

Error Invalid format: [ISO8601] when indexing logs in ElasticSearch

I see an exception when I try to index my logs into ElasticSearch (1.3.4). The root cause of the exception I see is the following (edited my initial post to provide the full stacktrace)
[2015-01-09 15:53:00,953][DEBUG][action.admin.indices.create] [perfgen04 1] [logaggr-2015.01.09] failed to create
org.elasticsearch.index.mapper.MapperParsingException: mapping [test]
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$2.execute(MetaDataCreateIndexService.java:386)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:328)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:153)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.IllegalArgumentException: Invalid format: [ISO8601]: Illegal pattern component: I
at org.elasticsearch.common.joda.Joda.forPattern(Joda.java:160)
at org.elasticsearch.common.joda.Joda.forPattern(Joda.java:37)
at org.elasticsearch.index.mapper.core.TypeParsers.parseDateTimeFormatter(TypeParsers.java:295)
at org.elasticsearch.index.mapper.core.DateFieldMapper$TypeParser.parse(DateFieldMapper.java:155)
at org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parseProperties(ObjectMapper.java:289)
at org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parseObjectOrDocumentTypeProperties(ObjectMapper.java:217)
at org.elasticsearch.index.mapper.object.RootObjectMapper$TypeParser.parse(RootObjectMapper.java:136)
at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:209)
at org.elasticsearch.index.mapper.DocumentMapperParser.parseCompressed(DocumentMapperParser.java:190)
at org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:440)
at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:313)
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$2.execute(MetaDataCreateIndexService.java:383)
... 5 more
Caused by: java.lang.IllegalArgumentException: Illegal pattern component: I
at org.elasticsearch.common.joda.time.format.DateTimeFormat.parsePatternTo(DateTimeFormat.java:570)
at org.elasticsearch.common.joda.time.format.DateTimeFormat.createFormatterForPattern(DateTimeFormat.java:693)
at org.elasticsearch.common.joda.time.format.DateTimeFormat.forPattern(DateTimeFormat.java:181)
at org.elasticsearch.common.joda.Joda.forPattern(Joda.java:158)
... 16 more
I am using logstash (1.4.2) to send my logs to ElasticSearch. My grok filter is pretty simple and is as follows. I am keeping the timestamp as a string "logts".
filter {
grok {
match => [ "message", "%{DATA:logts}%{SPACE}\[%{LOGLEVEL:level}%{SPACE}]%{SPACE}\[%{DATA:thread}]%{SPACE}\[%{DATA:classname}]%{SPACE}%{GREEDYDATA:details}" ]
}
}
A sample line from my log file is:
2015-01-09 14:53:07,035-0800 [ERROR] [pool-1-thread-2] [LogGenerator] invocation count=101,time=95840107816543,metric=6688916707300087716
I ran logstash with '-vv' flag and I don't see any "[ISO8601]" in the output.
Does anyone know where the invalid format is being introduced?
The Gist is available here.
I deleted my Elasticsearch installation (this was a test environment) and reinstalled and this started working again.
I suspect if I had deleted my index it would have solved the problem as well.

Unable to resolve dummy/0.0.0: missing requirement

I've a problem when try deploy a profile on a cluster of fabric8 CR5.
this's a log part on karaf.log
2014-09-09 12:33:43,142 | INFO | o.fabric8.agent) | DeploymentAgent | 66 - io.fabric8.fabric-agent - 1.1.0.CR5 | DeploymentAgent updated with {repository.karaf-enterprise=mvn:org.apache.karaf.assemblies.features/enterprise/2.3.0.redhat-610379/xml/features, optional.mvn:org.apache.activemq/activemq-osgi/5.10.0=mvn:org.apache.activemq/activemq-osgi/5.10.0, attribute.parents=feature-camel, feature.insight-log=insight-log, org.ops4j.pax.url.mvn.defaultrepositories=file:/opt/fabric8-karaf-1.1.0.CR5/system#snapshots#id=karaf-default,file:/opt/fabric8-karaf-1.1.0.CR5/local-repo#snapshots#id=karaf-local, feature.camel=camel, feature.fabric-jaas=fabric-jaas, attribute.abstract=false, fabric.zookeeper.pid=io.fabric8.agent, bundle.mvn:anagrafiche_bloomberg/mortgages/0.1=mvn:anagrafiche_bloomberg/Mortgages/0.1, feature.camel-blueprint=camel-blueprint, bundle.mvn:anagrafiche_bloomberg/varcomty/0.1=mvn:anagrafiche_bloomberg/Varcomty/0.1, feature.fabric-core=fabric-core, optional.ops4j-base-lang=mvn:org.ops4j.base/ops4j-base-lang/1.4.0, service.pid=io.fabric8.agent, org.ops4j.pax.url.mvn.repositories=http://repo1.maven.org/maven2#id=central, https://repo.fusesource.com/nexus/content/groups/public#id=fusepublic, https://repository.jboss.org/nexus/content/repositories/public#id=jbosspublic, https://repo.fusesource.com/nexus/content/repositories/releases#id=jbossreleases, https://repo.fusesource.com/nexus/content/groups/ea#id=jbossearlyaccess, http://repository.springsource.com/maven/bundles/release#id=ebrreleases, http://repository.springsource.com/maven/bundles/external#id=ebrexternal, http://10.0.0.124:8081/artifactory/libs-release-local#id=pippo, feature.fabric-web=fabric-web, feature.fabric-git-server=fabric-git-server, repository.apache-camel=mvn:org.apache.camel.karaf/apache-camel/2.13.2/xml/features, bundle.mvn:org.talend.esb.job/org.talend.esb.job.api/5.4.1=mvn:org.talend.esb.job/org.talend.esb.job.api/5.4.1, bundle.mvn:anagrafiche_bloomberg/equities/0.1=mvn:anagrafiche_bloomberg/Equities/0.1, resolve.optional.imports=false, repository.fabric8=mvn:io.fabric8/fabric8-karaf/1.1.0.CR5/xml/features, feature.camel-amq=camel-amq, optional.mvn:org.talend.esb.job/org.talend.esb.job.api/5.4.1=mvn:org.talend.esb.job/org.talend.esb.job.api/5.4.1, bundle.mvn:anagrafiche_bloomberg/equity_option_warrants/0.1=mvn:anagrafiche_bloomberg/Equity_Option_Warrants/0.1, feature.karaf=karaf, feature.camel-ftp=camel-ftp, feature.fabric-agent=fabric-agent, feature.jolokia=jolokia, feature.fabric-git=fabric-git, feature.camel-core=camel-core, feature.fabric-camel=fabric-camel, hash=ProfileImpl[id='Anagrafica_Bloomberg', version='1.0']-328b4e0-9859682-9859682-cbe9c83, bundle.mvn:anagrafiche_bloomberg/commodities/0.1=mvn:anagrafiche_bloomberg/Commodities/0.1, repository.karaf-spring=mvn:org.apache.karaf.assemblies.features/spring/2.3.0.redhat-610379/xml/features, lastrefresh.anagrafica_bloomberg=1410258607347, patch.repositories=https://repo.fusesource.com/nexus/content/repositories/releases, https://repo.fusesource.com/nexus/content/groups/ea, repository.karaf-standard=mvn:org.apache.karaf.assemblies.features/standard/2.3.0.redhat-610379/xml/features, bundle.mvn:anagrafiche_bloomberg/vargov_corp_muni/0.1=mvn:anagrafiche_bloomberg/Vargov_Corp_Muni/0.1, bundle.mvn:it.gestielle/anagrafica_bloomberg/1.0=mvn:it.gestielle/Anagrafica_Bloomberg/1.0}
2014-09-09 12:33:44,157 | ERROR | agent-1-thread-1 | DeploymentAgent | 66 - io.fabric8.fabric-agent - 1.1.0.CR5 | Unable to update agent
org.osgi.service.resolver.ResolutionException: Unable to resolve dummy/0.0.0: missing requirement [dummy/0.0.0] osgi.identity; osgi.identity=anagrafiche_bloomberg.Commodities; type=osgi.bundle; version="[0.1.0,0.1.0]" [caused by: Unable to resolve anagrafiche_bloomberg.Commodities/0.1.0: missing requirement [anagrafiche_bloomberg.Commodities/0.1.0] osgi.wiring.package; filter:="(osgi.wiring.package=org.apache.cxf.management.counters)"]
at org.apache.felix.resolver.Candidates.populateResource(Candidates.java:285)[66:io.fabric8.fabric-agent:1.1.0.CR5]
at org.apache.felix.resolver.Candidates.populate(Candidates.java:153)[66:io.fabric8.fabric-agent:1.1.0.CR5]
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:148)[66:io.fabric8.fabric-agent:1.1.0.CR5]
at io.fabric8.agent.DeploymentBuilder.resolve(DeploymentBuilder.java:224)[66:io.fabric8.fabric-agent:1.1.0.CR5]
at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:575)[66:io.fabric8.fabric-agent:1.1.0.CR5]
at io.fabric8.agent.DeploymentAgent$2.run(DeploymentAgent.java:301)[66:io.fabric8.fabric-agent:1.1.0.CR5]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_65]
at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_65]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_65]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_65]
at java.lang.Thread.run(Thread.java:745)[:1.7.0_65]
this is my local repository
http://10.0.0.124:8081/artifactory/libs-release-local#id=pippo
set on org.ops4j.pax.url.mvn.repositories property where the jar are deploy.
Can someone help me ??
Why the dependencies are not resolve?
Thanks
Mirko
dummy/0.0.0.0 is just the entry point -- read the rest of the error where it walks the dependency chain.
You'll see it's requiring anagrafiche_bloomberg.Commodities, which is requiring org.apache.cxf.management.counters. Be sure to install the CXF package.

Resources