Vilpesh Mistry

Ranch Hand
+ Follow
since May 27, 2003
Vilpesh likes ...
Eclipse IDE Java
Merit badge: grant badges
For More
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 Vilpesh Mistry

Hello friend,

I do teach Java. Although very late in responding, please let me know if you still looking out for Java lessons.
Please send me private message, so that we can take this further.
9 years ago
Hello Friends,

I want to sell,
1>Sun Certified Programmer for Java 6 (SCJP) Study Guide by Kathy Sierra and Bert Bates. Also has original CD.I have never used the CD.
2>Sams Teach yourself - Android Application Development in 24 hours by Lauren Darcey and Shane Condor.

Both books i have read few chapters.These book are well maintained.

Please contact me to buy the book.
9 years ago
Hi all,

I too had joined the "Functional Programming Principles in Scala" course and glad to say done with my 1st week assignment, just before the 1st week assignment deadline.

Thanks to all who pointed out to read SICP book (Structure and Interpretation of Computer Programs. by Harold Abelson,Gerald Jay Sussman and Julie Sussman) to solve the 1st week assignment.

I could easily do Pascals Triangle,Parantheses Balancing but it was difficult to solve out Counting change problem.Finally solved Counting change.

Will have to rush to week 2 videos and assignment.
11 years ago
Hello,

I am facing the problem in generating java code files from eclipse-JEE-indigo while using hibernate tool present in JBoss Tools.

My Setup :
1> Eclipse Java EE IDE for Web Developers. ( Version: Indigo Service Release 2 Build id: 20120216-1857 )
contains Hibernate Tools 3.4.0.v20120504-2121-H72-Beta3 org.hibernate.eclipse.feature.feature.group JBoss by Red Hat

I had downloaded eclipse indigo mentioned above and had got jboss tools installed over it from update site (http://download.jboss.org/jbosstools/up ... nt/indigo/)
-------------
I had created Hibernate Console Configuration and could see the tables in eclipse which were created in postgreSQL database.
Now i wish to generate the .java, .hbm.xml, DAO files using Hibernate Code generation Configurations.
When i run the code generation, it gives me following error.

java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(Unknown Source)
at java.util.zip.ZipFile.getEntry(Unknown Source)
at java.util.jar.JarFile.getEntry(Unknown Source)
at java.util.jar.JarFile.getJarEntry(Unknown Source)
at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
at sun.misc.URLClassPath.getResource(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at org.jboss.tools.hibernate3_6.HibernateExtension3_6$5$1.findClass(HibernateExtension3_6.java:157)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.jboss.tools.hibernate3_6.HibernateExtension3_6$5$1.loadClass(HibernateExtension3_6.java:168)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.jboss.tools.hibernate3_6.HibernateExtension3_6$5$1.loadClass(HibernateExtension3_6.java:176)
at org.postgresql.Driver.getDefaultProperties(Driver.java:85)
at org.postgresql.Driver.connect(Driver.java:231)
at org.jboss.tools.hibernate3_6.FakeDelegatingDriver.connect(FakeDelegatingDriver.java:31)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)
at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getConnection(AbstractMetaDataDialect.java:121)
at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getMetaData(AbstractMetaDataDialect.java:60)
at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.caseForSearch(AbstractMetaDataDialect.java:163)
at org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getTables(JDBCMetaDataDialect.java:22)
at org.hibernate.cfg.reveng.JDBCReader.processTables(JDBCReader.java:476)
at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:74)
at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:860)
at org.hibernate.cfg.JDBCBinder.readDatabaseSchema(JDBCBinder.java:120)
at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:93)
at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:43)
at org.jboss.tools.hibernate3_6.console.ConsoleExtension3_6$3.execute(ConsoleExtension3_6.java:271)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.jboss.tools.hibernate3_6.HibernateExtension3_6.execute(HibernateExtension3_6.java:201)
at org.jboss.tools.hibernate3_6.console.ConsoleExtension3_6.buildConfiguration(ConsoleExtension3_6.java:239)
at org.jboss.tools.hibernate3_6.console.ConsoleExtension3_6.runExporters(ConsoleExtension3_6.java:169)
at org.jboss.tools.hibernate3_6.console.ConsoleExtension3_6.launchExporters(ConsoleExtension3_6.java:126)
at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:270)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:937)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1141)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Session Data
eclipse.buildId=M20120208-0800
java.version=1.6.0_32
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_IN
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

