Win a copy of Rust Web Development this week in the Other Languages forum!

vittal mareddy

Greenhorn
+ Follow
since Jul 24, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
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 vittal mareddy

We have NAS share,  have to find given user(dmadmin) exist on permission entry all sub folders from a folder in NAS using java, see attachment

5 years ago
Performance of application is every important aspect, thanks for getting your thoughts in the book, hopefully will help people great extent.

5 years ago
Hi All,
We have web application accessing through IE 11 using Load balancer url, certificates are deployed on Load balancer, see warning message with JRE Java 8 update 51, whereas the application works fine with Java 8 update 25, attached screen shots of sample certificates. Please advice what might causing.


In working case(Java 8 update 25), Certification Authority is connected using proxy url, whereas in issue case(Java 8 update 51) Certification Authority connected directly.

1. Below is Java console trace with Java 8 update 25
network: Connecting http://ocsp.verisign.com/ with proxy=HTTP @ xxweb.xx.xxx/xx.xxx.xxx.xx:9999
security: OCSP Response: GOOD



2. Below is Java console trace with Java 8 update 51.

6 years ago
code was working for many years with , some kind of configuration changed on samba server, I disabled dfs property in jcifs, looks working in non production environment, yet to verify in production, will keep posted once verified. Thanks for helping.
If we map source drive (\\xxx.xx.xx.xx\abcd95\D\NJ$) from target machine (aaaaaa.bbb.ccc), using window copy option transfer is quick 160MB takes 3 sec. Whereas this functionality we are doing from code implemented using JAVA API with SAMBA protocol (jcifs-1.3.17.jar) takes longer time. This implementation been working fine 8+ years, no change in implementation, since recently performance degraded, transfer take 40+ minutes, sometime transfer fails. Is it some would have changed on samba server/configuration?, please advise.
Hi All,
I would like to have advice on multiple issues, code snippet java code.



1. above snippet of code setup locally, worked one day but later throws below exception, what might causing?

)

2. Basically I am trying to trouble shoot performance issue, same code have been working for years i.e. to copy zip file(3KB to 800MB) from samba server to appserver but since recent time copy function takes long time for a give file, please advice what might cause?
We have below code to copy a zip file > 170GB from NAS drive, takes longer time, please advice to improve performance.


6 years ago
help me, how can we create an image on chart in pptx

Thanks
Vittal
6 years ago
I have web service client generated from wsdl2jave of axis2-1.4.1, we are getting an error on calling webservice operation, i have manually set timeout at one of the operation invocation, that looks fine , but we have call so many places, do i need to set time every place.
I am not sure code i have to set time is correct, please advice how to over come the issue, web service has been deployed on WAS.

here is the code added to set timeout


Here is error stack trace

8 years ago
I have a below code to lookup LDAP to find userprincipal name using login name, works fine, look up to default ldap server, if i want to provide ldap server name, port and principal user name and password, what code i have to use, it will be great help.


8 years ago
We have 2 sets of java client files generated from wsdl i can see some syntax difference between generated by somebody else & myself. what i have to do, so i my java code syntax will match

below are difference marked in red & bold

somebody java client code syntax

public enum AccessType {

PERMIT, RESTRICT, REQUIRE_GROUP, REQUIRE_GROUP_SET;

public String value() {
return name();
}

public static AccessType fromValue(final String v ) {
return valueOf(v);
}

}


my java client code syntax

public enum AccessType {

PERMIT,
RESTRICT,
REQUIRE_GROUP,
REQUIRE_GROUP_SET;


public String value() {
return name();
}

public static AccessType fromValue(String v) {
return valueOf(v);
}


using
Using AXIS2_HOME: C:\vittal\downloads\axis2-1.4.1
Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_22

9 years ago
Ok, from Tony comment, modified my code as below

getLocalTime(String timeInServer, int timezone){
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy hh:mm:ss a");
String newdate = null;
Calendar cal = Calendar.getInstance();
cal.setTime(sdf.parse(date));
sdf.setTimeZone(TimeZone.getTimeZone("America/Los_Angeles"));
String newdate = sdf.format(cal.getTime());
System.out.println("before = "+date);
System.out.println("after = "+newdate);
return newdate;
}

I have hard coded timezone value as America/Los_Angeles to get user TimeZone object. my question here is how i can find time zone value which i have hard coded(America/Los_Angeles), is there any java script method available or httprequest will have.
thanks
9 years ago
Users are accessing web application from different countries, application is deployed in Germany. code is getting time in germany time zone, in application getting timezone offset(difference server to client) adding / subtracting to server time. looks due to daylight saving for some records time show difference than local time expected.

code i have is, it doesn't handle daylight saving, if i want to handle also daylight saving for different countries, what i have to do.

getLocalTime(String timeInServer, int minutes){
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy hh:mm:ss a");
String newdate = null;

Calendar cal = Calendar.getInstance();
cal.setTime(sdf.parse(timeInServer));
cal.add(Calendar.MINUTE, minutes);
newdate = sdf.format(cal.getTime());
return newdate;
}
9 years ago
It worked using dateformat & calender, but as Winston mentioned we do see issue with daylight saying, please suggest how to handle.
9 years ago
I have date in string variable, i have to add/subtract minutes from it, please adivce , how i could do in java 1.5
sample data
String olddate = "12/16/2010 4:58:29 PM"
String minutes1 = "300"
i would like to get value as below for above data
String newdate ="12/16/2010 9:58:29 PM"


Thanks
vittal

9 years ago