Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: Exception

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Exception

    Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceE xception: A ResourcePool could not acquire a resource from its primary factory or source.

    can any one help the above exception.


  2. #2
    Member
    Join Date
    Apr 2012
    Location
    Superior, CO, USA
    Posts
    80
    Thanks
    0
    Thanked 14 Times in 14 Posts

    Default Re: Exception

    No, not without significantly more information. Contact whoever provided the library (mchange.com ?) for help.
    Need Java help? Check out the HotJoe Java Help forums!

  3. #3
    Junior Member
    Join Date
    Nov 2010
    Posts
    18
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default Re: Exception

    Google is your friend https://www.google.lk/search?q=com.m...w=1366&bih=638

    Without source code and stacktrace how we gonna solve your problem. And normally library providers have forums and groups, ask this question some place like that.

  4. #4
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Re: Exception

    CannotAcquireResourceException (c3p0-0.9.2-pre2 API Documentation)

    Try to analyze the error output to see where the error is occurring.

    Usually most IDE's like JGrasp, Netbeams, and I think Eclipse and perhaps BlueJ should, if you click on the exception message, and on a part that happens to be in your program, it'll auto take you to the line or lines where it's going wrong.

  5. #5
    Junior Member
    Join Date
    Jul 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Exception

    Hi,

    I am getting an exception something like this:-


    2012-06-06 09:56:53,939 ERROR [STDERR] Exception in thread "pool-23-thread-349"
    2012-06-06 09:56:53,940 ERROR [STDERR] java.lang.NoClassDefFoundError: org/apache/axiom/om/OMFactory
    2012-06-06 09:56:53,940 DEBUG [DEBUG] com.wipro.security.profilesynch.service.LazyProfil eSynchronizer : Starting Profile Synchronization of [userID ]51355[applicationID ]null[loginID ]cchamp866@gmail.com
    2012-06-06 09:56:53,940 DEBUG [DEBUG] com.wipro.security.profilesynch.service.LazyProfil eSynchronizer : synchronizeUser()
    2012-06-06 09:56:53,940 DEBUG [DEBUG] com.wipro.security.cidbatchprocess.BatchProcessRes ponse : Reached here in synchronizeUser()
    2012-06-06 09:56:53,940 DEBUG [DEBUG] com.wipro.security.cidbatchprocess.BatchProcessRes ponse : Reached here in run()
    2012-06-06 09:56:53,940 DEBUG [DEBUG] com.wipro.security.profilesynch.service.Sequential ProfileSynchronizer : PROFILE SYNCH IS DONE BY ADMIN
    2012-06-06 09:56:53,940 DEBUG [DEBUG] com.wipro.security.profilesynch.service.Sequential ProfileSynchronizer : run()-- invoking getProfileSynchUserDAO(classType)
    2012-06-06 09:56:53,940 ERROR [STDERR] at java.lang.ClassLoader.defineClass1(Native Method)
    2012-06-06 09:56:53,940 INFO [DEBUG] com.wipro.security.authorization.util.DAOFactory : start of getProfileSynchUserDAO()
    2012-06-06 09:56:53,940 ERROR [STDERR] at java.lang.ClassLoader.defineClass(ClassLoader.java :620)
    2012-06-06 09:56:53,940 ERROR [STDERR] at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:124)
    2012-06-06 09:56:53,940 ERROR [STDERR] at java.net.URLClassLoader.defineClass(URLClassLoader .java:260)
    2012-06-06 09:56:53,940 INFO [STDOUT] CLASS TYPE IS: businessProfileSynchUser
    2012-06-06 09:56:53,940 ERROR [STDERR] at java.net.URLClassLoader.access$100(URLClassLoader. java:56)
    2012-06-06 09:56:53,940 INFO [STDOUT] CLASS TYPE IS: businessProfileSynchUser
    2012-06-06 09:56:53,941 ERROR [STDERR] at java.net.URLClassLoader$1.run(URLClassLoader.java: 195)
    2012-06-06 09:56:53,941 INFO [DEBUG] com.wipro.security.authorization.util.DAOFactory : end of getProfileSynchUserDAO()
    2012-06-06 09:56:53,941 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
    2012-06-06 09:56:53,941 DEBUG [DEBUG] com.wipro.security.profilesynch.service.Sequential ProfileSynchronizer : run()-- invoking getUserApplicationList()
    2012-06-06 09:56:53,941 ERROR [STDERR] at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
    2012-06-06 09:56:53,941 INFO [DEBUG] com.wipro.security.repository.RepositoryServerImpl : Start of retrieveRepository(String objectName)
    2012-06-06 09:56:53,941 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.findCla ssLocally(RepositoryClassLoader.java:690)
    2012-06-06 09:56:53,941 INFO [DEBUG] com.wipro.security.repository.RepositoryServerImpl : End...
    2012-06-06 09:56:53,941 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.findCla ss(RepositoryClassLoader.java:670)
    2012-06-06 09:56:53,941 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
    2012-06-06 09:56:53,941 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadCla ssLocally(RepositoryClassLoader.java:200)
    2012-06-06 09:56:53,941 ERROR [STDERR] at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.r un(ClassLoadingTask.java:131)
    2012-06-06 09:56:53,941 ERROR [STDERR] at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.ja va:399)
    2012-06-06 09:56:53,941 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadCla ssImpl(RepositoryClassLoader.java:527)
    2012-06-06 09:56:53,941 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadCla ss(RepositoryClassLoader.java:415)
    2012-06-06 09:56:53,941 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:2 51)
    2012-06-06 09:56:53,941 ERROR [STDERR] at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:319)
    09:56:55,315 ERROR [STDERR] at java.lang.Class.forName0(Native Method)
    09:56:55,763 ERROR [STDERR] at java.lang.Class.forName(Class.java:164)
    09:56:55,763 ERROR [STDERR] at org.apache.axiom.om.OMAbstractFactory.getOMFactory (OMAbstractFactory.java:46)
    09:56:55,763 ERROR [STDERR] at org.apache.axis2.description.AxisDescription.<init >(AxisDescription.java:68)
    09:56:55,764 ERROR [STDERR] at org.apache.axis2.description.AxisService.<init>(Ax isService.java:363)
    09:56:55,764 ERROR [STDERR] at org.apache.axis2.description.AxisService.<init>(Ax isService.java:434)
    09:56:55,764 ERROR [STDERR] at com.wipro.security.profilesynch.service.UpdateProf ileStub.populateAxisService(UpdateProfileStub.java :44)
    09:56:55,764 ERROR [STDERR] at com.wipro.security.profilesynch.service.UpdateProf ileStub.<init>(UpdateProfileStub.java:91)
    09:56:55,764 ERROR [STDERR] at com.wipro.security.profilesynch.service.UpdateProf ileStub.<init>(UpdateProfileStub.java:80)
    09:56:55,764 ERROR [STDERR] at com.wipro.security.profilesynch.service.UpdateProf ileStub.<init>(UpdateProfileStub.java:128)
    09:56:55,764 ERROR [STDERR] at com.wipro.security.profilesynch.service.Sequential SynchProfile.synch(SequentialSynchProfile.java:84)
    09:56:55,764 ERROR [STDERR] at com.wipro.security.profilesynch.service.Sequential ProfileSynchronizer.run(SequentialProfileSynchroni zer.java:152)
    09:56:55,764 ERROR [STDERR] at com.wipro.security.profilesynch.service.Sequential ProfileSynchronizer.synchronizeUser(SequentialProf ileSynchronizer.java:67)
    09:56:55,764 ERROR [STDERR] at com.wipro.security.profilesynch.service.LazyProfil eSynchronizer.run(LazyProfileSynchronizer.java:63)
    09:56:55,764 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:650)
    09:56:55,764 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:675)
    09:56:55,764 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
    09:56:55,765 INFO [DEBUG] com.wipro.security.profilesynch.service.Sequential SynchProfile : ENTERED SYNCH
    09:56:55,765 INFO [DEBUG] com.wipro.security.authorization.util.DAOFactory : start of getProfileSynchApplicationDAO()
    09:56:55,765 INFO [DEBUG] com.wipro.security.authorization.util.DAOFactory : end of getProfileSynchApplicationDAO()
    09:56:55,765 INFO [DEBUG] com.wipro.security.authorization.util.DAOFactory : start of getEventDAO()
    09:56:55,765 INFO [DEBUG] com.wipro.security.authorization.util.DAOFactory : end of getEventDAO()
    09:56:55,765 INFO [DEBUG] com.wipro.security.repository.RepositoryServerImpl : Start of retrieveRepository(String objectName)
    09:56:55,765 INFO [DEBUG] com.wipro.security.repository.RepositoryServerImpl : End...
    09:56:55,770 INFO [DEBUG] com.wipro.security.repository.RepositoryServerImpl : Start of retrieveRepository(String objectName)
    09:56:55,770 INFO [DEBUG] com.wipro.security.repository.RepositoryServerImpl : End...



    As I understand this issue is due to a missing jar file.
    But in the library I have this jar file mentioned in axiom.api 1.2.4jar.

    Still I do not understand why the same exception is coming up?

  6. #6
    Member
    Join Date
    Jul 2012
    Posts
    119
    Thanks
    0
    Thanked 19 Times in 19 Posts

    Default Re: Exception

    prabhabar and ssahu7
    if you both have some patience and read the whole print carefully you'll find the answer for yourselves.
    For example:
    java.lang.NoClassDefFoundError: org/apache/axiom/om/OMFactory tells you what?

    Yes, the class org/apache/axiom/om/OMFactory is missing !

Similar Threads

  1. Replies: 5
    Last Post: September 5th, 2011, 10:31 AM
  2. [SOLVED] Should I use an exception here?
    By whity in forum Java Theory & Questions
    Replies: 3
    Last Post: May 4th, 2011, 06:52 AM
  3. Replies: 6
    Last Post: March 25th, 2011, 03:42 PM
  4. can someone please help me im getting exception
    By kristynrod in forum Exceptions
    Replies: 2
    Last Post: March 15th, 2011, 04:40 PM
  5. DAO exception
    By nrao in forum What's Wrong With My Code?
    Replies: 2
    Last Post: December 13th, 2010, 12:22 PM