PortletRenderRequest is null in embedded server
I am running JDeveloper 9.0.3.3 (build 1205) with the Oracle9iAS Portal Developer Kit.
When I run a Portlet (jsp) in the embedded OC4J the
PortletRenderRequest is null. How do I get a not null value?
Henrik
Hello,
When you say running in Jdeveloper, are your trying to access the portlet directly from the browser (a)? Or via a Portal (b)?
Just to clarify, you can not run a portlet today without Portal, so you have to register the provider (that can run in the embedded OC4J) into a Portal.
Look at the step "Registering the provider" in the Building Portlets Using the Java Portlet Wizard within Oracle9i JDeveloper document.
Regards
Tugdual Grall
Similar Messages
-
Issue Invoking 10.1.2 BPEL Process from 10.1.3 Embedded server.
Hi All,
I am trying to connect to BPEL 10.1.2 from 10.1.3 embedded server. When I run following
code in debug it just stays at
Locator locator = new Locator("default","bpel",jndi); line. It does not give any error message.
Please help. Let me know if I am doing anything wrong here.
Thank you.
Jigar
package com.sjrwmd.bpel;
import com.oracle.bpel.client.Locator;
import com.oracle.bpel.client.NormalizedMessage;
import com.oracle.bpel.client.delivery.IDeliveryService;
import java.rmi.RemoteException;
import java.util.Hashtable;
import java.util.Map;
import javax.naming.Context;
public class TestBPEL {
public TestBPEL() {
public static void main(String[] args) {
try{
Hashtable jndi = null;
String ssn = "123456789";
jndi = new Hashtable();
jndi.put(Context.PROVIDER_URL, "ormi://dell17316/orabpel");
jndi.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
jndi.put(Context.SECURITY_PRINCIPAL, "admin");
jndi.put(Context.SECURITY_CREDENTIALS, "welcome");
//jndi.put("dedicated.connection", "true");
String xml = "<ssn xmlns=\"http://services.otn.com\">" + ssn + "</ssn>";
Locator locator = new Locator("default","bpel",jndi);
IDeliveryService deliveryService = (IDeliveryService)locator.lookupService
(IDeliveryService.SERVICE_NAME );
// construct the normalized message and send to collaxa server
NormalizedMessage nm = new NormalizedMessage( );
nm.addPart("payload", xml );
NormalizedMessage res =
deliveryService.request ("CreditRatingService", "process", nm);
Map payload = res.getPayload();
System.out.println( "BPELProcess CreditRatingService executed!" );
System.out.println( "Credit Rating is " + payload.get("payload") );
} catch( com.oracle.bpel.client.ServerException se ){
se.printStackTrace();
} catch (RemoteException e) {
// TODO
}Hi Clemens,
Do don't have to say sorry. It happens sometime. I have remove patch from 10.1.3 and apply back to 10.1.2.
This is my obsetenv.bat file
@REM --------------------------------------------------
@REM ADJUST THESE VARIABLE TO MATCH YOUR ENVIRONMENT
@REM --------------------------------------------------
@REM Where has Orabpel been installed on this machine?
set OB_HOME=C:\OraBPELPM\integration\orabpel
@REM Which is app server going to use on this machine?
set OB_PLATFORM=oc4j_10g
@REM Is there a classpath that you would like Orabpel to add to it's
@REM classpath? We recommend that you append any additional directories
@REM to the environment classpath. For example,
@REM
@REM set MY_CLASSES_DIR=%CLASSPATH%
set MY_CLASSES_DIR=%OB_HOME%\system\classes
set MY_CLASSPATH=%MY_CLASSES_DIR%
set PROXY_SET="[HTTP_PROXY_SET]"
@REM Where has the JDK (supporting 1.4.1 or higher) been installed on
@REM this machine?
set JAVA_HOME=C:\OraBPELPM\jdk
if %PROXY_SET% == "true" goto set_proxy
set OB_JAVA_PROPERTIES=
goto end_set_proxy
:set_proxy
set OB_JAVA_PROPERTIES="-Dhttp.proxySet=true" "-Dhttp.proxyHost=[HTTP_PROXY_HOST]" "-Dhttp.proxyPort=[HTTP_PROXY_PORT]" "-Dhttp.nonProxyHosts=[HTTP_NON_PROXY_HOSTS]"
:end_set_proxy
@REM Where the j2ee applications can be deployed, this environment variable
@REM is application server dependent. The process developers will use this
@REM this env. variable to deploy their J2EE applications
@REM (e.g. .war or .ear files)
set J2EE_APPLICATIONS=C:\OraBPELPM\integration\orabpel\system\appserver\oc4j\j2ee\home\applications
@REM --------------------------------------------------
@REM PLEASE DO NOT UPDATE THE REST OF THIS FILE
@REM --------------------------------------------------
@REM Classpath
set OB_LIB=%OB_HOME%\lib
@REM List of Orabpel and Orabpel related libraries.
set BASE_OB_CLASSPATH=%MY_CLASSPATH%;%JAVA_HOME%\lib\tools.jar;%OB_LIB%\orabpel-common.jar;%OB_LIB%\orabpel-thirdparty.jar;%OB_LIB%\orabpel.jar;%OB_LIB%\orabpel-ant.jar;%OB_LIB%\ant-launcher_1.6.2.jar;%OB_LIB%\ant_1.6.2.jar;%OB_LIB%\oracle_http_client.jar;%OB_LIB%\xmlparserv2.jar;%OB_LIB%\olite40.jar;%OB_LIB%\aqapi.jar;%OB_LIB%\orawsdl.jar;%OB_LIB%\bpm-infra.jar;%OB_HOME%\system\services\lib\bpm-services.jar;%OB_LIB%\bipres.jar;%OB_LIB%\bicmn.jar;%OB_LIB%\uix2.jar;%OB_LIB%\share.jar;%OB_LIB%\regexp.jar
@REM Core java runtime libraries
set JAVA_CLASSPATH=%JAVA_HOME%\jre\lib\rt.jar
@REM The Xerces and Xalan libraries need to loaded via the bootclasspath option
@REM since JDK 1.4 packages an older version of Xalan.
@REM
set BOOT_LIBS=%OB_LIB%\orabpel-boot.jar;%OB_LIB%\connector15.jar
@REM Combined classpath
set OBDK_CLASSPATH=%JAVA_CLASSPATH%;%BASE_OB_CLASSPATH%;%OB_LIB%\j2ee_1.3.01.jar;
set OB_CLASSPATH=%BASE_OB_CLASSPATH%
goto finish
:finish
@REM --------------------------------------------------
@REM END OF FILE
@REM --------------------------------------------------
This is my startorabpel.bat
@echo off
set ECHO=off
call "C:\OraBPELPM\integration\orabpel\bin\obsetenv.bat"
@rem Launch Oracle Lite
@rem
@rem start /d "C:\OraBPELPM\integration\orabpel\bin" /min /realtime start_olite.bat
@rem java -Dorabpel.home=C:\OraBPELPM\integration\orabpel -Doracle.mdb.fastUndeploy=60 -Ddatasource.verbose=true -Djdbc.debug=true -Djms.debug=true -Dtransaction.debug=true -jar oc4j.jar
set OPTS=-Doracle.mdb.fastUndeploy=60 -Doc4j.userThreads=true %OB_JAVA_PROPERTIES%
set MEM_ARGS=-Xms512m -Xmx512m -Xmn300m -XX:MaxPermSize=80m
set JAVA_VM=-server
cd "C:\OraBPELPM\integration\orabpel\system\appserver\oc4j\j2ee\home"
"C:\OraBPELPM\jdk\bin\java" -Xbootclasspath/p:"%BOOT_LIBS%" %JAVA_VM% %MEM_ARGS% -Dorabpel.home=C:\OraBPELPM\integration\orabpel %OPTS% -jar oc4j.jar -verbosity 10
Let me know if you need anything more from me.
Thanks for your help resolving this.
Jigar -
Css/js relative path for embedded server
We have recently begun using relative paths for css and js files in our deployed applications:
<link href="../../resources/css/global3.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="../../resources/script/globalScript.js" type="text/JavaScript"></script>
I cannot figure out where to put the resources folder on my local machine so the pages will link correctly when running a project on my embedded server in JDev. Can anyone please help?Hi,
the embedded OC4J has its configuration files at
\jdeveloper_installdir\jdev\system\oracle.j2ee.<version>\embedded-oc4j
However, if you use relative addressing then web applications try to find them relative to the public_html directory of the Viewlayer project
Frank -
What's the function of the null transactional manager server?
how to use the null transactional manager server?
If you need to call a service while in a transaction, but that service
does not use a resource manager (database), then it should be in a group
with the null TMS.
If it is a leaf service, you could call it with TPNOTRAN, but if it has
to call other services that are part of the transaction, then it too
must be part of the transaction.
The first service called by a client that initiated a transaction will
become the coordinator, so it needs to have a TMS even if it is not
using a database.
Scott Orshan
BEA Systems
wangming wrote:
>
how to use the null transactional manager server? -
Crystal Report Embedded server 2008
Hi SAP,
I have reports created in Crystal reports 2008 sp1 designer. Reports are created using stored procedures.Reports are called through .net application and placed at Crystal Report Embedded server 2008.If Reports are at local machine they work fine.If reports are at Crystal Report Embedded server 2008 it prompts for parameter and database credentials.
Here is my code
CrystalDecisions.CrystalReports.Engine.ReportDocument rd= new CrystalDecisions.CrystalReprots.Engine.ReportDocument();
String rptfilepath="ras://C:\Reports\EmbededRpt.rpt";
Rd.ReportAppServer="RasServer";
Rd.FileName= rptfilepath;
Rcd=rd.ReportClentDocument;
System.Data.Dataset ds = this.GetData();
Rd.SetDataSource(CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.Convert(ds));
CrystalReportViewer1.ReportSource=rcd.ReportSource;
Any response will be appreciated.
Thanks.Hi,
I believe Crystal Report Embedded server 2008 does not come with .NET SDKs. You need to wait for its SP1 release that should make make .NET sdks available for the application.
Thanks. -
PB With Java Embedded Server! Pls Help
I'm trying to install the Java Embedded Server Framework and I did it like this! I extracted setup.class into g:\jes2.0. My jdk is installed in "G:\winnt\jdk\bin".
I add "g:\jes2.0" to my environment variable based on the help file
"Make sure your CLASSPATH environment variable contains . (the current directory) at the beginning of the list."
Is this correct?
Then when I type this in the Command Prompt, this happens :
G:\>cd jes2.0
G:\jes2.0>java setup
Exception in thread "main" java.lang.NullPointerException
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:98)
at setup.loadOffsetTable(ArchiveClassLoader.java:344)
at setup.instantiateArchiveReader(ArchiveClassLoader.java:155)
at setup.<init>(ArchiveClassLoader.java:136)
at setup.main(ArchiveClassLoader.java:1079)[omnigunk],
May we suggest that you post your question under the topic 'Embedded Server' of "Consumer and Commerce" section. This section is dedicated to discussions on Java Embedded Server and thus you might get the correct audience to assist you with your problem.
HTH.
Allen Lai
Developer Technical Support
SUN Microsystems
http://www.sun.com/developer/support/ -
Hello,
I just transferred my data with Migration Assistant to a newer, used iMac from my old G5. When Time Machine finished, I saw a strange message about an "embedded server URL" and I'm wondering if I should worry.
The external drive is a LaCie 2TB hard drive connected via Firewire. My iMac is model 12,2 running the latest Mavericks.
Here is my Time Machine log with the questionable piece in bold:
Copied 113.67 GB of 235.39 GB, 1168503 of 1213037 items
Backup destination is a local destination, but we found an embedded server URL.
Copied 1140104 items (228.3 GB) from volume Macintosh HD. Linked 80321.
Will copy (424.6 MB) from Macintosh HD
Found 7210 files (444.3 MB) needing backup
2.17 GB required (including padding), 23.5 GB available
Copied 6747 items (444.5 MB) from volume Macintosh HD. Linked 7453.
Created new backup: 2014-09-24-233352
Copying OS X Recovery set
Backup completed successfully.
Thanks for any advice,
ZeusFirewire can handle networking.. I wonder if you are or have in the past networked the LaCie.. maybe even shared it over the network??
I do not think the message is particularly problematic.. Since firewire is still not directly connected to a network.. and unless you share it, is still just a local drive.. sometimes TM comes up the strangest issues.. particularly since Mavericks. -
JDeveloper 11g is extremely slow when embedded server started
Oracle Jdev experts,
My machine configuration is - 2GB RAM, Intel Core2 Duo 2.4 GHz processor, 160GB HDD, Windows XP Professional
As such jdev itself runs on slower side as compared to other applications. Still it is manageable until I start embedded server.
After I start embedded server, my machine becomes terribly slow. I cannot open any other application..even opening notepad or blank browser window takes 5 min.
Available physical memory drops to less than 100MB which was around 1.4 GB before starting jdev. Please note that I had opened only jdev in the meantime.
Is there any way I can improve jdev performance and save significant time working on it?
Any suggestion in this regard is highly appreciated.
Thanks in advance2GB, even though it may meet the "minimum" requirements is probably too low.
[url http://blogs.oracle.com/shay/2006/03/29#a104]This is a few years old, but has some good tips.
JOhn -
Cactus and jars on (embedded) server
Hi
Has anyone tried the Cactus test frame work and got it to work? (when running the embedded oc4j server)
I keep getting noclassfound errors, no matter where I put the Cactus specific libararies. I have tried putting them in $JDEV_HOME/j2ee/home/lib and in $PROJ_HOME/public_html/WEB_INF/lib but to no success.
I have not tried to deploy the project to an external server, maybe that will work better...?
How about the differences of external and embedded server when it comes to where to put jars?
I find it difficult to understand how the embedded server works. Does the embedded server depend on any deployment profiles set up in the project?
Thanks for the help.Has anyone tried the Cactus test frame work and got it to work? (when running the embedded oc4j server)I have not tried the Cactus test framework.
I keep getting noclassfound errors, no matter where I put the Cactus specific libararies. I have tried putting them in $JDEV_HOME/j2ee/home/lib and in $PROJ_HOME/public_html/WEB_INF/lib but to no success.For a document on OC4J classloaders, see
http://otn.oracle.com/oramag/oracle/02-sep/o52oc4j.html
Thanks for the redirection. That page explains a lot.
I have not tried to deploy the project to an external server, maybe that will work better...?It might, although the external server and embedded server use the exact same binaries. The problem you are having sounds like a configuration issue.Yes, it is a configuration issue. But the configuration may differ, as you say yourself.
How about the differences of external and embedded server when it comes to where to put jars?The configuration of the external and embedded servers are separate. So where you put jars depends on where the configuration is set up to look for jars. JDev automatically administers the embedded server config, and part of that is based on the external server config.I have not myself setup any library or classpath paths on the external server.
I find it difficult to understand how the embedded server works.Can you be more specific? Integrating J2EE server configuration with the features of an IDE like workspaces and projects is inherently complicated. What would help make it easier to understand how the embedded server works?What I meant is that it is difficult to understand the whole server configuration when running the embedded server. You say JDev automatically administers the embedded server config, and picks some configurations from the external server configuration, but how to know what yourself has to include in the external configuration...
Does the embedded server depend on any deployment profiles set up in the project?Only if you use project dependencies (Project Settings | Dependencies) to make a project depend on a deployment profile in a different project.Ok, this is clear.
Thanks for the help.You probably just need to define a Cactus libarary in your project and select the Cactus library as a project library. Then JDev will know to include the Cactus jars when running in the embedded server. Go to Project Settings | Libraries, define a new library, and add it to the project's list of selected libraries. This is exactly what I did.
With the new knowledge, by reading the j2ee classloader document, I hope I will straighten this out.
Thanks -
My Example :
Before:
Columns
name
address
jon DFG
has NULL
adil DER
After:
Column
Total
name : jon , address : DFG
name : has
name : adil , address : DERWhy not doing such reports on the client site?
create table #t (name varchar(10),address varchar(20))
insert into #t values ('jon','dfg'),('has',null),('adil','der')
select n,case when right(n,1)=':' then replace(n,'address:','') else n end
from
select concat('name:',name, ' address:',address ) n from #t
) as der
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
One of the Column returned as NULL from SQL Server 2008
Hi,
I have written a stored procedure in SQL server 2008. The procedure reads data into a temporary table @MeterWiseConsumptionBetwDates as shown
SELECT @sqlstatement = 'SELECT '''@MeterName''', CAST ( MAX('@Meterfield') AS FLOAT )-CAST ( MIN('@Meterfield') AS FLOAT )
FROM KWH
WHERE KWH.timestamp BETWEEN @StDate AND @EndDate'
INSERT INTO @MeterWiseConsumptionBetwDates(MeterName,Consumption)
EXEC sp_executesql @sqlstatement, N'@StDate datetime, @EndDate datetime', @StDate, @EndDate
Now when I execute the stored procedure in SQL Server Management Studio it returns all the columns from the table @MeterWiseConsumptionBetwDates, but when I execute the procedure in MII it returns the values in the Consumption column as null. The MeterName column is returned correctly in both the cases.
Please help.
ThanksGlad to hear that it is working. You should be able to use
execute <proc name> '[SD]'
[SD] and [ED]
are the query date tokens, so whatever you have assigned on the Date Range tab will be passed to the query.
Jamie
Edited by: Jamie Cawley on May 9, 2011 9:40 AM -
Can not start OC4j Embedded Server in the same machine
Hi ,
Please some one help me out with this problem .
I have created two web services AddMacroTask and AddMasterTask .
My both the web services are not running simultaneously .
If I start the AddMacroTask web service then it show me the message that " Another instance is running ,OC4j will shutdown the previous version ...
Pls someone help me out ..
Thanks
Prashant DwivediHello,
The embedded OC4J in Jdeveloper 10g can run only 1 application (EAR) at the time, this is for testing/debugging.
My guess, is your 2 web services are located in 2 different applications this is why Jdeveloper does that.
The easiest way will be to deploy one of your service in a stand alone OC4J that you have started separately, you can take the one that is distributed with Jdeveloper located in $JDEV_HOME/j2ee/home.
Regards
Tugdual Grall -
Why can't I get an applet to run in the OC4J embedded server?
i've set the class path and so on but still no dice.
I keep getting the error message:
load: class model.Applet1 not found.
java.lang.ClassNotFoundException: model.Applet1
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
basic: Exception: java.lang.ClassNotFoundException: model.Applet1
java.lang.ClassNotFoundException: model.Applet1
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
if anybody can help me I'll name my son after them
OwenThere's not enough info in your post to know what wrong. The stacktrace says it can't load the class model.Applet1, it's trying to get the class from the server, but it fails to get it because it cannot create a http connection.
Try to find out where it's trying to connect to, check if that address is correct, and if the required class file can be loaded from that address. -
Intel(R) Embedded Server RAID Technology II and Oracle VM Server
Hi There
This is a head's up for anyone installing on a beast with the above mentioned on-board raid controller.
You have to use the Intel Setup CD to configure the raid. When you use the raid's bios to setup raid, the bios assign a name to the raid that confuse/brakes dmraid. I don't think you can set the raid's name in the bios. When you use the Intel CD you can configure the raid and you can edit the name of the raid. Pleas note, no spaces and no funny characters like #,%,@, in the raid name.
If you don't use the Intel CD, the bios/dmraid create a name that changes every time you reboot the server, I think this is due to spaces and the funny characters. So install will work but after the first reboot, dmraid won't find the raid and your raid configuration won't work.
Ciao
NardusHi,
Thank you for the information. As you said from the behavior it seems that the build-in drivers of Windows Server Technical Preview will not work with the specific motherboard hence the RAID1 cannot work well.
I'll log the issue down.
If you have any feedback on our support, please send to [email protected] -
Please Help: jdev 10.1.3EA embedded server java/lang/StackOverflowError
When I running my application after 1 page application server exit with following message.
Fatal error: Cannot find class java/lang/StackOverflowError
Process exited with exit code -1.
I have 1.18gb intel M processor with 1GB ram & 1gb swap file.I installed base version with JDK 1.5 update 5 installed separately.
jDev installed directory without spaces C:\Oracle\jDev1013.
1) Login - Success
2) startPage - Success
I have af:table on startPage having command button which takes to 3rd page. I have put the comments in action method I can see method completes successful then I get message. e.g.
05/11/01 16:47:10 Completed NeutralTableBean.
05/11/01 16:47:13 Completed ShowCaseFromList.
Fatal error: Cannot find class java/lang/StackOverflowError
Process exited with exit code -1.
This is started this morning. I am developing this application since 4 weeks I was able to navigate to rest of pages till yesterday.
Thanks for the prompt reply.
Yogesh
Maybe you are looking for
-
Is there a way to put additional text alert sounds on an iPhone 3GS?
Is there a way to put additional text alert sounds on an iPhone 3GS?
-
Hi, i have an editable instance of cl_gui_alv_grid. Is there an easy way of getting out the data or do i really need to implement an event handler catching handle_data_changed? I'm not interested in the event itself, and cause the column is a kind of
-
Hi Experts, In my Business Scenario I am using the HTTP Receiver Adapter with "Additional Query String Attributes" for adding up the "MessageID" in the HTTP Header(I am not sure whether it will be added there).. and the adapter sends the HTTP data to
-
Organizational Unit and Cost center.
Hi Experts , Thank in advance <b>Can one let me know briefly about Organizational Unit and Cost center and its field name's as well and related tables if possible</b> Thank You and Regards Santosh
-
Photoshop CS6 in Mac Yosemite crashes when printing. Help!
I've updated the print driver, reloaded the program. So far, no fix. Any ideas?