sai rama krishna

Ranch Hand
+ Follow
since May 29, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
2
In last 30 days
0
Total given
0
Likes
Total received
15
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sai rama krishna

Thank you for the guidance. None of online documentation I could find this example in my search though. Everywhere they are examples of fixed intervals
3 days ago
I have cron job running daily at 8 am in my spring boot java micro service like below



app.scheduler.memberPlanExecution-DailyRun: '0 0 8 * * *'





Cron expression generator - Quartz
Use this online user interface to generate cron expressions based on the Quartz engine.

Seconds
Minutes
Hours
Day
Month
Year
Every second
Every  123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960  second(s) starting at second  000102030405060708091011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
Specific second (choose one or many) 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59






I like to run at 8 AM, 1 PM, 4 PM, 6 PM daily. Instead of one tiome at 8 three more times during the day.

How to change my cron expression something like below?

app.scheduler.memberPlanExecution-DailyRun: '0 0 8/13/16/18 * * *'

or like below

app.scheduler.memberPlanExecution-DailyRun: '0 0 8^13^16^18 * * *'

or something else?

Please advise
4 days ago
Thank you all for your help with this issue.

Now it is all working fine.

I added below dependency which is not blocked by jfrog which does not have vulnerablilities
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20231013</version>
</dependency>


Also install intellij idea 2023.2.5 latest version resolved askpass errors as per below bug.
https://intellij-support.jetbrains.com/hc/en-us/community/posts/12744271234450-Git-error-unable-to-read-askpass-response-after-updating-to-2023-2-version-of-IntelliJ


Also below command from command prompt (after verifying git) resolved ownership bug related errors as per below bug
https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000597044--Couldn-t-check-the-working-tree-for-unmerged-files-because-of-an-error-

C:\Users\xyz>git config --global --add safe.directory C:/Users/xyz/Documents/DDrive/aaa-bbbmessages

C:\Users\xyz>


Also "reimport" and "Build Project" resolved some of cache issues on intellij idea to refresh as per latest maven dependencies modified in pom.xml

5 months ago

How to check the imports in Java. Is it like checking import statements at top of class right?

How to check the Maven dependency tree for javax in intellij idea? In POM " dependency analyzer" view as attached right? Not sure what is difference between :All dependencies as a list" and "All dependencies as tree" options.

Also DAO class also has javax imports which are not touched in other working micro projects but only touched in other classes, layers to convert from javax to jakarta which sounds to me like half conversion only. Not sure what is the reasoning behind that.

What is JMS server? Is it IBM MQ queue or spring boot tomcat server I am using on intellij idea to run this micro service to consume message on the IBM MQ queue?
5 months ago
I am using springboot 3.1. 4 and also spring. Spring jms version supposed to be managed by spring boot 3.1.4 version or I have to manage. Also JFROG is blocking lot of jars and version like below json jar as below due to vulnerabilities.
https://mvnrepository.com/artifact/org.json/json.
I did exclude jars from

I am facing some other issues using intellij idea community version while connecting to TFS repository.

Spending more time in  solving these IDE related issues, security related issues than actual coding daily.
If I use intellij idea 2021.2.1 community version and some times getting below kind of errors while getting latest code from TFS due to some existing bug
https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000597044--Couldn-t-check-the-working-tree-for-unmerged-files-because-of-an-error-

If I use intellij idea 2023 community version get different errors like below while getting latest code from TFS

https://intellij-support.jetbrains.com/hc/en-us/community/posts/12744271234450-Git-error-unable-to-read-askpass-response-after-updating-to-2023-2-version-of-IntelliJ
As mentioned in above thread I am trying below solution
File > Invalidate Caches.. > enable Clear file system cache and Local History option > Invalidate and Restart)
But under file i do not see invalidate caches
I see 'invalidate caches' under File -->settings but I do not see below option
" enable Clear file system cache and Local History option > Invalidate and Restart"
5 months ago
I have spring-jms 6.0.13 dependency in POM.xml but due to intellij idea cache related issues stills shows spring-jms-5.3.24 for DefaultJmsListenerContainerFactory class containing jar
5 months ago
Yes I have below dependency as well in POM.xml as last dependency. I missed it originally while copy pasting it

5 months ago
After excluding below that error got resolved.


But getting below error from other class now from below methods

fct.setConnectionFactory(mqQueueConnectionFactoryX());
  fct.setConnectionFactory(mqQueueConnectionFactoryY());

 
cannot access javax.jms.ConnectionFactory
incompatible types: com.ibm.mq.jakarta.jms.MQQueueConnectionFactory cannot be converted to javax.jms.ConnectionFactory.
Please advise
5 months ago
I have below dependencies and build plugins in my POM.xml.  I have repositories section and pluginrepositories section and distribution management section with jfrog urls as well

5 months ago
This class supposed to be in below jar (also there are transitive dependencies pulled by other different jars by spring boot)which is working in other micro service on other machine.
com.ibm.mq.jakarta.client-9.3.4.0.jar
This particular micro service on different machine does not pull it some reason
I noticed in past some cache issues with intellij idea. I am on intellij idea 2021. I will try with intellij idea 2023 as well and see.
5 months ago
hi,


I have below import in one of my class


import com.ibm.mq.jakarta.jms.MQQueueConnectionFactory;

Open in new window

I did maven clean  then maven install from my intellij idea but still getting below errors

package com.ibm.mq.jakarta.jms does not exist

I have cleaned my repository also to remove all old jars in cache.

Please advise
5 months ago
Hi,



How to use concurrentConsumers on spring boot micro service listening on IBM MQ. I changed value from default 1 to 2 (also to 4).



https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/jms/listener/DefaultMessageListenerContainer.html#setConcurrentConsumers(int)



But no change in speed of message consumption in performance/stress test. Please advise
5 months ago
Hi,

Production openshift PODs restarted 10 times in last few days by some other team or processes.
How to find the what date and time these PODs restarted and root cause of restarts.
As our kafka consumer leaves and rejoins the consumer group, the broker has to rebalance  kafka consumers across partitions.
Any specific key word i have to search in POD logs?
Since POD restarted live POD name keep changing with different suffix at the end like d9xyz in the POD name (like aaa-bbb-message-service-6-d9xyz).

Please advise

5 months ago
Thank you. It worked fine now. Apparently there are quota space issues in open shift which prevented to move forward after above error line  ( as per replication controller events message on openshift console)
5 months ago
Hi,
While doing jenkins build on to openshift environment I started getting below type of errors after adding below entry to the POM.xml
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20231013</version>
</dependency>



Jenkins build was working fine last week though
Please advise
5 months ago