Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jul 2009 16:53:30 -0700 (PDT)
From:      Hegazy <engmohheg@gmail.com>
To:        freebsd-java@freebsd.org
Subject:   Re: java native code error
Message-ID:  <24526419.post@talk.nabble.com>
In-Reply-To: <24526351.post@talk.nabble.com>
References:  <24526351.post@talk.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help

i forgot to say that i use gcj under freebsd system .
Thanks


Hegazy wrote:
> 
> Dear All,
> i have a problem after compilation of a java application to native code ,
> the first time when i ran the native code there was a run time java
> exception class not found (sping.framework.collectionfactory ) the
> application uses spring version 2 , i updated the application with the
> latest version of spring library , and also there was an error about
> edu.emory.mathcs.backport.java.util.concurrent so i added the backport
> library , after adding the latest version of the spring and backport i
> have this error :
> 
> Caused by: java.lang.UnsatisfiedLinkError: registerNatives 
> 
> i don't know what is the problem , could anyone tell me what is the
> problem 
> 
> 2009-07-15 19:36:39.210::INFO: Logging to STDERR via
> org.mortbay.log.StdErrLog2009-07-15 19:36:39.363::INFO:
> jetty-6.1.02009-07-15 19:36:39.446::INFO: Started SelectChannelConnector @
> 0.0.0.0:525012009-07-15 19:36:49.966:/:INFO: Initializing Spring
> FrameworkServlet
> 'org.springframework.web.servlet.DispatcherServlet'2009-07-15 19:36:49,966
> [btpool0-2] INFO DispatcherServlet - FrameworkServlet
> 'org.springframework.web.servlet.DispatcherServlet': initialization
> started2009-07-15 19:36:50,000 [btpool0-2] INFO XmlWebApplicationContext -
> Refreshing
> org.springframework.web.context.support.XmlWebApplicationContext@919be70:
> display name [WebApplicationContext for namespace
> 'org.springframework.web.servlet.DispatcherServlet-servlet']; startup date
> [Wed Jul 15 19:36:50 GMT 2009]; root of context hierarchy2009-07-15
> 19:36:50.165::WARN: EXCEPTION javax.servlet.ServletException: init at
> org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:391)
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:468)
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367)
> at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
> at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146)
> at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:285) at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) at
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) at
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329)
> at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
> 
> Caused by: java.lang.UnsatisfiedLinkError: registerNatives 
> 
> at sun.misc.Unsafe.(Unsafe.java:28) at
> java.lang.Class.initializeClass(Unknown Source) at
> java.util.concurrent.locks.AbstractQueuedSynchronizer.(AbstractQueuedSynchronizer.java:2153)
> at java.lang.Class.initializeClass(Unknown Source) at
> java.lang.Class.initializeClass(Unknown Source) at
> java.lang.Class.initializeClass(Unknown Source) at
> edu.emory.mathcs.backport.java.util.concurrent.locks.ReentrantLock.(ReentrantLock.java:237)
> at
> edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap$Segment.(ConcurrentHashMap.java:291)
> at
> edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap.(ConcurrentHashMap.java:614)
> at
> edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap.(ConcurrentHashMap.java:645)
> at
> org.springframework.core.CollectionFactory$BackportConcurrentCollectionFactory.createConcurrentHashMap(CollectionFactory.java:342)
> at
> org.springframework.core.CollectionFactory$BackportConcurrentCollectionFactory.access$400(CollectionFactory.java:335)
> at
> org.springframework.core.CollectionFactory.createConcurrentMapIfPossible(CollectionFactory.java:200)
> at
> org.springframework.core.SimpleAliasRegistry.(SimpleAliasRegistry.java:41)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.(DefaultSingletonBeanRegistry.java:74)
> at
> org.springframework.beans.factory.support.FactoryBeanRegistrySupport.(FactoryBeanRegistrySupport.java:40)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.(AbstractBeanFactory.java:145)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.(AbstractAutowireCapableBeanFactory.java:140)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.(AbstractAutowireCapableBeanFactory.java:151)
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.(DefaultListableBeanFactory.java:121)
> at
> org.springframework.context.support.AbstractRefreshableApplicationContext.createBeanFactory(AbstractRefreshableApplicationContext.java:176)
> at
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:121)
> at
> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423)
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353)
> at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:354)
> at
> org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:292)
> at
> org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:262)
> at
> org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126)
> at javax.servlet.GenericServlet.init(GenericServlet.java:241) at
> org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:442)
> at
> org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:370)
> ...14 more
> 
> 
> Thanks
> Hegazy
> 

-- 
View this message in context: http://www.nabble.com/java-native-code-error-tp24526351p24526419.html
Sent from the freebsd-java mailing list archive at Nabble.com.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?24526419.post>