-------------
Please suggest possible solutions to this problem.
Hi Venu babu,

1> Which java SE version exam can one give using this voucher ?
2> Will it be valid across any prometric centre in India ?
3> Is the voucher SCJP (sun certified) or OC (oracle certified) Java SE ?
4> What is the exam number printed ?
12 years ago
Hi,
Is their any Application server in Java freely available ?
Earlier JBoss was under open source and free to use.These days i don't find or don't know of any freely available application server available to do Java development.
13 years ago
Hi all,

A] Which of the javascript frameworks is the best supported from RubyOnRails ?
1> JQuery.
2> Dojo.

B] Which one out of the JQuery and Dojo can be used for complex javascript DOM manipulation.


Is their any other framework other than above specified best to use while developing in RubyOnRails.

thanks.
13 years ago
I had downloaded the stand-alone ArgoUML app but also thought to try using eclipse( as it is a great freely available Java development tool)

I could make Sequence diagram in AgroUML, also added the Deployment diagram in AgroUML.
thanks Tim and David for helping out.

The other problem i found in eclipse is that some kind of error popping up as you progress ahead creating these diagrams.
Is eclipse support for UML still in the development phase ?
I even cannot find proper documentation for UML any where on the eclipse website.

thanks
Vilpesh
Hi,

I have downloaded the eclipse by title - eclipse-modeling-galileo-SR2-incubation-macosx-carbon.tar

I wanted to make deployment and sequence diagram using eclipse.
I could make deployment diagram but i could not correctly figure out creating sequence diagram.
I had searched on internet but did not get any tutorial related to creating Sequence diagram in Eclipse,specifically this version.

Can some one point me to some website were this tutorial is present.

Other thought that came to mind is any one using eclipse to make UML diagrams ?
I intend to create a common jar which contains all Java Classes related to implementing log4j logging functionality.I have implemented Singleton (GoF) design pattern in a class SLogger to return single instance of log4j across the application.
I have created customlogger.jar file with all class files related to log4j logging and lib folder containing log4j-1.2.8.jar file.
Following shows the directory structure :
-customlogger
----src/
------com.vilpesh.logger
----lib/
------log4j-1.2.8
----META-INF
------MANIFEST.MF

Contents of MANIFEST.MF is
Manifest-Version: 1.0
Class-Path: lib/log4j-1.2.8.jar

When i add the customlogger.java in my other application and try to make use of logging functionality i get following error

java.lang.NoClassDefFoundError: org.apache.log4j.PropertyConfigurator

My other application is deployed in a Websphere application server 6.1.

In the Class SLogger, i have a code statement,which raises error
PropertyConfigurator.configure("C://log4j.properties");

Is it possible to refer to log4j.jar from customlogger.jar?
I want to make any application in the world to be making use of customlogger.jar.
I think the J2EE application server can load the customlogger.jar but it cannot somehow load log4j.jar
In log4j appenders represent the channel where you can send the information to be logged.
Write a Java program to pass different appender name to following log4j api call ----
Log logr = null;
logr = Logger.getLogger(--appender name--);
logr.debug("Entering Javaranch");

passing different appender name is like asking Log4j to write in different log files.
your application has to pick up correct appender name and pass it to logger so that information is written in different log files.

thanks
Vilpesh
Hi,

Can an object be kept live in the memory of the application server until the application server (Jboss and WAS) is restarted.

As a solution to this i can only think of JNDI(RMI registry) to be of use to achieve my requirement.

Please provide comments.

thanks
Vilpesh
Hi Janaka,

GoF = Gang of Four.Named after 4 engineers from IBM who provided solution for a particular type of problem(s).
The design patterns like Singleton,Factory,Template,Command etc all fall under GOF patterns.

To know exactly the patterns you can read the book HeadFirst Design Patterns.

thanks
Vilpesh
Hi all,

well i wish to buy a laptop, i do not know any website where i can search for old or refurbished or 2nd hand laptops.

If some one can help out,it would be really great.

thanks.
16 years ago