Problem running the bookstore6 example from J2EE 1.5 Tutorial
Hi,
I got the bookstore6 example running on my windows XP box within glassfish. I am able access the URL http://localhost:8080/bookstore6. But whenever I click on the map or a link to pick a locale, I get an exception. Below is what I see in the server log file. Any help is appreciated.
[#|2006-08-15T15:15:59.147-0700|WARNING|sun-appserver-pe9.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=13;_ThreadName=httpWorkerThread-8080-0;_RequestID=fcb38d2f-9e92-4a7b-a439-0715d61ed98a;|executePhase(INVOKE_APPLICATION 5,com.sun.faces.context.FacesContextImpl@135b92e) threw exception
javax.faces.FacesException: javax.faces.FacesException: com.sun.enterprise.InjectionException: Exception attempting to inject Env-Prop: books@Field-Injectable Resource. Class name = com.sun.bookstore6.backing.AbstractBean Field [email protected]@@@ into class com.sun.bookstore6.backing.AbstractBean
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:105)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:246)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:619)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.processNonBlocked(DefaultProcessorTask.java:550)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:780)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:251)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:205)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
Caused by: javax.faces.FacesException: javax.faces.FacesException: com.sun.enterprise.InjectionException: Exception attempting to inject Env-Prop: books@Field-Injectable Resource. Class name = com.sun.bookstore6.backing.AbstractBean Field [email protected]@@@ into class com.sun.bookstore6.backing.AbstractBean
at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:521)
at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:82)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:62)
at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:68)
at com.sun.el.parser.AstValue.getTarget(AstValue.java:63)
at com.sun.el.parser.AstValue.invoke(AstValue.java:153)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:88)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:776)
at javax.faces.component.UICommand.broadcast(UICommand.java:368)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:471)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:783)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
... 28 more
Caused by: javax.faces.FacesException: com.sun.enterprise.InjectionException: Exception attempting to inject Env-Prop: books@Field-Injectable Resource. Class name = com.sun.bookstore6.backing.AbstractBean Field [email protected]@@@ into class com.sun.bookstore6.backing.AbstractBean
at com.sun.faces.config.ManagedBeanFactoryImpl.newInstance(ManagedBeanFactoryImpl.java:325)
at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:510)
... 42 more
Caused by: com.sun.enterprise.InjectionException: Exception attempting to inject Env-Prop: books@Field-Injectable Resource. Class name = com.sun.bookstore6.backing.AbstractBean Field [email protected]@@@ into class com.sun.bookstore6.backing.AbstractBean
at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:373)
at com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:193)
at com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:87)
at com.sun.faces.vendor.GlassFishInjectionProvider.inject(GlassFishInjectionProvider.java:65)
at com.sun.faces.config.ManagedBeanFactoryImpl.newInstance(ManagedBeanFactoryImpl.java:312)
... 43 more
Caused by: com.sun.enterprise.InjectionException: Illegal use of static field private static javax.persistence.EntityManager com.sun.bookstore6.backing.AbstractBean.em on class that only supports instance-based injection
at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:292)
... 47 more
|#]
[#|2006-08-15T15:15:59.163-0700|SEVERE|sun-appserver-pe9.1|javax.enterprise.system.container.web|_ThreadID=13;_ThreadName=httpWorkerThread-8080-0;_RequestID=fcb38d2f-9e92-4a7b-a439-0715d61ed98a;|StandardWrapperValve[FacesServlet]: PWC1406: Servlet.service() for servlet FacesServlet threw exception
com.sun.enterprise.InjectionException: Illegal use of static field private static javax.persistence.EntityManager com.sun.bookstore6.backing.AbstractBean.em on class that only supports instance-based injection
at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:292)
at com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:193)
at com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:87)
at com.sun.faces.vendor.GlassFishInjectionProvider.inject(GlassFishInjectionProvider.java:65)
at com.sun.faces.config.ManagedBeanFactoryImpl.newInstance(ManagedBeanFactoryImpl.java:312)
at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:510)
at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:82)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:62)
at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:68)
at com.sun.el.parser.AstValue.getTarget(AstValue.java:63)
at com.sun.el.parser.AstValue.invoke(AstValue.java:153)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:88)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:776)
at javax.faces.component.UICommand.broadcast(UICommand.java:368)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:471)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:783)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:246)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:619)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.processNonBlocked(DefaultProcessorTask.java:550)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:780)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:251)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:205)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
|#]
Message was edited by:
hongyan99
Message was edited by:
hongyan99
I got this same problem. But when I droped static from the original code I get another error. Please help.
[#|2006-12-13T14:37:41.806+0100|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=13;_ThreadName=httpWorkerThread-8080-1;_RequestID=66d98196-7004-4c04-8255-0391a8077d16;|StandardWrapperValve[FacesServlet]: Servlet.service() for servlet FacesServlet threw exception
javax.faces.FacesException: Could not get book details com.sun.bookstore.exception.BooksNotFoundException: Could not get books: Unable to retrieve EntityManagerFactory for unitName null
at com.sun.bookstore6.backing.BookstoreBean.getFeatured(BookstoreBean.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javax.el.BeanELResolver.getValue(BeanELResolver.java:273)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:62)
at com.sun.el.parser.AstValue.getValue(AstValue.java:117)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:100)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:279)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:207)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:848)
at com.sun.faces.renderkit.html_basic.CommandLinkRenderer.encodeChildren(CommandLinkRenderer.java:203)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:883)
at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:883)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:182)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:133)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
|#]
Message was edited by:
dujemalenica
Similar Messages
-
Could not run the bookstore1 example from the Java Web Services Tutorial
The bookstore1 servlets example from the Java Web Services Tutorial (issue Aug 1, 2002) was built and deployed successfully by using the deploytool (following the steps described on pages 498ff of the tutorial).
After deploying the application the Tomcat Web Application Manager shows the entry:
/bookstore1:stopped:0:D:\Programme\Java\tomcat\jakarta-tomcat-4.1.8\work\Standalone\localhost\manager\bookstore1.war
when entering the command: http://localhost:8080/manager/list.
After entering the command: http://localhost:8080/manager/start?path=/bookstore1, the (uncomplete) message appears:
FAIL - Application at context path /bookstore1 could not
It should be noted that I was able to build and deploy the application GSApp (chapter 3 of the tutorial) successfully.Did you set up the database as described in
http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebApp13.html#69868 -
Asant problem- building the hello1 example
I am trying to run the first example from the tutorial.I followed the instructions as described in the tutorial and configured the environment variables. However, when I am trying to build the hello1 example I get the following message:
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertionsWhat am I doing wrong?
Thank you,
ItayThanks for your quick reply.
My environment variables are:
J2EE_HOME = E:\Java\J2EE\AppServer
JAVA_HOME = %J2EE_HOME%\jdk
So as you can see I have no spaces in the directories names. -
Running examples from J2EE Tutorial
Has anyone been successfully running examples from
J2EE Tutorial on Creator?
I tried to import the JSP but Creator complains that it is
not an XHTML document. Clicking on the 'Convert to XHTML'
button or 'Preview...' button does not seem to do anything.
Openning the Source panel shows parsing problems on
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
Does anyone know how to run these in Creator correctly?
- weijyhYes,
It runs successfully....
I have download the examples from Sun,
unzipped It into my Projektfolder and open it in Creator, start it and works fine ...
No error messages .... -
Got NullPointerException we I try to run the attachment example of Axis1.4.
Hi,
Enviroment:
OS: Ubuntu 7.04.
Server: Apache Tomcat6.
IDE: Eclipse3.2 + MyEclipse5.01
Axis1.4.
I have been trying to run the attachment example which locate ../samples.attachments.
I composed program arguments as below according to README file which is included in this sample.
java EchoAttachment
-hlocalhost
-lhttp://localhost:8080/axis/services/urn:EchoAttachmentsService
-saxis/servlet/AxisServlet
-p8080 /home/hut/wanglinghua.java
But these exceptions were printed on the console:
- Exception:
java.lang.NullPointerException
at java.lang.String.concat(String.java:1827)
at com.sun.activation.registries.MailcapFile.parseLine(MailcapFile.java:235)
at com.sun.activation.registries.MailcapFile.parse(MailcapFile.java:197)
at com.sun.activation.registries.MailcapFile.createMailcapHash(MailcapFile.java:157)
at com.sun.activation.registries.MailcapFile.<init>(MailcapFile.java:40)
at javax.activation.MailcapCommandMap.loadFile(MailcapCommandMap.java:276)
at javax.activation.MailcapCommandMap.<init>(MailcapCommandMap.java:128)
at javax.activation.CommandMap.getDefaultCommandMap(CommandMap.java:44)
at javax.activation.DataHandler.getCommandMap(DataHandler.java:136)
at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:568)
at javax.activation.DataHandler.getInputStream(DataHandler.java:222)
at javax.activation.DataHandlerDataSource.getInputStream(DataHandler.java:658)
at org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:115)
at org.apache.axis.attachments.MimeUtils.getContentLength(MimeUtils.java:60)
at org.apache.axis.attachments.AttachmentsImpl.getContentLength(AttachmentsImpl.java:438)
at org.apache.axis.Message.getContentLength(Message.java:512)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:373)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:1870)
at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:90)
at example.attachments.EchoAttachment.echoUsingSAAJ(EchoAttachment.java:492)
at example.attachments.EchoAttachment.main(EchoAttachment.java:323)
- Exception:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.NullPointerException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
at java.lang.String.concat(String.java:1827)
at com.sun.activation.registries.MailcapFile.parseLine(MailcapFile.java:235)
at com.sun.activation.registries.MailcapFile.parse(MailcapFile.java:197)
at com.sun.activation.registries.MailcapFile.createMailcapHash(MailcapFile.java:157)
at com.sun.activation.registries.MailcapFile.<init>(MailcapFile.java:40)
at javax.activation.MailcapCommandMap.loadFile(MailcapCommandMap.java:276)
at javax.activation.MailcapCommandMap.<init>(MailcapCommandMap.java:128)
at javax.activation.CommandMap.getDefaultCommandMap(CommandMap.java:44)
at javax.activation.DataHandler.getCommandMap(DataHandler.java:136)
at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:568)
at javax.activation.DataHandler.getContent(DataHandler.java:501)
at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1055)
at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1923)
at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1904)
at org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(MimeUtils.java:201)
at org.apache.axis.attachments.AttachmentsImpl.writeContentToStream(AttachmentsImpl.java:493)
at org.apache.axis.Message.writeTo(Message.java:545)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:511)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:1870)
at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:90)
at example.attachments.EchoAttachment.echoUsingSAAJ(EchoAttachment.java:492)
at example.attachments.EchoAttachment.main(EchoAttachment.java:323)
{http://xml.apache.org/axis/}hostname:hutwang
java.lang.NullPointerException
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.attachments.AttachmentsImpl.writeContentToStream(AttachmentsImpl.java:512)
at org.apache.axis.Message.writeTo(Message.java:545)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:511)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:1870)
at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:90)
at example.attachments.EchoAttachment.echoUsingSAAJ(EchoAttachment.java:492)
at example.attachments.EchoAttachment.main(EchoAttachment.java:323)
Caused by: java.lang.NullPointerException
at java.lang.String.concat(String.java:1827)
at com.sun.activation.registries.MailcapFile.parseLine(MailcapFile.java:235)
at com.sun.activation.registries.MailcapFile.parse(MailcapFile.java:197)
at com.sun.activation.registries.MailcapFile.createMailcapHash(MailcapFile.java:157)
at com.sun.activation.registries.MailcapFile.<init>(MailcapFile.java:40)
at javax.activation.MailcapCommandMap.loadFile(MailcapCommandMap.java:276)
at javax.activation.MailcapCommandMap.<init>(MailcapCommandMap.java:128)
at javax.activation.CommandMap.getDefaultCommandMap(CommandMap.java:44)
at javax.activation.DataHandler.getCommandMap(DataHandler.java:136)
at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:568)
at javax.activation.DataHandler.getContent(DataHandler.java:501)
at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1055)
at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1923)
at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1904)
at org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(MimeUtils.java:201)
at org.apache.axis.attachments.AttachmentsImpl.writeContentToStream(AttachmentsImpl.java:493)
... 13 more
Received problem response from serverReceived problem response from server
AxisFault
faultCode: {http://xml.apache.org/axis/}
faultSubcode:
faultString: Received problem response from server
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:Received problem response from server
at example.attachments.EchoAttachment.echoUsingSAAJ(EchoAttachment.java:497)
at example.attachments.EchoAttachment.main(EchoAttachment.java:323)
{http://xml.apache.org/axis/}hostname:hutwang
Received problem response from server
at example.attachments.EchoAttachment.echoUsingSAAJ(EchoAttachment.java:497)
at example.attachments.EchoAttachment.main(EchoAttachment.java:323)
Here, the required jar - activation.jar and mail.jar have been placed into eclipse build path.
Could anyone shed some light on this?
Thanks,
-Hut
Edited by: HutWang on Sep 24, 2007 2:25 AM
Edited by: HutWang on Sep 24, 2007 2:27 AM
Edited by: HutWang on Sep 24, 2007 2:29 AMThis is a dedicated forum for Sun WebServer. You may post your question in Tomcat. If you use our WebServer7 for your deployment, you may bring the case here.
-
Help Running The SpeakHere Example
Hi,
I'm a newbie to iphone development coming from world of windows, so apologies in advance if it's a dumb question. I'm trying to run the SpeakHere example but so far unable to do so. The program compiles and launches, but freezes when I click 'record'. I tried to debug, and it seems to crash at:
recorder->StartRecord(CFSTR("recordedFile.caf"));
At least it doesn't go past this line (there's no error). So far I checked that audio input works in another app (garage band), gave the speakhere's sandbox full permissions, made sure I have the latest version of the os and sdk, and now not too sure what to do. Any help greatly appriciated.Problem Solved:
After discovering where to look for errors I found that the error was:
Error loading /Library/QuickTime/DivX Decoder.component...
The solution was to remove the decoder and encoder from the /Library/QuickTime folder. -
I would appreciate if someone can explanation my long list of questions regarding
the deployment of EJB in cluster environment.
I can't run the cluster EJB example( Teller/Account) in a cluster(contains two
server2). I always get
java.rmi.RemoteException: Unable to
resolve examples.cluster.ejb.Account
Home. Resolved: 'examples.cluster.ejb'
Unresolved:'AccountHome'
Following is my setup:
Machine A: exampleServer:7001 (admin server)
Machine A: testServer1:8001 (Managed server)
Machine B: testServer1_B:8001(Managed server)
MyCluster : testServer1, testServer1_B
Test Client:
java examples.cluster.ejb.Client "t3://Machine A:8001"
======================
Q1: Should I use 8001 or 7001 as cluster port number?
Q2: What will happen when we click "apply" after select/unselect the server in
the "target", "server" tab?
Q3: And what will happen if we click deploy/undeploy check box in "configuration"
tab of EJB item?
Q4: I check the JNDI tree from all above three servers can't find out JNDI tree
doesn't reflect the change I did in Q2 or Q3.
Q5: What is the right way to deploy EJB components, should we select both cluster
and server in the "target" tab?
Q6: I got this message from one of the server when I try to undeploy/deploy ejb
object.
"examples.cluster.ejb.TellerHome_EO in the jndi tree is non clusterable
and you have tried to bind more
once? How could I make it clusterable?
Q7: Undeploy and EJB doesn't work and sometime I still get " JNDI name in use"
from the server.
How could I fix it.
Thanks
First I can tell you that the ports have to be the same, be on the the
same network , i.e. Telnet into the other m/c. Next which you probably
have done is the properties files. Per-cluster ...
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 6/7/01, 6:59:48 AM, "James Hsu" <[email protected]> wrote regarding
Can't run the cluster example:
> I would appreciate if someone can explanation my long list of
questions regarding
> the deployment of EJB in cluster environment.
> I can't run the cluster EJB example( Teller/Account) in a
cluster(contains two
> server2). I always get
> java.rmi.RemoteException: Unable to
> resolve examples.cluster.ejb.Account
> Home. Resolved: 'examples.cluster.ejb'
> Unresolved:'AccountHome'
> Following is my setup:
> Machine A: exampleServer:7001 (admin server)
> Machine A: testServer1:8001 (Managed server)
> Machine B: testServer1_B:8001(Managed server)
> MyCluster : testServer1, testServer1_B
> Test Client:
> java examples.cluster.ejb.Client "t3://Machine A:8001"
> ======================
> Q1: Should I use 8001 or 7001 as cluster port number?
> Q2: What will happen when we click "apply" after select/unselect the
server in
> the "target", "server" tab?
> Q3: And what will happen if we click deploy/undeploy check box in
"configuration"
> tab of EJB item?
> Q4: I check the JNDI tree from all above three servers can't find out
JNDI tree
> doesn't reflect the change I did in Q2 or Q3.
> Q5: What is the right way to deploy EJB components, should we select
both cluster
> and server in the "target" tab?
> Q6: I got this message from one of the server when I try to
undeploy/deploy ejb
> object.
> "examples.cluster.ejb.TellerHome_EO in the jndi tree is non
clusterable
> and you have tried to bind more
> once? How could I make it clusterable?
> Q7: Undeploy and EJB doesn't work and sometime I still get " JNDI
name in use"
> from the server.
> How could I fix it.
> Thanks
[att1.html]
-
Am getting the following error while running the servlet example
Hi,
am getting the following error while running the servlet example
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
edu.dao.StudentDao.insertStudent(StudentDao.java:18)
edu.servlet.StudentServlet.doGet(StudentServlet.java:25)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
Thanks
//sreekanthHi,
the following code i have written in StudentDao
package edu.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import org.apache.commons.dbutils.DbUtils;
import edu.model.Student;
import edu.util.DBUtil;
public class StudentDao {
public void insertStudent(Student student) {
String stuQuery = "INSERT INTO STUDENT VALUES(?,?)";
Connection connection = DBUtil.getConnection();
PreparedStatement preparedStatement = null;
try {
preparedStatement = connection.prepareStatement(stuQuery);
preparedStatement.setString(1,student.getStudentNo());
preparedStatement.setString(2, student.getStudentName());
preparedStatement.executeUpdate();
} catch(SQLException e){
System.out.println("..Sql exception......");
}finally {
DbUtils.closeQuietly(connection,preparedStatement,null);
} -
Getting windows error during running the sql scripts from form 6i
I made a little form application. The purpose of this application is to generate explain plan for a particular SQL. Some sql scripts run internally in order to populate the result on forms screen after pressing the forms button but I am getting windows error during running the sql scripts from form 6i.
I am using forms 6i with patch 17 with Oracle 10G database on windows 2000 professional on same computer.
This application runs fine with 8i.
Please inform me where the problem is and how to overcome it.
Zafri.I am using Text_IO in my form's when button press trigger , inorder to create the
text file, then in the same when button press triger
I am calling RMAN via host command in order to run the script which was created by text_IO.
Below you find some of the code. I will appreciate if you solve the problem.
when button press trigger:
Declare
in_file3 Text_IO.File_Type;
linebuf3 VARCHAR2(1800);
output11 varchar2(1000);
BEGIN
output11:='C:\EXPLAIN_PLUS\misc\rm_file.bat ';
Host(output11,no_screen);
:sql.execution_plan:= 'Working........................';
synchronize;
in_file3 := Text_IO.Fopen('c:\explain_plus\misc\create_table.txt', 'w');
Text_IO.Put_Line(in_file3, linebuf3);
Text_IO.put_line(in_file3,' ');
Text_IO.put_line(in_file3,' run { sql "create table PLAN_TABLE (statement_id,...object_name varchar2(30),object_instance numeric,object_type varchar2(30),optimizer varchar2(255),search_columns number,id .....partition_start varchar2(255),partition_stop varchar2(255),partition_id numeric,other long,distribution varchar2(30)) "; } ');
Text_IO.put_line(in_file3,' ');
Text_IO.put_line(in_file3,' ');
Text_IO.FCLOSE(in_file3)
Declare
un VARCHAR2(80);
pw VARCHAR2(80);
cn VARCHAR2(80);
output VARCHAR2(1000);
output2 VARCHAR2(1000);
dummy varchar2(40);
in_file Text_IO.File_Type;
linebuf VARCHAR2(1800);
BEGIN
Get_Connect_Info(un,pw,cn);
/* for Plan_table Begg. Second INNER BLOCK */
declare
dummy2 varchar2(40);
begin
select table_name into dummy2 from all_tables where table_name='PLAN_TABLE';
if dummy2 = 'PLAN_TABLE' then
output2:='rman target/ nocatalog @C:\EXPLAIN_PLUS\MISC\TRUNC2.txt ' ;
Host(output2,no_screen);
end if;
exception
when no_data_found then
output2:='rman target/ nocatalog @C:\EXPLAIN_PLUS\misc\create_table.txt ';
Host(output2,no_screen);
end; -- -
Running the Java Code from Batch File
Hi All,
I have run a code sucessfully in Eclipse and it uses Logging API from Java
When i try running the same program from batch file it throws error
java.io.IOException: Couldn't get lock for log\Properties_Log_16Sep2009_150229
at java.util.logging.FileHandler.openFiles(Unknown Source)
at java.util.logging.FileHandler.<init>(Unknown Source)
at com.adidas.SPM.LogMessage.<init>(LogMessage.java:26)
at com.adidas.SPM.MainApplication.initialize(MainApplication.java:51)
at com.adidas.SPM.MainApplication.main(MainApplication.java:102)
I am working on a windows systems the folder log has all the permission i have provided with all
Not sure why the code runs like this
The batch file is like below
set CURR_DIR=%CD%
cd %CURR_DIR%\bin
%CURR_DIR%\jre6\bin\java -classpath .;%CURR_DIR%\lib\FirstProject.jar com.test.MainApplication
echo %ERRORLEVEL% The Error Level
echo SUCCESS
GOTO END
:END
pause
Rgds
AdityaVikash.SunJava wrote:
According to me the problem is that there are many instances trying to access the same property file. Nothing wrong with that since they only are reading it.
The best way to do is that create a schedular in Windows that runs at some predefined interval (say 1 minute).Huh?
>
What will happen is if your program runs for more than a minute even then the new process will not start until old process is autaomatically killed. Please do not check this option if you want the program to exit normally.
If the Task is still running stop at this time
O_o -
Help - running the Persistence Example
Hi All,
I am running on NW2004s SPS10
Please somebody has a Persistence example?? I can't run the SAP examples on my PDA (Dell AXIM X51v +Windows Mobile 2005) i found this information in the SAP Note 717510
<i>MDK: Links to MI client home page <b>are not working</b> in some example programs
Application is working fine but for the ME Home link for 3 MDK applications: MDK_persistence_query_sortJSP, MDK_persistence_queryJSP and MDK_persistence_simpleJSP.
( Changed at 30.04.2007 )</i>
I would like to run the MDK_persistence_simpleJSP
There is another Persistence example? Can somebody give me a link to download it. I want to learn how to use the persistence api, but without any running example is very difficult to test the code.
Best Regards,
Erick IlarrazaHi all! Thank a lot for your replies.
I run the MDK_PERSISTENCE_QUERYJSP in the Windows XP SAP Mobile Client, it runs Perfect!
But when i try to run it on my PDA it give me this error:
Error: 500
Location: /MDK_PERSISTENCE_QUERYJSP/jsp/menu.jsp Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPerror: Invalid class file format: /MI/webapps/MDK_PERSISTENCE_QUERYJSP/WEB-INF/lib/MDK_persistence_queryJSP.jar(persistenceexample2/PersistenceExample.class), wrong version: 48, expected 45
/MI/work/localhost_8080%2FMDK_PERSISTENCE_QUERYJSP/_0002fjsp_0002fmenu_0002ejspmenu_jsp_0.java:15: Class persistenceexample2.PersistenceExample not found in import.
import persistenceexample2.PersistenceExample;
^
2 errors
at org.apache.jasper.compiler.Compiler.compile()
at org.apache.jasper.servlet.JspServlet.doLoadJSP()
at org.apache.jasper.servlet.JasperLoader12.loadJSP()
at org.apache.jasper.servlet.JspServlet.loadJSP()
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary()
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service()
at org.apache.jasper.servlet.JspServlet.serviceJspFile()
at org.apache.jasper.servlet.JspServlet.service()
at javax.servlet.http.HttpServlet.service()
at org.apache.tomcat.core.ServletWrapper.doService()
at org.apache.tomcat.core.Handler.service()
at org.apache.tomcat.core.ServletWrapper.service()
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward()
at org.apache.tomcat.facade.RequestDispatcherImpl.forward()
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.dispatchRequest()
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGetNotThreadSafe()
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet()
at javax.servlet.http.HttpServlet.service()
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service()
at javax.servlet.http.HttpServlet.service()
at org.apache.tomcat.core.ServletWrapper.doService()
at org.apache.tomcat.core.Handler.service()
at org.apache.tomcat.core.ServletWrapper.service()
at org.apache.tomcat.core.ContextManager.internalService()
at org.apache.tomcat.core.ContextManager.service()
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection()
at org.apache.tomcat.service.TcpWorkerThread.runIt()
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run()
at java.lang.Thread.run()
But this has no sense!! since both Windows XP MI Client and PDA MI CLient are at the same version. So It run in my Desktop but not in my PDA.
I saw the menu.jsp file
They used the PersistenceExample class in two places:
At the beginning of the JSP: <b><%@ page import="persistenceexample2.PersistenceExample" %></b>
And here:
String value = dataBean.getTableContent(i, j);
if (i > 1) {
<b>value = PersistenceExample.encodeForHtml(value);</b>
if (value.trim().length() < 1){
value = " ";
From a point of view of Java, everything appear to be "OK"
The other error is about a "version" should i configured the application to Version 45 in the nwa when i deploy the application?
Best Regards,
Erick Ilarraza -
Running the heapTracker example
Hi there
I am trying to run the heapTracker example that is in the demo/jvmti directory, and I am having problems with it. When I try to run it with what it says in the readme file (java -Xbootclasspath/a:heapTracker.jar), I get the following error message:
ERROR: JNI: Cannot find heapTracker with FindClass
It seems like a small problem, but it is making me go crazy! Has anyone else ever encountered this before?
Cheers
SajidHi
Yeah, I managed to get it to work� I move the jar file into the same directory as the dll�s�seems a bit strange, but it worked.
A problem I am going to try and make some changes to the heaptracker, but I can not get it to compile, the errors I have listed below. It looks like I am missing a library or something, but I am not sure which. Has anyone else ever encountered a problem like this?
error LNK2019: unresolved external symbol fatalerror referenced in function _checkJvmtiError heapTracker.obj
error LNK2019: unresolved external symbol javacrw_demo@76 referenced in function _cbClassFileLoadHook@40 heapTracker.obj
error LNK2019: unresolved external symbol javacrw_demo_classname@12 referenced in function _cbClassFileLoadHook@40 heapTracker.obj
error LNK2019: unresolved external symbol stdoutmessage referenced in function parseagent_options heapTracker.obj
error LNK2019: unresolved external symbol gettoken referenced in function parseagent_options heapTracker.obj
Any help would be very much appreciated.
Thank You
Sajid -
Is there any way to run the datasocket server from the vi
I want to run the datasocket server from the LabVIEW program and is there any command to do this. Because, I built one application vi and this vi is link with another vi using datasocket.So every time before i run the program, i need to run the data socket server. So if i forget to run the datasocket server, I need to restart my vi. So what I want to do is I want to run the data socket server, when i open this VI. So that I do not forget. Thanks.
Saw.In the examples\comm folder there is a file called datasktxwin.llb In that library open e.g. DS 3D Graph Writer...launch it and you will see that it launches the data socket server. Take a look at the code and you'll find a VI that launches the server; "Launch DS server if Local URL.vi".
If you know the path to the server executable you can always launch it using the System Exec.vi from the communication palette too. The typical command line would then be:
C:\Program Files\National Instruments\DataSocket\cwdss.exe
MTO -
I have Remote desktop connection for my mac running osx 10.6.8 and I have a windows xp laptop, I want to have my mac be able to run the windows xp from my pc, how do I do it?
Hello Fiona,
Congratulations on your new iPhone! You can sync information to your iPhone from your MacBook Pro using the Info tab in iTunes when your iPhone is connected. Use the steps in the following article:
iOS: Syncing your data with iTunes
http://support.apple.com/kb/ht1386
Thank you for using Apple Support Communities.
Best,
Sheila M. -
How to run the 9I report from the forms menue 9i
how to run the 9I report from the forms menue 9i.
Shehzad LatifHi,
1. create a Reports Object node in Forms. If you use teh same object node name then you can write generic code that works in all Forms
2. Get the whitepaper about Forms/reports integrtion
http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
Frank
Maybe you are looking for
-
GL data Import into Hyperion Essbase using Adapters in FDM
Hi All, I am trying to import GL data using the below adapters, I have an Essbase application created to accept the data. I previously imported a text file into Essbase and that worked perfectly. Source Adapter :ES9x-G4-C Target Adapter :EBS-FIN-B FD
-
External Display Problem w/10.6.5
Hi, all. I'm having an odd external display issue that I can't figure out how to solve. I teach a class using my MBP, and as such have to plug it into the (VGA) projector in the classroom. Up until last week or so this worked perfectly. Now, when I p
-
Converting Planned Order to Purchase Requisition
Is their configuration that can automatically convert planned order to purchase requisition based on information like planned delivery time, etc.? Or, does the conversion of planned order have to be done via MD15 either manually or by batch job?
-
Hi Gurus I created one layout in smartforms, used templates n logo i m getting my formate, but want to print data. i having diff. tables for data print, can any one give me exmp. oe explain me how i can do coding for that. thanks......
-
Server UCS B440 M2 problems Error
I have the following errors in the discover the server UCS B440 M2 in the chasis UCS 5180 the firmware is 2.1(1f) FSM FSM Status: In Progress Description: Current FSM Name: Discover Completed at: Progress Status: 9% Remote Invocation Result: End Poin