Help! weblogic.rmic _WLStub vs. regular _Stub
Hello,
I have WL6.0 sp1. I want to run weblogic.rmic on a Remote class, in
order to get the _WLStub classes. Am I missing lots of weblogic
classes? What jars are these in, I don't see them anywhere in
weblogic.jar or in ./lib --
weblogic.rmi.extensions.server.Stub
weblogic.rmi.internal.AbstractStub
weblogic.rmi.extensions.server.RemoteReference
Running normal java 1.3 rmic works okay. But running
"java weblogic.rmic" yields hundreds of these following errors --- what
am I doing wrong?
\WLStub4h3k3fu254q3x295u1k5i1l6u2o2g1j.java:14: cannot resolve symbol
symbol : class AbstractStub
location: package internal
public class WLStub4h3k3fu254q3x295u1k5i1l6u2o2g1j extends
weblogic.rmi.internal.AbstractStub
^
Thanks for your help!
John Eiden
Minneapolis, Minnesota
Hmmm.... I see all three of these classes in my weblogic.jar file for WLS
6.0 SP1
John Eiden wrote:
Hello,
I have WL6.0 sp1. I want to run weblogic.rmic on a Remote class, in
order to get the _WLStub classes. Am I missing lots of weblogic
classes? What jars are these in, I don't see them anywhere in
weblogic.jar or in ./lib --
weblogic.rmi.extensions.server.Stub
weblogic.rmi.internal.AbstractStub
weblogic.rmi.extensions.server.RemoteReference
Running normal java 1.3 rmic works okay. But running
"java weblogic.rmic" yields hundreds of these following errors --- what
am I doing wrong?
\WLStub4h3k3fu254q3x295u1k5i1l6u2o2g1j.java:14: cannot resolve symbol
symbol : class AbstractStub
location: package internal
public class WLStub4h3k3fu254q3x295u1k5i1l6u2o2g1j extends
weblogic.rmi.internal.AbstractStub
^
Thanks for your help!
John Eiden
Minneapolis, Minnesota
Similar Messages
-
Hi ,
I unable to generate the stub/skeleton in my java classes using rmic. With help of below code in build.xml file
<taskdef name="rmic" classname="org.apache.tools.ant.taskdefs.Rmic"/>
<rmic base="${build.dest}" includes="**/*.class" classpathref="compilation-classpath" compiler="weblogic" iiop="true"/>
Below is the Error facing in cmd prompt
Error starting WebLogic rmic
BUILD FAILED
C:\OPOM_CRM\CRMModule\crm\build.xml:190: Error starting WebLogic rmic:
at org.apache.tools.ant.taskdefs.rmic.WLRmic.execute(WLRmic.java:84)
at org.apache.tools.ant.taskdefs.Rmic.execute(Rmic.java:548)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
In advance thanks for the help..
Regards
BashaHi.
Try posting your question on weblogic.developer.interest.portal.
Thanks,
Michael
Allen Gu wrote:
I have installed WebLogic Portal 4.0 using wlportal400_with_sp1_win.exe
downloaded from http://www.bea.com, but when I tried to run it from Start
menu, I got the following error:
Starting WebLogic Server ....
The WebLogic Server did not start up properly.
Exception raised:
java.lang.IllegalAccessError: try to access method
weblogic/management/internal/
Helper.preloadMBeanInfos()V from class weblogic/management/Admin
at weblogic.management.Admin.initialize(Admin.java:210)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:362)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
at weblogic.Server.main(Server.java:35)
Reason: Fatal initialization exception
Press any key to continue . . .
What could have gone wrong?
Thanks,
Allen--
Michael Young
Developer Relations Engineer
BEA Support -
Weblogic.rmic and ant integration issue
I am trying to call weblogic.rmic compiler through a ant script and was
sucessful in doing so and generating the stubs and skelton for my RMI
implementation.
But i also want to pass a system property value (in the example i am passing
file=stdout using -D to java) to weblogic.rmi compiler and don't know how to
do that.
Any help will be greatly appreciated...
Thanks
Kunjan Jhaveri
781-372-3965
[email protected]
PS: Script enclosed.
<target name="local.genStubs" depends="local.compile">
<java classname="weblogic.rmic" fork="yes" failonerror="yes">
<jvmarg value="-Dfile=stdout" />
<arg value="-classpath" />
<arg value="${WL_HOME}${file.separator}lib${file.separator}weblogic.jar" />
<arg value="-d" />
<arg value="${SRCDIR}${file.separator}build${file.separator}classes" />
<arg value="com.ehealthdirect.ee.kernel.EEMutexManagerImpl" />
<classpath>
<pathelement
path="${WL_HOME}${file.separator}lib${file.separator}weblogic.jar" />
</classpath>
</java>
</target>As far as I know, rmic doesn't know anything about a "file" system property. Is
there some reason you expect this to do something special?
Kunjan Jhaveri wrote:
I am trying to call weblogic.rmic compiler through a ant script and was
sucessful in doing so and generating the stubs and skelton for my RMI
implementation.
But i also want to pass a system property value (in the example i am passing
file=stdout using -D to java) to weblogic.rmi compiler and don't know how to
do that.
Any help will be greatly appreciated...
Thanks
Kunjan Jhaveri
781-372-3965
[email protected]
PS: Script enclosed.
<target name="local.genStubs" depends="local.compile">
<java classname="weblogic.rmic" fork="yes" failonerror="yes">
<jvmarg value="-Dfile=stdout" />
<arg value="-classpath" />
<arg value="${WL_HOME}${file.separator}lib${file.separator}weblogic.jar" />
<arg value="-d" />
<arg value="${SRCDIR}${file.separator}build${file.separator}classes" />
<arg value="com.ehealthdirect.ee.kernel.EEMutexManagerImpl" />
<classpath>
<pathelement
path="${WL_HOME}${file.separator}lib${file.separator}weblogic.jar" />
</classpath>
</java>
</target> -
Weblogic.rmic - no IDL for business remote
Hi,
I managed to access a Weblogic EJB via RMI/IIOP and Corba. The IDLs were created with weblogic.ejbc. But weblogic.ejbc warns that it is deprecated and weblogic.rmic should be used.
So I tried that.
weblogic.rmic -idl -idlVerbose MyHome MyRemote
Unfortunately, weblogic.rmic does not generate IDLs for my business remote and home, only for spec classes like javax\ejb\RemoveEx.idl.
I tried (the wrong, I guess) sample command line from
http://download.oracle.com/docs/cd/E12840_01/wls/docs103/client/corba_idl.html#wp1065917
which uses the EJB class as argument, but this does not generate anything useful.
How should I call weblogic.rmic to get IDLs for Home and Remote Interfaces?
Thanks,
JuergenHi Weber, I have same issue. When I run C:\projects\workspace\SimpleEJB\build>java -cp C:\Bea\wlserver_10.3\server\lib\weblogic.jar; weblogic.appc -help from cmd wondow. It shows below contents, no idl option in it:
Usage: java weblogic.appc [options] <ear, jar, war or rar file or directory>
where options include:
-help Print the standard usage message.
-version Print version information.
-output <file> Specifies an alternate output archive or
directory. If not set, output will be
placed in the source archive or directory.
-plan <file> Specifies an optional deployment plan.
-forceGeneration Force generation of EJB and JSP classes.
Without this flag the classes may not be
regenerated if it is determined to be
unnecessary.
-quiet Turns off output except for errors
-lineNumbers Add JSP line numbers to generated class
files to aid in debugging.
-library <file> Comma-separated list of libraries. Each
library may optionally set its name and
versions, if not already set in its
manifest, using the following syntax: <file>
[@name=<string>@libspecver=<version>
@libimplver=<version|string>]
-librarydir <dir> Registers all files in specified directory
as libraries.
-writeInferredDescriptors Write out the descriptors with inferred
information including annotations.
-manifest <file> Include manifest information from specified
manifest file.
-clientJarOutputDir <dir> Specifies a directory to put generated
client jars.
-keepgenerated Keep the generated .java files.
-verbose Compile with verbose output.
-classpath <path> Classpath to use.
-source <source> Source version.
-target <target> Target version.
-advanced Print advanced usage options. -
How I can compile a ejb3 class to a idl file by the weblogic.rmic command.
Now, I want create a idl file from a ejb3 class by the weblogic.rmic command.
I had written a sample case. but when I compile, I get a [Class not found] error, why?
Who can guide me or provide me with a sample?
There is a my sample code, below.
[Java Class/Source Path Diagram]
Ejb3ToIdlApp\
|---ejbModule
| |---hello
| | |---Hello.java (*Class implents)
| | IHello.java (*Interface)
| |---META-INF
| |--- MANIFEST.MF
| weblogic-ejb-jar.xml
|---build
|---classes
|---hello
| |---Hello.class
| IHello.class
|---META-INF
|--- MANIFEST.MF
weblogic-ejb-jar.xml
[Interface]
// IHello.java
package hello;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface IHello extends Remote {
String sayHello() throws RemoteException;
[Java Class]
// Hello.java
package hello;
import java.rmi.RemoteException;
public class Hello implements IHello {
private String name;
public Hello(String s) throws RemoteException {
this.name = s;
@Override
public String sayHello() throws RemoteException {
return "Hello ! From " + name;
* @param args
public static void main(String[] args) {
int i = 0;
try {
for(i = 0; i < 10; i++) {
Hello obj = new Hello("MutiHelloServer" + i);
//Context.rebind("//sample/MutiHelloServer" + i, obj);
} catch(Exception e) {
System.out.println("Hello Error: " + e.getMessage());
e.printStackTrace();
[MANIFEST.MF]
Manifest-Version: 1.0
Class-Path:
[weblogic-ejb-jar.xml]
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-ejb-jar xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-ejb-jar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd http://xmlns.oracle.com/weblogic/weblogic-ejb-jar http://xmlns.oracle.com/weblogic/weblogic-ejb-jar/1.3/weblogic-ejb-jar.xsd">
<!--weblogic-version:12.1.1-->
</wls:weblogic-ejb-jar>
[EJB Jar]
ejbModule.jar (* Exported from a sample, above)
[Command Environment]
SET WEBLOGIC_SERVER=C:\Oracle\Middleware\wlserver_12.1\server
SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0_09
SET CLASSPATH=.;%JAVA_HOME%\jre\lib;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%WEBLOGIC_SERVER%\lib;%WEBLOGIC_SERVER%\lib\weblogic.jar;
java weblogic.rmic -idl ejbModule.hello.Hello
[execution result]
Class not found : ejbModule.hello.Hello
ejbModule.hello.Hello
Help!Thanks for your replay.
Before I set the classpath, I had met the ClassNotFound problem.
My command : java -cp %WEBLOGIC_SERVER%\lib\weblogic.jar weblogic.rmic -idl ejbModule.hello.Hello
I was afraid to lost the class that the weblogic.rmic is required, I set the classpath(java library path/class ,weblogic library path/class).
I think the class what is not found is like my class(hello), not the class of the weblogic or java.
Now I don't know what is requred by weblogic.rmic. Is it a class or source of "Hello", and the package name of "Hello" is requred?
After the idl option is cut, when I execute the Command[java weblogic.rmic *---idl--* ejbModule.hello.Hello], I got the other error, below.
(*the Hello class is in ejbModule.jar)
C:\CORBA\test>java weblogic.rmic ejbModule.hello.Hello
java.lang.ClassNotFoundException: ejbModule.hello.Hello
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at weblogic.rmi.rmic.Remote2Java.loadClassUsingSystemClasspath(Remote2Ja
va.java:765)
at weblogic.rmi.rmic.Remote2Java.loadClass(Remote2Java.java:757)
at weblogic.rmi.rmic.Remote2Java.checkIsNotInterface(Remote2Java.java:73
6)
at weblogic.rmi.rmic.Remote2Java.outputs(Remote2Java.java:518)
at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:262
at weblogic.rmic.runBody(rmic.java:64)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.rmic.main(rmic.java:142)
ejbModule.hello.Hello must be a remote interface implementation and should exist in the classpath
----------------------- -
Adding weblogic.rmic to ANT Script
Hi !
Any examples to illustrate adding the weblogic.rmic to the Ant build ???
All that I know is that i can use rmic which is one of the built-in tasks.
Would i have to use exec instead.
I'm referring to this URL.. http://jakarta.apache.org/ant/manual/
Click on built-in tasks.
Refer to Rmic and Exec.
Thanks in advance,
kulkisTry this:
<target name="rmi" depends="compile">
<echo message="========== RMI compilation of the given classes" />
<!-- Compile the rmi stubs and skeletons -->
<!-- rmic base="${classes}" classname ="fi.sonera.ccbs.framework.mvc.rmi.RMICommandImpl"
sourcebase="${stubs}" /-->
<java classname="weblogic.rmic">
<arg value="-d"/>
<arg value="-iiop"/>
<arg value="${classes}"/>
<arg value="fi.sonera.ccbs.framework.mvc.rmi.RMICommandImpl"/>
</java>
</target>
Don Ferguson <[email protected]> wrote:
Actually, I believe the examples exec a separate VM. I've written ant
tasks to run
rmic/ejbc within the ant vm, but unfortunately those are not yet available
for public
consumption.
Andy Piper wrote:
"kulkis" <[email protected]> writes:
Hi ! Any examples to illustrate adding the weblogic.rmic to the Ant
build ???
All that I know is that i can use rmic which is one of the built-intasks. Would
i have to use exec instead.
I'm referring to this URL.. http://jakarta.apache.org/ant/manual/
Click on built-in
tasks. Refer to Rmic and Exec.The examples in WLS 6.1 do this. I don't know whether they made the
beta - but you could pull it down and take a look.
andy -
Hello, I'm trying to use the weblogic rmic compiler to generate stub/skeleton code, but no output can be generated. I don't get any error messages either so I assume the command completed successfully. I checked the whole filesystem but could not see any generated files. I'm using weblogic 8.1 on windows 2000. The command I type in a DOS window is "java weblogic.rmic MyClassImpl".
Could someone experienced in WebLogic please shed some light on this?
Thanks.I encountered the same problem. Check out the following discussion http://newsgroups.bea.com/cgi-bin/dnewsweb?utag=&group=weblogic.developer.interest.rmi&xrelated=134&cmd_thread_next.x=22&cmd_thread_next.y=13.
pf -
求助 用weblogic.rmic编译生成idl文件失败,请高手帮助.
我写了一个Remote接口,在接口的基础上编写一个EJB类,用weblogic.rmic编译生成idl文件,出现类没找到异常。找不到出错原因。请高手帮助。
现把代码贴出.
[Java Class/Source Path Diagram]
Ejb3ToIdlApp\
|---ejbModule
| |---hello
| | |---Hello.java (*Class implents)
| | IHello.java (*Interface)
| |---META-INF
| |--- MANIFEST.MF
| weblogic-ejb-jar.xml
|---build
|---classes
|---hello
| |---Hello.class
| IHello.class
|---META-INF
|--- MANIFEST.MF
weblogic-ejb-jar.xml
[Interface]
// IHello.java
package hello;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface IHello extends Remote {
String sayHello() throws RemoteException;
[Java Class]
// Hello.java
package hello;
import java.rmi.RemoteException;
public class Hello implements IHello {
private String name;
public Hello(String s) throws RemoteException {
this.name = s;
@Override
public String sayHello() throws RemoteException {
return "Hello ! From " + name;
* @param args
public static void main(String[] args) {
int i = 0;
try {
for(i = 0; i < 10; i++) {
Hello obj = new Hello("MutiHelloServer" + i);
//Context.rebind("//sample/MutiHelloServer" + i, obj);
} catch(Exception e) {
System.out.println("Hello Error: " + e.getMessage());
e.printStackTrace();
[MANIFEST.MF]
Manifest-Version: 1.0
Class-Path:
[weblogic-ejb-jar.xml]
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-ejb-jar xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-ejb-jar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd http://xmlns.oracle.com/weblogic/weblogic-ejb-jar http://xmlns.oracle.com/weblogic/weblogic-ejb-jar/1.3/weblogic-ejb-jar.xsd">
<!--weblogic-version:12.1.1-->
</wls:weblogic-ejb-jar>
[EJB Jar]
ejbModule.jar (* Exported from a sample, above)
[Command Environment]
SET WEBLOGIC_SERVER=C:\Oracle\Middleware\wlserver_12.1\server
SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0_09
SET CLASSPATH=.;%JAVA_HOME%\jre\lib;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%WEBLOGIC_SERVER%\lib;%WEBLOGIC_SERVER%\lib\weblogic.jar;
java weblogic.rmic -idl ejbModule.hello.Hello
[execution result]
Class not found : ejbModule.hello.Hello
ejbModule.hello.Hello自己 回复下吧 。
又重新检查了下 , 原来 要转到的供应商在这个门店没有采购信息记录。是下午的检查这个地方的时候眼花了吧。
哎。
让我纠结了俩小时。 -
WebLogic.ejbc vs weblogic.rmic
[att1.html]
Aseem Rastogi <[email protected]> writes:
See examples/iiop/ejb/stateless/cppclient for an example of how to get
this to work. You have to jump through hoops with VisiBroker.
I have deployed a stateless EJB in WLS6.1sp1 / NT and I am trying to write a CPP
Visibroker 4.5 client to acces it...
The steps i took:
While doing the ejbc i have given the option -idl by using
java weblogic.ejbc -iiop -idl -idlDirectory d:\idls -idlVerbose -compiler javac
d:\lib\my.jar -d d:\testjava\my.jar
This file generates two IDL files xHome.idl and x.idl, x.idl contains the business method
of my bean
and xHome contains the ejbCreate method...
According to documentation i can use weblogic.rmic to get these same idls however when i
run
java weblogic.rmic -idl -idlVerbose -idlDirectory .\idls xBean
It creates an idl which has no business method in it but has all private variables
defined in my bean....
I am confused which idl file i should be using....??? as i understand if there is no
business method in IDL my client can't call those methods on EJB..The first two are the right ones.
I thought of going another step and try using both the idls one by one and see but
while compiling the idl by command
idl2cpp -I . -namespace -gen_included_files -root_dir .\corba x.idl
i get
idl2cpp: (warning)::CORBA::Environment declared ("orb.idl", line 28) but never defined
idl2cpp: (warning)(references to it will be permitted, but no code will be generated for
this definition)
idl2cpp:IDL native type ::CORBA::AbstractBase has no known translation; generated code
will not be valid
******************This is a VisiBroker bug - but I think you can safely ignore them.
The orb.idl i am using is from VisibrokerFor C++ 4.5
i tried compiling the orb.idl alone but got the same things..
has anyone else seen this behaviour or i am doing smthg wrong.???andy -
[Help] Weblogic throws exception under load testing
Hello All,
I have developed an application using struts 1.1 framework and deployed
it on weblogic 8.1. The application works fine. But when we load test
the application, weblogic throws an exception. I am not able to
understand why is weblogic throwing this exception. The exception
doesn't originate from my code
I am using struts 1.1 on BEA weblogic 8.1 on HP-UX 11i.
Please help me ... I will be very gratefull for your help.
Here is the stack trace :
<Jan 15, 2004 10:02:28 PM IST> <Error> <HTTP> <BEA-101020>
<[ServletContext(id=28318025,name=testWebApp,context-path=/testWebApp)]
Servlet failed with Exception java.lang.NullPointerException
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
rvle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java
:305)
at
weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(Reques
tDis
patcherImpl.java:382)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatche
rImp
l.java:286)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:10
69)
at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc
esso
r.java:274)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
oces
sor.java:455)
at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles
Requ
estProcessor.java:320)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
rvle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java
:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un(W
ebAppServletContext.java:6310)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
etCo
ntext.java:3622)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
java
:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Regards,
Abhishek.Hello All,
I have developed an application using struts 1.1 framework and deployed
it on weblogic 8.1. The application works fine. But when we load test
the application, weblogic throws an exception. I am not able to
understand why is weblogic throwing this exception. The exception
doesn't originate from my code
I am using struts 1.1 on BEA weblogic 8.1 on HP-UX 11i.
Please help me ... I will be very gratefull for your help.
Here is the stack trace :
<Jan 15, 2004 10:02:28 PM IST> <Error> <HTTP> <BEA-101020>
<[ServletContext(id=28318025,name=testWebApp,context-path=/testWebApp)]
Servlet failed with Exception java.lang.NullPointerException
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
rvle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java
:305)
at
weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(Reques
tDis
patcherImpl.java:382)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatche
rImp
l.java:286)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:10
69)
at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc
esso
r.java:274)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
oces
sor.java:455)
at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles
Requ
estProcessor.java:320)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
rvle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java
:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un(W
ebAppServletContext.java:6310)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
etCo
ntext.java:3622)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
java
:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Regards,
Abhishek. -
I need help renaming a file using regular expressions in Bridge.
Hi,
I work at a university, and we are working through files for our Thesis and Dissertations. We have been renaming them to make them more consistent. I am just wondering if there is a regular expression that could help with this process?
Here is come examples of current file names;
THESIS 1981 H343G
Thesis 1981 g996e
THESIS-1981-A543G
I don't need to change the actual names of the files. just how they are formatted.
Proper case on Thesis.
Hyphens(-) in all white space.
First letter capital, last letter lowercase on the call no (H343g)
So the list above should look like;
Thesis-1981-H343g
Thesis-1981-G996e
Thesis-1981-A543g
I have seen people do some pretty cool things with regular expressions! Any help would be greatly appreciated. Thanks!You would be better off using a script to do this as an example as I don't think it would be possible in the Bridge re-name.
Using ExtendScript Toolkit or a Plain text editor copy the code into either and save it out as Filename.jsx
This needs to be saved into the correct folder. this is found by going to the preferences in Bridge, selecting Startup Scripts, this will open the folder where the script is to be saved.
Once this is done close and re-start Bridge.
To Use: Goto the Tools Menu and select Rename PDFs
Make sure you test the code with a few copied files into a seperate folder first to make sure it does what you want.
The script will do all PDF files in the selected folder.
#target bridge
if( BridgeTalk.appName == "bridge" ) {
renamePDFs = MenuElement.create("command", "Rename PDFs", "at the end of Tools");
renamePDFs.onSelect = function () {
app.document.deselectAll();
var thumbs = app.document.getSelection("pdf");
for( var z in thumbs){
var Name = decodeURI(thumbs[z].spec.name);
var parts = Name.toLowerCase().replace(/\s/g,'-').match(/(.*)(-)(.*)(-)(.*)(\.pdf)/);
var NewName = parts[1].replace(/^[a-z]/, function(s){ return s.toUpperCase() });
NewName += parts[2]+parts[3]+parts[4]+parts[5].toUpperCase().replace(/[A-Z]$/, function(s){ return s.toLowerCase() });
NewName += parts[6];
thumbs[z].spec.rename(NewName); -
Pllllllease help!!!! Regular expressions
Hi....i've been trying for almost 40 hours to write a regular expression and i don't succeed.......
I need a regex that matches a polinomial number.
that polinomal number "divided" in bracets with a complex number between them.
the enviorment i'm using is java eclipse with the REGEX library .
Example for a correct input:
avi=(25.0+5.0i)x^2+(15.3+2.85i)x^1
this is the regex i wrote
^[\w]+=[\\(]{1}[-+]?[\d]+[\\.]{1}[\d]++[+-]{1}[\d]+[\\.]{1}[0-9]+i]*[\\)]{1}[xX]{1}[\\^]{1}[\d]+$
the regex has to start with a name than = than 1 bracet than possibly a + or - than a number with a decimal than + or minus than i than 1 bracket (closing bracket) than x or X than 1 "^" sign than atleast one number than i want the pattern e.g (15.3+2.85i)x^1
the regex currently supports only this case : avi=(25.0+5.0i)x^2
but i want it to support this: avi=(25.0+5.0i)x^2+(15.3+2.85i)x^1
and the "+" sign between the two polinoms must be a "+" and not a "-"
how do i define that the pattern will repeat it self more once or more - when i say the pattern I mean this one : (25.0+5.0i)x^2
in conclusion. how do i fix it??
plz plz plz help me i'm going nuts and me and java's api are close buddies after this weekend still i don't succeed...
tnx alot in advance...........
(:Arg! Why do you double-post???
I've just taken considerable time in answering your other post ( http://forum.java.sun.com/thread.jspa?messageID=10018850 ) and then found out that you posted here as well with additional information.
It's considered rude to make people duplicate their effort by posting the same question twice. Keep to one thread. -
hi all,
how to increase the memory of weblogic Forms service?
pls help me the application is very slow the database memory_target 15G but i dont know how to do it with weblogic?
thank you allHi,
There are number of ways..In my Examples i have set max n min memory to 1GB
1)
If you are using the nodemanager then Login to the weblogic Administration console,
From the console it self u can increase the heap size,follow the below steps
Environment-->Server-->ManagedServer_1-->General(Server start)-->Argument
Enter the below entry in arguments
-Xms1024m -Xmx1024m
2)If you want to do the same from back end Then Follow the below steps
Make changes in SetdomainEnv.sh location
Weblogic_home/user_projects/domains/base_domain/bin
if [ "${JAVA_VENDOR}" = "Sun" ] ; then
WLS_MEM_ARGS_64BIT="-Xms1024m -Xmx1024m"
export WLS_MEM_ARGS_64BIT
WLS_MEM_ARGS_32BIT="-Xms1024m -Xmx1024m"
export WLS_MEM_ARGS_32BIT
After making these changes excute SetdomainEnv.sh and Just restart the managed server
3)Starting the services as memory argument
java -Dweblogic.Name=managed-server-name -Xms1024m -Xmx1024m
-Dweblogic.management.server=url-for-Administration-Server
weblogic.Server
For example, if you create a Managed Server named MedRecManagedServer in the MedRec domain, you can enter the following command:
java -Dweblogic.Name=MedRecManagedServer -Xms1024m -Xmx1024m
-Dweblogic.management.server=localhost:7011
weblogic.Server
These changes will require a restart of the JVM.
Regards
Fabian -
Help: weblogic.ejb.extensions.LockTimedOutException
Dear All:
I got this exception in our EJB app:
weblogic.ejb.extensions.LockTimedOutException. Please see attached error
message below. It is not happening every time you call the bean. It is
reproducable with patience.
Have you had this kind of problem and more importantly, how to avoid it?
Our env is: Wl51 with sp 10, jdk1.3.02, Sun Solaris Unix, a cluster contains
2 wl instance
Thanks.
Wed Jun 19 14:26:53 EDT 2002:<I> <TX> Transaction (TxC (5488304, xid =
1024502557372_6636, timeout = 300, txState = Marked Rollback, root = null)
rolled back after 300 sec.
[GC 99080K->85533K(130688K), 0.0227977 secs]
Wed Jun 19 14:26:54 EDT 2002:<I> <EJB JAR deployment
/webapp/dtshc/dts/nmc/ejb/nmcejb.jar> Transaction: '1024502557372_6636'
rolled back due to EJB exception:
weblogic.ejb.extensions.LockTimedOutException: Lock for
primaryKey:com.mm.nmc.entity.ProducerOneYearPlanPK@1700fc timed out after
300000 ms.
at
weblogic.ejb.internal.LockManagerImpl.waitForLock(LockManagerImpl.java:53)
at weblogic.ejb.internal.LockManagerImpl.lock(LockManagerImpl.java:146)
at weblogic.ejb.internal.LockManagerImpl.lock(LockManagerImpl.java:81)
at weblogic.ejb.internal.StatefulEJBCache.bind(StatefulEJBCache.java:456)
at
weblogic.ejb.internal.StatefulEJBObject.getContextForInvoke(StatefulEJBObjec
t.java:162)
at weblogic.ejb.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:476)
at
com.mm.nmc.entity.ProducerOneYearPlanEJBEOImpl.getData(ProducerOneYearPlanEJ
BEOImpl.java:979)
at
com.mm.nmc.session.PersonalTacticalSessionEJB.getTacticalPlanGoals(PersonalT
acticalSessionEJB.java:200)
at
com.mm.nmc.session.PersonalTacticalSessionEJB.getPersonalTacticalPlan(Person
alTacticalSessionEJB.java:165)
at
com.mm.nmc.session.PersonalTacticalSessionEJB.getPersonalTacticalPlan(Person
alTacticalSessionEJB.java:155)
at
com.mm.nmc.session.PersonalTacticalSessionEJBEOImpl.getPersonalTacticalPlan(
PersonalTacticalSessionEJBEOImpl.java:340)
at
com.mm.nmc.session.PersonalTacticalSessionEJBEOImpl_WLSkel.invoke(PersonalTa
cticalSessionEJBEOImpl_WLSkel.java:167)
at
weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAda
pter.java:347)
at
weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandle
r.java:86)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:1
5)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
Jiancai He
http://www.hefamily.com
Thanks for your message:
In our case, it is entity EJB. The problem only happens in clustered env,
and only happens in one of the servers.
Question: can wl51 use database to manage the concurrent access of entity
EJBs?
Thanks.
Jiancai
Jiancai He
http://www.hefamily.com
"ludovic le goff" <[email protected]> wrote in message
news:[email protected]...
> Hello,
>
> Basically, it means two (or more) different threads are trying to get an
> exclusive lock on the same entity bean or stateful session bean at the
same
> time. One of the locks eventually times out and this exception is thrown.
>
> There are several things that could cause this, for instance:
>
> - Two threads trying to invoke a method on the same stateful session bean
at
> the same time. The EJB 1.1 spec states that the server must detect this
> condition and throw a RemoteException to all subsequent callers.
> LockTimedOutException is a sub-class of java.rmi.RemoteException.
>
> - Two threads are trying to access the same entity bean instance inside a
> single server in the cluster, and the caller holding the lock does not
> finish fast enough.
>
> You might want to check if you have declared the Remote and home interface
> in your jsp/servlet as global variable. And since it's global, instance
> getting overridden every time. That's why both the two request end up in
> using the same EJBObject.
>
> You should changed your code and make the remote/home interface variable
> declaration as local i.e. within the scope of a single request.
> Then you should not see any problem. Both the threads will use different
> EJBObjects and hence you should not see any exceptions.
>
> You need to code in such a way as to avoid deadlocks. For instance, if
> more than one client accesses the EJBs in different order, a deadlock may
> occur. This deadlock is detected and after a certain timeout (5 minutes by
> default), the deadlock is removed and one of the clients gets a
> LockTimedOutException. For example, if one request in your application has
> entity Account 1 (by doing an ejbFindByPrimaryKey) and is then about to
get
> Customer 1, and if at the same time another request in another business
> method has got Customer 1 and is waiting for Account 1, you'll get a
> deadlock and a LockTimedOutException after 5 minutes. You could avoid
this
> by include the code in a synchronized block. You could also get a
deadlock
> if you're making a reentrant call, e.g., A calls B which calls back to A.
>
> If you haven't already seen this, here's a blurb from "Locking Model for
> Entity EJBs" at
>
http://www.weblogic.com/docs51/classdocs/API_ejb/EJB_environment.html#108796
> 7 that you might find interesting:
>
> The EJB 1.1 container in WebLogic Server Version 5.1 uses a pessimistic
> locking mechanism for entity EJB instances. As clients enlist an EJB or
EJB
> method in a transaction, WebLogic Server places an exclusive lock on the
EJB
> instance or method for the duration of the transaction. Other clients
> requesting the same EJB or method block until the current transaction
> completes.
>
> This method of locking provides reliable access to EJB data, and avoids
> unnecessary calls to ejbLoad() to refresh the EJB instance's persistent
> fields. However, in certain circumstances pessimistic locking may not
> provide the best model for concurrent access to the EJB's data. Once a
> client has locked an EJB instance, other clients are blocked from the
EJB's
> data even if they intend only to read the persistent fields.
>
> In a Nutshell the first exception is a consequence of the second.
>
> Hope this helps,
> Ludovic.
> Developer Relations Engineer
> BEA Customer Support
> "newsgroups.bea.com" <[email protected]> a écrit dans le message news:
> [email protected]...
> > Dear All:
> >
> > I got this exception in our EJB app:
> > weblogic.ejb.extensions.LockTimedOutException. Please see attached error
> > message below. It is not happening every time you call the bean. It is
> > reproducable with patience.
> >
> > Have you had this kind of problem and more importantly, how to avoid it?
> >
> > Our env is: Wl51 with sp 10, jdk1.3.02, Sun Solaris Unix, a cluster
> contains
> > 2 wl instance
> >
> > Thanks.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Wed Jun 19 14:26:53 EDT 2002:<I> <TX> Transaction (TxC (5488304, xid =
> > 1024502557372_6636, timeout = 300, txState = Marked Rollback, root =
null)
> > rolled back after 300 sec.
> >
> > [GC 99080K->85533K(130688K), 0.0227977 secs]
> >
> > Wed Jun 19 14:26:54 EDT 2002:<I> <EJB JAR deployment
> > /webapp/dtshc/dts/nmc/ejb/nmcejb.jar> Transaction: '1024502557372_6636'
> > rolled back due to EJB exception:
> >
> > weblogic.ejb.extensions.LockTimedOutException: Lock for
> > primaryKey:com.mm.nmc.entity.ProducerOneYearPlanPK@1700fc timed out
after
> > 300000 ms.
> >
> > at
> >
weblogic.ejb.internal.LockManagerImpl.waitForLock(LockManagerImpl.java:53)
> >
> > at weblogic.ejb.internal.LockManagerImpl.lock(LockManagerImpl.java:146)
> >
> > at weblogic.ejb.internal.LockManagerImpl.lock(LockManagerImpl.java:81)
> >
> > at
weblogic.ejb.internal.StatefulEJBCache.bind(StatefulEJBCache.java:456)
> >
> > at
> >
>
weblogic.ejb.internal.StatefulEJBObject.getContextForInvoke(StatefulEJBObjec
> > t.java:162)
> >
> > at weblogic.ejb.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:476)
> >
> > at
> >
>
com.mm.nmc.entity.ProducerOneYearPlanEJBEOImpl.getData(ProducerOneYearPlanEJ
> > BEOImpl.java:979)
> >
> > at
> >
>
com.mm.nmc.session.PersonalTacticalSessionEJB.getTacticalPlanGoals(PersonalT
> > acticalSessionEJB.java:200)
> >
> > at
> >
>
com.mm.nmc.session.PersonalTacticalSessionEJB.getPersonalTacticalPlan(Person
> > alTacticalSessionEJB.java:165)
> >
> > at
> >
>
com.mm.nmc.session.PersonalTacticalSessionEJB.getPersonalTacticalPlan(Person
> > alTacticalSessionEJB.java:155)
> >
> > at
> >
>
com.mm.nmc.session.PersonalTacticalSessionEJBEOImpl.getPersonalTacticalPlan(
> > PersonalTacticalSessionEJBEOImpl.java:340)
> >
> > at
> >
>
com.mm.nmc.session.PersonalTacticalSessionEJBEOImpl_WLSkel.invoke(PersonalTa
> > cticalSessionEJBEOImpl_WLSkel.java:167)
> >
> > at
> >
>
weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAda
> > pter.java:347)
> >
> > at
> >
>
weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandle
> > r.java:86)
> >
> > at
> >
>
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:1
> > 5)
> >
> > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
> >
> >
> >
> >
> >
> >
> > --
> > Jiancai He
> > http://www.hefamily.com
> >
> >
>
>
-
Rmic -iiop not creating _Stub
Hi,
I am compiling in 1.4 using rmic -iiop - it is not creating the Stub class (it only creates the Tie class). Anything I need to do for that to happen.
As a consequence when error when I run my RMI Server
Error starting service: RemoteException- java.rmi.StubNotFoundException: Stub class not found:
Thanks a lot,
SanjayI am doing that:
public interface IAccountService extends java.rmi.Remote {....
public class AccountServiceImpl implements IAccountService {....
I am compiling :
rmic -iiop AccountServiceImpl
This creates the AccountServiceImplTie.class but not the _Stub
Thanks a lot,
Sanjay
Maybe you are looking for
-
Dear, I have a requirement regarding material stock analysis. For example-I have two stores in a plant.I want to see the stocks as well value of stock on a particular date suppose 25/06/2008 for a particular store. -If i will use MC.9,it will show th
-
How do I trans ogfer all the songs in my Iphone to the itunes on my new laptop without loosing any of the songs and to start syncing the songs on my iphone with itunes?
-
Proprietary ati drivers for an old computer
Hello all, as this is my first post; I've recently been getting a newly acquired, but fairly old laptop (a Dell latitude d600) set up with arch linux, and have been going through all sorts of fun problems. I've been enjoying arch, and the very strang
-
Changing batches of deliveries in shipment/transportation? How can I?
Hello ABAP Experts, we are dealing with an issue arousing from this SD/LES process Order -> Delivery -> Shipment (truck load) -> Batch determination in deliveries -> Deliveries to shipment -> Picking list printed -> picking per shipment (truck load)
-
I can't access any of my files or even a new blank project
I'm working with RH 8. I have also installed the critical updates. I cannot access any of my RH projects. At first I could access the project I'm currently working on. I could not access any of my other projects. So, I reinstalled the critical update