4. 参加聚会(我们见过么? Have we met?)

原文链接:http://talk.oralpractice.com/article_11903.html

- Have we met?

- I don't think so.

- I work in marketing. I'm a regional marketing manager for an IT company.

Normally, I work out of Seoul, but i'm here on business. My friend Mike over there, she lives here and 

she invited me to this party. How about you? 

- I live here. I was invited by Tony- she's the tall guy over there. 

He looks a bit drunk, actually...

我们见过吗?

我想没有。

我是做营销的。我是一家IT公司的地区营销经理。我通常在北京外工作,来这里是为了公事。

我朋友Mike在那边,她住在这里,所以就邀我来参加这场宴会。你呢?你怎么会来这里?

我住在这里,是Tony邀请我来的,就是那边那个高个子。他看起来真的有点醉了…

展开阅读全文

JBoss5.0GA + hsql have exception ,when we shut down server

03-10

13:46:13,375 ERROR [ExceptionUtil] ConsumerEndpoint[rg-rb3p54sf-1-94ym54sf-53xoza-8mo4c5] close [0h-7uss54sf-1-94ym54sf-53xoza-8mo4c5]rnjava.lang.NullPointerExceptionrn at org.jboss.jms.server.endpoint.ServerConsumerEndpoint.localClose(ServerConsumerEndpoint.java:542)rn at org.jboss.jms.server.endpoint.ServerConsumerEndpoint.close(ServerConsumerEndpoint.java:388)rn at org.jboss.jms.server.endpoint.advised.ConsumerAdvised.org$jboss$jms$server$endpoint$advised$ConsumerAdvised$close$aop(ConsumerAdvised.java:59)rn at org.jboss.jms.server.endpoint.advised.ConsumerAdvised$close_N4742752445160157748.invokeTarget(ConsumerAdvised$close_N4742752445160157748.java)rn at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)rn at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)rn at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)rn at org.jboss.jms.server.endpoint.advised.ConsumerAdvised.close(ConsumerAdvised.java)rn at org.jboss.jms.wireformat.CloseRequest.serverInvoke(CloseRequest.java:66)rn at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)rn at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:908)rn at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)rn at org.jboss.remoting.Client.invoke(Client.java:1708)rn at org.jboss.remoting.Client.invoke(Client.java:612)rn at org.jboss.remoting.Client.invoke(Client.java:600)rn at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)rn at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)rn at org.jboss.jms.client.delegate.ClientConsumerDelegate.org$jboss$jms$client$delegate$ClientConsumerDelegate$close$aop(ClientConsumerDelegate.java:122)rn at org.jboss.jms.client.delegate.ClientConsumerDelegate$close_N4742752445160157748.invokeTarget(ClientConsumerDelegate$close_N4742752445160157748.java)rn at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)rn at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)rn at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)rn at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)rn at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)rn at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)rn at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)rn at org.jboss.jms.client.delegate.ClientConsumerDelegate.close(ClientConsumerDelegate.java)rn at org.jboss.jms.client.container.ClosedInterceptor.maintainRelatives(ClosedInterceptor.java:306)rn at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:165)rn at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)rn at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)rn at org.jboss.jms.client.delegate.ClientSessionDelegate.closing(ClientSessionDelegate.java)rn at org.jboss.jms.client.JBossConnectionConsumer.doClose(JBossConnectionConsumer.java:337)rnrnrn................rnif you want to view detail error info. please view attachement(start.log)rnThanks for your help. 论坛

java.lang.NoSuchMethodError: org.apache.commons.pool.impl.GenericObjectPool: met

01-21

