Error Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser on Kubernetes container - kubernetes

After implementing jasperreport 6.0.0 on kubernetes I am getting below error
Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
I have tried multiple solution but still the error is NOT getting resolved.
Attempt 1: setting -Djava.awt.headless=true
I have implemented this property in YAML file as metioned on
how to add CATALINA_OPTS=-Djava.awt.headless=true this property in Kubernetes configuration
but it did not work.
I tried setting in system property as well System.setProperty("java.awt.headless", "true") but his also did not worked.
Attempt 2: Including missing dependency for xml-apis. It also did not work.
Attempt based on this thread.
Can someone please suggest any solution? The report is working absolutely fine in local environment but getting failed on server. The application is deployed on Kubernetes container

Related

You must first connect to a database to use Browser Sync in neo4j

i deployed the neo4j in kubernetes, so when i tried to acess http://:7474/ it show me this error( ServiceUnavailable: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver.), hoe can i solve it?
You need to uncomment a single line inside $NEO4J_HOME/conf/neo4j.conf:
dbms.connector.bolt.address=0.0.0.0:7687
The issue is well described here
If you're using Neo4j Helm instead of neo4j.conf you will have values.yaml. also it is well described here.

Spring cloud config properties not honouring config properties

I wish to use consul strictly as a config source.
I am using spring-cloud-consul-config to get my config.
I am using git2consul to load files into consul and read them.
As per the spring cloud documentation I have added the following to my build.gradle
compile ("org.springframework.cloud:spring-cloud-starter-consul-config")
and have the following in my application.properties
spring.application.name=test-service
spring.cloud.consul.config.enabled=true
spring.cloud.consul.enabled=true
spring.cloud.consul.config.format=FILES
The problem I am facing is that the expected properties are not being loaded into the ConfigurationProperties beans. On further debugging in the ConsulPropertySourceLocator::locate(Environment environment) method, I see that the this.properties object is still loaded with KEY_VALUE enum.
This led me to ConsulConfigBootstrapConfiguration class, where the ConsulConfigProperties bean is being instantiated using a constructor.
Is this the problem or do I have something wrong in my setup.
If someone has a working setup of git2consul and spring cloud config, please can you point me to it for reference.
These values that you have in application.properties
spring.application.name=test-service
spring.cloud.consul.config.enabled=true
spring.cloud.consul.enabled=true
spring.cloud.consul.config.format=FILES
need to be in bootstrap.properties.

Jboos connectivity Issue

I am getting the following error when trying to connect my application to jboss:
WARN | ISPN004022: Unable to invalidate transport for server:
/127.0.0.1:12222 ERROR | ISPN004017: Could not fetch transport
org.infinispan.client.hotrod.exceptions.TransportException:: Could not
connect to server: /127.0.0.1:12222
Tried searching a lot for a solution. It would be great is someone could help me out with this. Thanks
You must recall the following actions:
Make sure that your webapp is using the same port as defined in the socket-binding definitions for hotrod in the standalone.xml for JDG configuration folder;
Make sure that your webapp is using the proper inject annotations for your RemoteCacheManager class (remember to use the #ApplicationScopped annotation at the class definition and for additional methods used to get the cache instance);
If you are using JBoss and JDG on the same host, you must check declarations of the JBOSS_HOME environment variable. This variable must be assigned to the JDG installation home directory and not the JBoss EAP home (check also port-offset settings at startup if you're using a custom shell script);
If you are not using both products on the same host, check firewall and network settings;
Remember to re-deploy the application always after every modification and check both EAP and JDG console output for warnings and/or errors.
The following errors are related (for example):
14:38:42,610 WARN [org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory] (http-127.0.0.1:8080-1) ISPN004022:
Unable to invalidate transport for server: /127.0.0.1:11322
14:38:42,610 ERROR [org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory] (http-127.0.0.1:8080-1) ISPN004017:
Could not fetch transport: java.lang.IllegalStateException: Pool not open

Weblogic 12.2.1 upgrade domain reconfigure.sh.

I need to upgrade a weblogic domain to 12.2.1 from 12.1.3. I tried to use the reconfigure.sh weblogic utility. While using that utility, i am getting the below exception. The old domain is from weblogic 12.1.3. Any clues?
Exception in thread "Thread-4" java.lang.IllegalArgumentException: Invalid host:port
at com.oracle.cie.domain.jdbc.AddressList$HostPort.<init>(AddressList.java:133)
at com.oracle.cie.domain.jdbc.AddressList.setList(AddressList.java:78)
at com.oracle.cie.domain.jdbc.GridLinkRacHandler.createOnsHost(G
I had the same error. In my case it was cause about the custom DataSource configured in the domain, specifically with a data source configured as GridLink without ONS configuration.
As I resolved was, first I made a backup of config.xml file, then I removed all the custom datasource references, like this:
<jdbc-system-resource>
<name>mds-soa</name>
<target>soa_cluster,AdminServer</target>
<descriptor-file-name>jdbc/mds-soa-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<!--jdbc-system-resource>
<name>OrchDS</name>
<target>jms_cluster</target>
<descriptor-file-name>jdbc/OrchDS-1529-jdbc.xml</descriptor-file-name>
</jdbc-system-resource-->
Be careful, when you reconfigure the domain, all the comments in the config.ml file was removed.
Then start the wizard for reconfig the domain until setup progress windows, just to make sure you pass all the validations and then exit.
Add one by one until found the descriptor file who has the error.
I hope this help you.

Load balancing MySQL ndbcluster

I have successfully setup ndbcluster version 7.1.26.
This contains 2 data nodes[NDBD], 2 mysql [MYSQLD] nodes and one management [MGMD] node.
Replication works successfully.
My Web application is deployed in JBoss-5.0.1 and using JNDI for connection resources which are specified in application specific ds.xml file in load balanced url forms e.g. jbdc:mysql:loadbalance:host1:port1,host2:port2/databaseName.
host1 : refers to first mysqld node and port1 refers the port it is running on.
host2 : refers to second mysqld node and port2 refers the port it is running on.
When both of the [MySQLD] nodes are up and running everything works fine and cluster responds well, replicates data, and data retrieval operations also work properly.
But issues are raised when any of the [MySQLD] nodes goes down. Data gets inserted/updated/replicated but the application is unable to retrieve data from cluster and web page remains busy working which means busy retrieving data. As soon as the node which was down goes up it responds properly and application goes forward and shows up data retrieved from cluster.
At JBoss 5.0.1 startup it showed up a NullPointerException in class LoadBalancingConnectionProxy.invoke(LoadBalancingConnectionProxy.java:439). Tell me if the above Exception plays any role in the above explained issues.
If anyone had faced issues like above and if has any solution regarding the issues please let me know.
Thanks and regards.
I have resolved the issue as it was a bug in the connectorJ's version.
As The project I am working on was already using both the buggy jar mysql-connector-java-5.0.8.jar and the jar version in which the issue is already resolved i.e. mysql-connector-java-5.1.13-bin.jar.
After all the search when I removed the jar mysql-connector-java-5.0.8.jar my issues got resolved.
All that was problematic was that the ConnectorJ/Driver was getting referred from the buggy jar.
The bug id and url which refers to this issue is:
http://bugs.mysql.com/bug.php?id=31053
.
Thanks for considerations.
Are you using different userids and passwords for each of the hosts(host1, host2) specified in the tag ? (Either directly or using tag) ?