Problems with JCOM examples
Sorry for my poor English:-)
I am a beginner in learning Weblogic Platform(Weblogic Platform7.0 with sp2),and
now I'm studying the JCOM examples.
Everything goes on well in the examples of "zeroclient" and "latebound",but there's
a problem in "earlybound".
I have succeeded in registering the type library and setting JVM (cmdline:"regtlb
containerManagedTLB.tlb examplesServer"),and I can find "containerManagedTLB"
in References of Visual Basic.
In a word,I think all preparation work is completed.
But there is a fault when it runs at the line "Set mobjHome = objNarrow.narrow(objTemp,
"examples.ejb20.basic.containerManaged.AccountHome")".
=============Let's look at the source code:===================
Dim mobjHome As containerManagedTLB.ExamplesEjb20BasicContainerManagedAccountHome
Dim objTemp As Object
Dim objNarrow As New containerManagedTLB.JCOMHelper
Set objTemp =
CreateObject("examplesServer:jndi:ejb20-containerManaged-AccountHome") -->code
run correctly here
Set mobjHome =
objNarrow.narrow(objTemp, "examples.ejb20.basic.containerManaged.AccountHome")-->this
line is wrong
===============================================================
I don't know where is the problem,and it makes me very painful!
I need your help,thanks a lot!
Sorry for my poor English:-)
I am a beginner in learning Weblogic Platform(Weblogic Platform7.0 with sp2),and
now I'm studying the JCOM examples.
Everything goes on well in the examples of "zeroclient" and "latebound",but there's
a problem in "earlybound".
I have succeeded in registering the type library and setting JVM (cmdline:"regtlb
containerManagedTLB.tlb examplesServer"),and I can find "containerManagedTLB"
in References of Visual Basic.
In a word,I think all preparation work is completed.
But there is a fault when it runs at the line "Set mobjHome = objNarrow.narrow(objTemp,
"examples.ejb20.basic.containerManaged.AccountHome")".
=============Let's look at the source code:===================
Dim mobjHome As containerManagedTLB.ExamplesEjb20BasicContainerManagedAccountHome
Dim objTemp As Object
Dim objNarrow As New containerManagedTLB.JCOMHelper
Set objTemp =
CreateObject("examplesServer:jndi:ejb20-containerManaged-AccountHome") -->code
run correctly here
Set mobjHome =
objNarrow.narrow(objTemp, "examples.ejb20.basic.containerManaged.AccountHome")-->this
line is wrong
===============================================================
I don't know where is the problem,and it makes me very painful!
I need your help,thanks a lot!
Similar Messages
-
Problems with the examples in NWDS
Hi All,
Running the Welcome example project in NWDS i have the included error.
I have problems with other examples too.
I did all the step by step tutorials.
I have NWDS 2.0.3
J2EE 6.40 SP15
EP 2004
I am new in NWDS and i have not still successed to run any application.
What is wrong with my systems?
I did all the configurations start J2EE /sdm etc.
Do i have to install other versions? I read that maybe i have to install the same SP 15.
Please if anybody can help me .
Thanks,
Ari
Error Summary
While processing the current request, an exception occured which could not be handled by the application or the framework.
If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
Root Cause
The initial exception that caused the request to fail, was:
com.sap.tc.webdynpro.services.sal.deployment.api.WDClassLoaderException: Classloader of 'local/Welcome' is null, even though application is started.
at com.sap.tc.webdynpro.serverimpl.wdc.deployment.DeployableObject.getClassLoader(DeployableObject.java:81)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:588)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
... 18 more
AriThank you for your help,
I have NWDS 2.0.3 and Web AS 6.40 SP15 and EP 04.
How can i be sure if are compatible? Maybe i have to install NWDS SP15?
I did "Rebuild" and then "Deploy new archive and run" Deploying i was asking for the sdm password , then the application opened in a new browser and we can see this message below.
The Deploy Output View is empty. There is no eny successful deploy message.
I appreciate your help.
Thanks,
Ari
500 Internal Server Error
Web Dynpro Container/SAP J2EE Engine/6.40
Failed to process request. Please contact your system administrator.
[Details...]
Error Summary
While processing the current request, an exception occured which could not be handled by the application or the framework.
If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
Root Cause
The initial exception that caused the request to fail, was:
java.lang.InstantiationError: com.sap.tc.webdynpro.progmodel.context.NodeInfo
at com.sap.examples.welcome.wdp.InternalWelcomeComponent.<init>(InternalWelcomeComponent.java:41)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
... 27 more
See full exception chain for details.
Correction Hints
The currently executed application, or one of the components it depends on, has been compiled against class file versions that are different from the ones that are available at runtime.
If the exception message indicates, that the modified class is part of the Web Dynpro Runtime (package com.sap.tc.webdynpro.*) then the running Web Dynpro Runtime is of a version that is not compatible with the Web Dynpro Designtime (Developer Studio or Component Build Server) which has been used to build + compile the application.
Note: the above hints are only a guess. They are automatically derived from the exception that occurred and therefore can't be guaranteed to address the original problem in all cases.
System Environment
Client
Web Dynpro Client Type HTML Client
User agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Version
DOM version
Client Type msie6
Client Type Profile ie6
ActiveX enabled
Cookies enabled
Frames enabled
Java Applets enabled
JavaScript enabled
Tables enabled
VB Script enabled
Server
Web Dynpro Runtime Vendor: SAP, Build ID: 6.4015.00.0000.20051123162612.0000 (release=630_VAL_REL, buildtime=2005-12-14:21:51:22[UTC], changelist=377533, host=PWDFM026)
J2EE Engine No information available
Java VM Java HotSpot(TM) Server VM, version:1.4.2_07-b05, vendor: Sun Microsystems Inc.
Operating system Windows 2003, version: 5.2, architecture: x86
Other
Session Locale en_US
Time of Failure Fri Jan 26 14:29:31 EET 2007 (Java Time: 1169814571353)
Web Dynpro Code Generation Infos
local/Welcome
No information available
sap.com/tcwddispwda
No information available
sap.com/tcwdcorecomp
No information available
Detailed Error Information
Detailed Exception Chain
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for component com.sap.examples.welcome.WelcomeComponent. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)
at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:110)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:38)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doInit(ClientComponent.java:776)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:330)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:370)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:608)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:74)
... 26 more
Caused by: java.lang.InstantiationError: com.sap.tc.webdynpro.progmodel.context.NodeInfo
at com.sap.examples.welcome.wdp.InternalWelcomeComponent.<init>(InternalWelcomeComponent.java:41)
... 31 more -
Problem with aurioTouch example program
Is anyone else having problems getting the aurioTouch example program to work in the emulator? I seem to have problems with any and all audio -related functions? What could be the problems?
Cedric,
This problem was fixed in the LabVIEW 6.0.2 update. You can download this update (along with the updated runtime engine) from our website.
Good luck with your application, and have a pleasant day.
Sincerely,
Darren N.
NI Applications Engineer
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman -
Reading TDMS files in Matlab - problems with the example code
I want to use the TDMS files to store data and do offline analysis in Matlab, version 2009b (either on Mac OS10.6 or Windows XP).
To test the data import in Matlab I tried the example from http://digital.ni.com/public.nsf/allkb/0EEADA99DC7D00A4862572E30037C3A2 , but without success.
I tried either with and without the path definition (as explained on the page I referred to before) at the start, and got back the following errors:
with:
??? Error using ==> loadlibrary>deltempfiles at 559
nilibddc_m.i.
Error in ==> loadlibrary at 452
deltempfiles(delfiles);
Error in ==> Read_TDMData at 7loadlibrary([examplePath '\nilibddc'], hfile);
without:
??? Error using ==> loadlibrary>deltempfiles at 559
nilibddc_m.i.
Error in ==> loadlibrary at 452
deltempfiles(delfiles);
Error in ==> Read_TDMData at 36loadlibrary(NI_TDM_DLL_Path,NI_TDM_H_Path);
I found a few messages on the issue, dating from 2006 and 2007, that didn't lead to a satisfying solution and was hoping that, by now, there would be a solution to my problem.
Thanks a lot
Remco
Solved!
Go to Solution.Hi Musk,
Thanks for your answer.
Unfortunately it didn't help as my problem is not discussed there. I have a problem with this line:
loadlibrary(NI_TDM_DLL_Path,NI_TDM_H_Path);
I said before that I was using 2009b, but I was mistaken, I have R2008a, but the 'loadlibrary' is opened in a 2008b editor (no idea why). On the Mac I have 2009b installed.
Thanks
Remco -
Hi
I'm trying to run the example TestClient.java that comes with axis, but I get:
java.net.ConnectException: Connection refused
Does anyone know if this server is still running and on the same port (5049) or if there's just something wrong with me.
Thanks
hardkxreOriginally posted by: vladimir.bogus.com
Hey Vladimir,
Import org.eclipse.tomcat as a project into your workspace and see how it's
done in org.eclipse.tomcat.internal.TomcatAppServer - same idea as in onJava
example and obviously working.
Vladimir
"Vladimir Kvassov" <[email protected]> wrote in message
news:ci5r6d$k3o$[email protected]..
> Thank you,
>
> but this is example, which I'v mentioned in my first message.
> (it doesn't work under eclipse)
>
> "Peter van de Hoef" <[email protected]> wrote in message
> news:ci4o25$3t9$[email protected]..
> > Hello Vladimir,
> >
> > Here's an article that describes how you can embed Tomcat in another
> > application:
> > http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html
> > I expect that you can apply this in one of your own Eclipse plugins.
> > (I haven't tried this myself but hope it will work)
> >
> > Regards,
> > Peter van de Hoef
> >
> > "Vladimir Kvassov" <[email protected]> wrote in message
> > news:ci487b$1su$[email protected]..
> > > Hi
> > >
> > > Application, which we develop is based on Eclipse platform,
> > > and now we need to provide access throug web-services.
> > >
> > > Is it possible to start Tomcat in the same VM, as Eclipse?
> > > So, web services will be able to access classes from
> > > our application?
> > >
> > > Or maybe there is some better ideas?
> > >
> > > I found example of starting tomcat from java application,
> > > but from one side, I'v got problems with Axis, from another
> > > side, it seems, this this example doesn't work in Eclipse environment.
> > >
> > > I'v tryed to use eclipse tomcat wrapper, but I can't understand, how
> > > it works, and id I can use it at all.
> > >
> > > Thank you beforehand.
> > >
> > > --
> > > Best Regards
> > > Vladimir Kvassov
> > >
> > >
> >
> >
>
> -
Problems withe transport example
Hi,
I'm trying out Oracle lite 10g on Windows XP. I've installed the mobile server with examples and now I want to install the Mobile Client on the Win32 Device. After synchronising I tried to install the transport application. This works without error messages. Then I opend the update-window (I think ist the one in the start-menue) but there is nothing to install. I find no transport.exe on the whole device.
Then I looked on the Mobile-Server. There are two transport.exe files in the folder <oracle home>\Mobile\Server\samples\Transport\Win32\bin and <oracle home>\mobile_oc4j_\j2ee\home\applications\mobileserver\samles\Transport_win32.
What's going wrong with my installation?
Best Regards
MarkHello Jorge,
I have the same problem with PPC2002. I posted this problem at September 17th. But nobody replied.
Problem registering PPC 2000 Client
The Device can't register with the Device Manager on the Server. I updated the firmware of my client and everything else what I thought could cause the problem.
What language has the PPC2003 system of your device?
Perhaps the problem is that only the english PPC2003/2 system is supported. Because I have the german version of PPC2002. Hopefully someone from Oracle or someone else responds to this thread. -
Hello,
I have some problems with BIFrame.java (bootstrap project)
when i try to connect :
oracle.dss.bicontext.BINamingException: BIB-14736 BIUser does not exist in the BI Beans Catalog.
However, I used BIBCAT login.
A solution ?
Thanks,
Yannhi,
ensure that in the BIFram.java code the line
private static final String m_configFile="***.xml";
contains your .xml configuration file,and that the userName and password in the DAD files are correct -
Build problem with Hello1 example.
Hi,
I have installed j2ee1.4 and trying to run the j2eetutorial1.4
I am facing a problem in building the hello1 example.
1) When I build the hello1 example, the build fails with the following error message
C:\java-works\j2eetutorial14\examples\web\hello1>asant build
Buildfile: build.xml
init:
prepare:
copy:
build:
[javac] Compiling 2 source files to
C:\java-works\j2eetutorial14\examples\we
b\hello1\build
BUILD FAILED
file:C:/java-works/j2eetutorial14/examples/web/hello1/build.xml:52:
C:\java-work
s\j2eetutorial14\examples\web\hello1\${j2ee.home}\lib not found.
Total time: 1 second
2)) Editing the build.proerties file to include the j2ee.home property.When I save the file it gets a .txt extension.Could this cause a problem , while I try to build the examples? if so How can I avoid this?
Could anyone please help me in this?
Thanks,
AnnTo save the file without .txt extension
just enclose the file with double quotes
"build.properties" in the File save dialog box -
Problem with JAAS example in WLS6.0sp1
Hi,
I tried to run the SampleClient from the JAAS example in WLS6.0sp1 and got an
exception
when a valid username/password combination is entered. Has anyone experienced
that in WLS6.0sp1?
Thanx
Ralf
SampleLoginModule.initialize(), debug enabled
SampleLoginModule.initialize(), URL t3://localhost:7001
SampleLoginModule.login(), username guest
SampleLoginModule.login(), password guest
Authentication Failed: Unexpected Exception, java.lang.NoSuchMethodError
at weblogic.security.auth.Authenticate.authenticate(Authenticate.java:124)
at examples.security.jaas.SampleLoginModule.login(SampleLoginModule.java:157)
at java.lang.reflect.Method.invoke(Native Method)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:595)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:125)
at javax.security.auth.login.LoginContext$3.run(LoginContext.java:531)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528)
at javax.security.auth.login.LoginContext.login(LoginContext.java:449)
at examples.security.jaas.SampleClient.main(SampleClient.java:92)Weblogic comes with its own implementation of JAAS, unfortunately
conflicting with Sun's. Contact customer support, they will tell you the
exact differences and incompatibilities. Or reverse engineer the two
versions, you'll find quite a few differences (apart from the BEA version
not implementing JAAS authorization, which is documented).
"Narinder Gaheer" <[email protected]> wrote in message
news:[email protected]..
I am happy someone came up with this problem. I also bent backwardssolving
this problem
in my application.
I figured out that as soon as I remove the standard jaas.jar from my
classpath , I can run the example successfully. Weblogic.jar does contain
necessary jaas library , so don't need to include jaas.jar.
I am not sure, but I get the feeling that there is a jaas library conflict
here. May be weblogic
guys are the best to put some light on this issue.
"Ralf Fritsche" <[email protected]> wrote in message
news:3b15188e$[email protected]..
I found out, that the example runs with the JDK delivered by BEA,
but not with a JDK I downloaded from SUN.
Wheras with the first the provided way to set the user defined
configuration class with the system property'weblogic.security.jaas.Configuration'
works, this is not possible with another JDK. According to the
JAAS standard, this class could only be defined in the properties
file 'java.security' of the Java runtime.
How is BEA doing this?
Thanx
Ralf -
Java EE Tutorial - problem with the example Bookstore
Hi,
I've been working few days on a problem running the Bookstore example from the Java EE Tutorial. When I run the application, I'm redirected from the servlet BookStoreServlet to errorpage.html with the following message: The application is unavailable. Please try later. The tutorial troubleshooting reads: ... a servlet cant retrieve the web context attribute representing the bookstore. This will occur if the database server hasnt been started. But the database server is running (I'm running Derby bundled into NetBeans 6.5). The Glassfish admin console reads:
StandardWrapperValve[BookStoreServlet]: PWC1406: Servlet.service() for servlet BookStoreServlet threw exception
com.sun.bookstore.exception.BookNotFoundException: Couldn't find book: 203
at com.sun.bookstore1.database.BookDBAO.getBook(BookDBAO.java:58)
at com.sun.bookstore1.servlets.BookStoreServlet.doGet(BookStoreServlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at com.sun.bookstore1.filters.HitCounterFilter.doFilter(HitCounterFilter.java:71)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)This would indicate that the tables are empty, but they were created according to the tutorial, with the command ant create-tables, and I can see their content in NetBeans. Please help, I really need to run the examples.
Best regards,
Rene PuchingerI solved the problem running the command that is correctly explained in the page 97 of the tutorial:
Ant create-tables
My mistake was that until that day, I was believing that I could do everything inside Netbeans.
For this you explicitly need to use ant.
Then I got some error which I solved fixing the file
C:\Java\JavaEETutorial5\examples\bp-project\ build.properties
( like set correctly the path to the server and so on) -
Problems with SNMP examples in WL documentation
I am using WL 5.1 on NT. Tried to follow SNMP use examples shown in WL
documentaion. Command line examples refuse to work- I either get an
error that ...Remote Host Unknown... or ...Errored Object ID...
1. after many iterrations launched SNMP agent with the following
command-
java webloghic.SNMPAgent -serverURLs localhost
with password of WL administrator=weblogic
agents reports that initialization was completed
2. Documentation examples do not seem to work.
3. I presume that snmp.mycompany.com reference is an error,
snmp.weblogic.com is probably correct (?)
Can anyone suggest how to make this thing work It's driving me nuts :-)
Thanks,
VadimVadim,
please see comments inline....
vadim t <[email protected]> wrote in message
news:[email protected]..
I am using WL 5.1 on NT. Tried to follow SNMP use examples shown in WL
documentaion. Command line examples refuse to work- I either get an
error that ...Remote Host Unknown... or ...Errored Object ID...
1. after many iterrations launched SNMP agent with the following
command-
java webloghic.SNMPAgent -serverURLs localhost
with password of WL administrator=weblogic
agents reports that initialization was completed
The serverURLs value doesn't seem right, see below .... (this is the URL
used by the agent to connect to the managed WLS server)
You should try the following commandline as in
http://www.weblogic.com/docs51/admindocs/snmpagent.html
" java weblogic.SNMPAgent
-password foo
-serverURLs t3://dns_host_name:7001 "
where 'foo' is the 'system' password, and after replacing appropriate values
for your setup.
Also, if you prefer you can use - startSNMPAgent.cmd /sh which is in
<install_dir>/weblogic, after filling in the blanks.
2. Documentation examples do not seem to work.
3. I presume that snmp.mycompany.com reference is an error,
snmp.weblogic.com is probably correct (?)
Can anyone suggest how to make this thing work It's driving me nuts :-)
Thanks,
Vadim -
Problem with running example 'Generating Live Audio/Video Data'
Hello,
Concerning the example 'Generating Live Audio/Video Data', I'm having trouble with the run instructions.
http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/LiveData.html
How does JMFRegistry know about the location of jmfsample?
How is 'live' resolved as a URL?
2.Register the package prefix for the new data source using JMFRegistry
- Run JMFRegistry
- In the Protocol Prefix List section add "jmfsample" and hit Commit.
4.Select File->Open URL and enter "live:"
Much thanks,
BenI'm getting the following error message: "Could not create player for live"Implies you've either not registered the "live:" protocol prefix in the JMF Registry, or, it couldn't load the class you registered for it...or it might be erroring out inside the actual live protocol, I'm not sure what that would look like, but a System.err.println statement in the constructor of both of those classes might be a good idea.
I added the output of javac (DataSource.class and LiveStream.class) to a directory on the classpath.
C:\Program Files\JMF2.1.1e\lib\jmfsample\media\protocol\liveEh, that looks a little questionable to me. I'm not 100% sure that the JRE will automaticlly descend into the package subdirectories like that, looking for classfiles, for every folder on the path. I am, of course, fully open to the idea that it does and I just never thought about it...but I guess I just thought it only did that for JAR files, not CLASS files. Regardless, I'd recommend:
1) Make sure you've registered the protocol prefix "live:" correctly in JMF Registry
2) Try to run it with the 2 compiled class files in the same folder as your project
3) Try to run it with the 2 compiled class files in the lib directory, if that's on the classpath
4) Try to run it with the 2 compiled class files installed in the JRE as an extension (google for how to do this because I don't remember off the top of my head)
5) Reinstall JMF and see if that helps -
Problem with the examples of Transmitting and Receiving Custom RTP Payloads
I have tried the examples of this web:
http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/CustomPayload.html
Transmitting and Receiving Custom RTP Payloads
I run the examples all right.
But I want to transmit the sound using my own format, so i want to change the file PcmPacketizer.java
and PcmDepacketizer.java
I think the sound data is in the byte[] inData ---- {byte[] inData = (byte[])inBuf.getData();}
so i change the data with my own function, so the inData have the diffrent length:
then i transmit the data with the packet header
public synchronized int process(Buffer inBuf, Buffer outBuf) {
int inLength = inBuf.getLength();
byte[] inData = (enbase((byte[])inBuf.getData()));
byte[] outData = (byte[])outBuf.getData();
if (outData == null || outData.length < PACKET_SIZE) {
outData = new byte[PACKET_SIZE];
outBuf.setData(outData);
// Generate the packet header.
int rate = (int)inFormat.getSampleRate();
int size = (int)inFormat.getSampleSizeInBits();
int channels = (int)inFormat.getChannels();
outData[0] = 0; // filler
outData[1] = (byte)((rate >> 16) & 0xff);
outData[2] = (byte)((rate >> 8) & 0xff);
outData[3] = (byte)(rate & 0xff);
outData[4] = (byte)inFormat.getSampleSizeInBits();
outData[5] = (byte)inFormat.getChannels();
outData[6] = (byte)inFormat.getEndian();
outData[7] = (byte)inFormat.getSigned();
int frameSize = inFormat.getSampleSizeInBits() * inFormat.getChannels();
// Recompute the output format if the input format has changed.
// The crucial info is the frame rate and size. These are used
// to compute the actual rate the data being sent.
if (rate != (int)outFormat.getFrameRate() ||
frameSize != outFormat.getFrameSizeInBits()) {
outFormat = new AudioFormat(CUSTOM_PCM,
AudioFormat.NOT_SPECIFIED, // rate
AudioFormat.NOT_SPECIFIED, // size
AudioFormat.NOT_SPECIFIED, // channel
AudioFormat.NOT_SPECIFIED, // endian
AudioFormat.NOT_SPECIFIED, // signed
size * channels, // frame size
rate, // frame rate
null);
if (inLength + historyLength >= DATA_SIZE) {
// Enough data for one packet.
int copyFromHistory = Math.min(historyLength, DATA_SIZE);
System.arraycopy(history, 0, outData, HDR_SIZE , copyFromHistory);
int remainingBytes = DATA_SIZE - copyFromHistory;
System.arraycopy(inData, inBuf.getOffset(),
outData, copyFromHistory + HDR_SIZE, remainingBytes);
historyLength -= copyFromHistory;
inBuf.setOffset( inBuf.getOffset() + remainingBytes);
inBuf.setLength( inLength - remainingBytes);
outBuf.setFormat(outFormat);
outBuf.setLength(PACKET_SIZE);
outBuf.setOffset(0);
return INPUT_BUFFER_NOT_CONSUMED ;
if (inBuf.isEOM()) { // last packet
System.arraycopy(history, 0, outData, HDR_SIZE, historyLength);
System.arraycopy(inData, inBuf.getOffset(),
outData, historyLength + HDR_SIZE, inLength);
outBuf.setFormat(outFormat);
outBuf.setLength(inLength + historyLength + HDR_SIZE);
outBuf.setOffset(0);
historyLength = 0;
return BUFFER_PROCESSED_OK;
// Not enough data for one packet. Save the remainder
// for next time.
System.arraycopy(inData, inBuf.getOffset(),
history, historyLength,inLength) ;
historyLength += inLength;
return OUTPUT_BUFFER_NOT_FILLED ;
I think I change the data use my own function debase(), so i should decode the data in the file:PcmDepacketizer.java
but int PcmDepacketizer.java the example is so simple that i don't know how to find and change the data.
there is only a few lines here:
Object outData = outBuf.getData();
outBuf.setData(inBuf.getData());
inBuf.setData(outData);
outBuf.setLength(inBuf.getLength() - HDR_SIZE);
outBuf.setOffset(inBuf.getOffset() + HDR_SIZE);
System.out.println("the outBuf length is "+inBuf.getLength());
I write a function : public static byte [] debase(byte[] str)
but i don't know where can i use it.
please tell me what should i do or where is wrong about my thought.the function in PcmPackettizer.java is
public static byte[] enbase(byte [] b) {
ByteArrayOutputStream os = new ByteArrayOutputStream();
//byte[] oo = new byte[(b.length + 2) / 3*4];
//for (int i = 0; i < (b.length + 2) / 3; i++) {
for (int i = 0; i < (b.length + 2) / 3; i++) {
short [] s = new short[3];
short [] t = new short[4];
for (int j = 0; j < 3; j++) {
if ((i * 3 + j) < b.length)
s[j] = (short) (b[i*3+j] & 0xFF);
else
s[j] = -1;
t[0] = (short) (s[0] >> 2);
if (s[1] == -1)
t[1] = (short) (((s[0] & 0x3) << 4));
else
t[1] = (short) (((s[0] & 0x3) << 4) + (s[1] >> 4));
if (s[1] == -1)
t[2] = t[3] = 64;
else if (s[2] == -1) {
t[2] = (short) (((s[1] & 0xF) << 2));
t[3] = 64;
else {
t[2] = (short) (((s[1] & 0xF) << 2) + (s[2] >> 6));
t[3] = (short) (s[2] & 0x3F);
for (int j = 0; j < 4; j++)
os.write(t[j]);
//os.write(t[j],(3*i+j),1);
//os.write(Base64.charAt(t[j]));
//return new String(os.toByteArray());
return os.toByteArray();
just like the base64 function -
Problem with bookstore1 example in J2EE 5 tutorial
Hi everyone. I'm pretty experienced with J2EE but new to the 1.5 version. I'm using the Sun One Server 9.1 and the ant tools. This is referring to the samples in the J2EE 1.5 tutorial. I set my build.properties file and tried to build bookstore1 using ant and then ant deploy. I get the following error.
Deploying application in domain failed; Error loading deployment descriptors for module [bookstore1] -- javax.annotation.Resource.authenticationType()Ljavax/annotation/Resource$AuthenticationType;at com.sun.enterprise.deployment.annotation.AnnotationInfo@4b35d5 Error loading deployment descriptors for module [bookstore1] -- javax.annotation.Resource.authenticationType()Ljavax/annotation/Resource$AuthenticationType;at com.sun.enterprise.deployment.annotation.AnnotationInfo@4b35d5
This error is wracking my brain. If any one could help me with this, I'd really appreciate it.Well, i haven't checked this forum for a while so by now you've probably figured this out. Anyway, there is a build.properties.sample file in the $JAVA_TUTORIAL_HOME\examples\bp-project directroy. Rename that file to build.properties. Open it and look at it. Really, it should already be filled out. There is a property in there like this
javaee.server.passwordfile=${javaee.tutorial.home}/examples/common/admin-password.txtYou have to go to this admin-password.txt file and set the password to your app server. In mine, I have
AS_ADMIN_PASSWORD=passwordNow, you can go to any web project and run asant. Us asant (which stands for Application Server ant). You can use ant, but using asant will ensure your using the right version. Also be sure your using Java Application Server 9 and the asant that comes with it. -
Problem with a example of "Developing and Using ADF Faces Skins"
Hi, I've tried the example "Developing and Using ADF Faces Skins", but when I run the sample.jspx page and choose the skin "MyCompany" in the select skin I obtain the next message:
java.lang.NullPointerException
at oracle.adfinternal.view.faces.ui.laf.simple.desktop.SideBarRenderer._getIconData(SideBarRenderer.java:393)
at oracle.adfinternal.view.faces.ui.laf.simple.desktop.SideBarRenderer.prerender(SideBarRenderer.java:83)
at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:79)
Could somebody help me?
Thanks a lot ;-)Hi there,
I had the same issue last friday.
It's probably because you are using JDeveloper 10.1.3.2 instead of 10.1.3.0 or 10.1.3.1 for which the example is made.
I haven't been able to fix this yet, other then by commenting out the this part of the css.
Luc Bors
Message was edited by:
lucbors
Maybe you are looking for
-
I have a 27" iMac, and am considering a MacBook Air: one consideration in choosing the MBA (which has a smaller screen that I would choose) is that if i can use the iMac at home as ext displaym then I can live when travelling with the smaller MBA dis
-
Windows7/Bootcamp on Sonnet-Tempo-SSD-Card over PCIe?
Hi, I have Windows7-Pro/Bootcamp 3 on a SSD and it works fine, but over internal SATA-Port with only max. 3 Gbit/s. The SSD on Sonnet-Tempo-SSD can work with 6 Gbit/s over PCIe-Port. Is it possible to install Windows/Bootcamp 5 in this way, will it
-
RMAN script- delete archives.
Is this a solid rman backup script? I am getting varied times for a daily backup- some days it's a normal 1 hour, next day it's 6 hours. I can't find a reason- no errors are being generated, I am told to find out why this server does this and not our
-
Displaying content based on browser
Not sure if this is the right place or not, but is it possible in Flash to do something like this... detect the user's browser position movie elements according to each browser The issue is that my company is currently building sites using all Flash
-
Visited Google Links No Longer Change Color
On my preferred browser Safari 4.1.3, visited Google links no longer change color from blue to violet. Any fix other than upgrading OS and Safari browser?