2010-1-21 11:03:21 org.apache.catalina.core.AprLifecycleListener initrn信息: Loaded APR based Apache Tomcat Native library 1.1.16.rn2010-1-21 11:03:21 org.apache.catalina.core.AprLifecycleListener initrn信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].rn2010-1-21 11:03:22 org.apache.coyote.http11.Http11AprProtocol initrn信息: Initializing Coyote HTTP/1.1 on http-6000rn2010-1-21 11:03:22 org.apache.coyote.ajp.AjpAprProtocol initrn信息: Initializing Coyote AJP/1.3 on ajp-8009rn2010-1-21 11:03:22 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 1507 msrn2010-1-21 11:03:22 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2010-1-21 11:03:22 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.20rn2010-1-21 11:03:24 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextInitialized()rn2010-1-21 11:03:24 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextInitialized()rn2010-1-21 11:03:24 org.apache.catalina.core.StandardContext addApplicationListenerrn信息: The listener "com.sun.faces.util.ReflectionUtils$ReflectionUtilsListener" is already configured for this context. The duplicate definition has been ignored.rn2010-1-21 11:03:24 org.apache.catalina.core.StandardContext addApplicationListenerrn信息: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.rn2010-1-21 11:03:24 org.apache.catalina.core.StandardContext addApplicationListenerrn信息: The listener "com.sun.faces.application.WebappLifecycleListener" is already configured for this context. The duplicate definition has been ignored.rnlog4j:WARN No appenders could be found for logger (org.springframework.core.CollectionFactory).rnlog4j:WARN Please initialize the log4j system properly.rn2010-1-21 11:03:25 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrn2010-1-21 11:03:28 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\Test\WEB-INF\classes\com\scmofit\ssh\configs\applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.apache.commons.pool.impl.GenericObjectPool: method ()V not foundrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:583)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: java.lang.NoSuchMethodError: org.apache.commons.pool.impl.GenericObjectPool: method ()V not foundrn at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:795)rn at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)rn at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:82)rn at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)rn at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)rn ... 39 morern2010-1-21 11:03:28 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2010-1-21 11:03:28 org.apache.catalina.core.StandardContext startrn严重: Context [/Test] startup failed due to previous errorsrn2010-1-21 11:03:28 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrn2010-1-21 11:03:28 org.apache.coyote.http11.Http11AprProtocol startrn信息: Starting Coyote HTTP/1.1 on http-6000rn2010-1-21 11:03:28 org.apache.coyote.ajp.AjpAprProtocol startrn信息: Starting Coyote AJP/1.3 on ajp-8009rn2010-1-21 11:03:28 org.apache.catalina.startup.Catalina startrn信息: Server startup in 6483 msrnrn我的librnrn[img=http://hi.csdn.net/attachment/201101/21/1148047_1295579454S4eK.jpg][/img]rnrn我的applicationContext.xmlrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn org.hibernate.dialect.Oracle9Dialectrn rn rn rn rn rn com/scm/ssh/entity/Users.hbm.xmlrn 论坛

Are We There Yet?

03-15

Laurie's little brother Joey has been playing Find the Cookie with her. However, after the 32,767th time, Laurie is tired of it. She wants to write a program to keep the boy occupied. Write a program to simulate a game of Find the Cookie. The game takes place in a long narrow hall, so Joey can only move forward and backward, not right or left. At the beginning of each game, a cookie is placed in the hall (not at the center of the hall) and Joey starts at the center of the hall. Joey attempts to find the cookie. He does this by moving to another point in the hall, whereupon the computer tells him whether he is "warmer" (he has moved closer to the cookie than his last position), "colder" (he has moved farther away from the cookie than his last position), "same" (he has not moved closer or farther away from the cookie), or he has reached the cookie. Joey continues until he exactly reaches the location of the cookie, which always happens within 20 moves. nnnInputnnEach input line represents a new game. Each input line contains at least two and at most 21 integers separated by whitespace. The integers represent locations along the hall, expressed in units of feet. Joey begins each game at location 0 feet. The first integer on an input line is the location of the cookie. This integer is guaranteed to be different from 0. The remaining integers represent locations Joey moves to, in order. Joey will never move more than 5280 feet from his original location. Joey will always reach the cookie in each game, and this will be the last move on the input line. Your program should stop processing input lines when the cookie is located at 5280 feet (a mile from the center of the hall is way too far for Joey to go for only one cookie).nnnOutputnnFor each location that Joey moves to, determine whether he is warmer, colder, the same, or has reached the cookie. Have a blank line between the output for different input lines. Follow the format in the Sample Output.nnnSample Inputnn5 10 11 12 3 4 5n3 10 10 7 3n12 5 -3 1 4 6 7 8 9 12n5280 10nnnSample OutputnnMoving from 0 to 10: same.nMoving from 10 to 11: colder.nMoving from 11 to 12: colder.nMoving from 12 to 3: warmer.nMoving from 3 to 4: warmer.nMoving from 4 to 5: found it!nnMoving from 0 to 10: colder.nMoving from 10 to 10: same.nMoving from 10 to 7: warmer.nMoving from 7 to 3: found it!nnMoving from 0 to 5: warmer.nMoving from 5 to -3: colder.nMoving from -3 to 1: warmer.nMoving from 1 to 4: warmer.nMoving from 4 to 6: warmer.nMoving from 6 to 7: warmer.nMoving from 7 to 8: warmer.nMoving from 8 to 9: warmer.nMoving from 9 to 12: found it! 问答

没有更多推荐了,返回首页