priyatham suresh

Greenhorn
+ Follow
since Oct 29, 2014
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 priyatham suresh

Hi Every one,

I am using ehcache-1.5 and jdk-1.4 and websphere application server for my project.

I have tested these in my local with windows environment. every thing works fine.
In windows environment it's storing data into heap as well as diskstore.
But it's not happening in linux environment.

I used Ehcache.flush() after object insertion, this is causing that flushing data into the diskstore from heap in linux , but it is available in both the places in windows.

Here is my ehcache.xml configuration file.




Here is my singleton class for Cache Operations.




TestCacheUtils.java to test cache.



Logs in windows environment.
disk size: 2 In memory size: 200

Logs in linux environment.
disk size: 2 In memory size: (if i use cache.flush())
disk size: In memoru size: 200(if i didn't use cache.flush())


Thanks in advance for your help.
2 years ago
Hi All,

I am facing following problem while deploying war file in jboss7.


org.jboss.as.server.deployment.DeploymentUnitProcessingException: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018037: Failed to process WEB-INF/lib: "/content/telephony-rest-1.7.1.local-SNAPSHOT.war/WEB-INF/lib/atmosphere-compat-jbossweb-2.0.1.jar"
at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.deploy(WarStructureDeploymentProcessor.java:120)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018037: Failed to process WEB-INF/lib: "/content/telephony-rest-1.7.1.local-SNAPSHOT.war/WEB-INF/lib/atmosphere-compat-jbossweb-2.0.1.jar"
at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.createWebInfLibResources(WarStructureDeploymentProcessor.java:175)
at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.createResourceRoots(WarStructureDeploymentProcessor.java:153)
at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.deploy(WarStructureDeploymentProcessor.java:114)
... 6 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.7.0_80]
at java.util.zip.ZipFile.<init>(ZipFile.java:215) [rt.jar:1.7.0_80]
at java.util.zip.ZipFile.<init>(ZipFile.java:145) [rt.jar:1.7.0_80]
at java.util.jar.JarFile.<init>(JarFile.java:154) [rt.jar:1.7.0_80]
at java.util.jar.JarFile.<init>(JarFile.java:118) [rt.jar:1.7.0_80]
at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:97)
at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:83)
at org.jboss.vfs.VFS.mountZip(VFS.java:408)
at org.jboss.vfs.VFS.mountZip(VFS.java:434)
at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.createWebInfLibResources(WarStructureDeploymentProcessor.java:170)
... 8 more

01-09-2015 10:28:23,555 ERROR [org.jboss.as.server.deployment.scanner] (handleFailureResult) (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"telephony-rest-1.7.1.local-SNAPSHOT.war\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"telephony-rest-1.7.1.local-SNAPSHOT.war\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"telephony-rest-1.7.1.local-SNAPSHOT.war\""}}}}


Thanks in advance for the solution.
Hi All,

This is priyatham.
I am new to mysql loadblancing. i am using amazon RDS instances. i have created two read replicas for my master db. i used haproxy for load balancing.
I have problem configuring load balancer with jboss as7.

Any help will be appreciated.
4 years ago
Thanks winston and richard.
Article what you have posted helped me a lot.
4 years ago
I am new to code ranch.
How can i move my topic from Threads and Synchronization to java in general.
4 years ago
Hi,

This is priyatham, I am facing issue while calling python script from java code using process.
python script writing data into the four files(logging.txt, text1.txt, text2.txt, text3.txt) each one is 2mb.
It keeps writing logs into the loggin.txt. And python keeps data into the variables while processing the script and write into the corresponding files after completion of logging.

problem: it's stop writing data into the logging file after 60Kb though process is running.

everything is working fine, if the file size is small.
It's working fine if i run the same using command line.

Here is my java code.

Process p = Runtime.getRuntime().exec("python test.py arg1 arg2 arg3 arg4"); // i replaced the string with "nohup python test.py arg1 arg2 arg3 arg4"
if(p.waitFor() == 0){
System.out.println("process completed.");
}

Thanks in advance for helping me to resolve this problem.
4 years ago