BI Publisher Document Processor fails after upgrade on AS/400 from V5R4 to V7R1
We have used BI Publisher for four years now, and when we upgraded our operating system to V7R1, we are getting unusual errors when invoking Document Processor. We have run the exact same command on the two different machines and we get a FileNotFoundException on the new (V7R1 box). Investigated the logs from the two machines we get the following:
===> RUNJVA CLASS(oracle.apps.xdo.batch.DocumentProcessor) PARM('-debug' '-tempdir' '/e1je/UAT/Outbound/XPTempDir' '/e1je/UAT/Outbound/WORKDIR/70207_308131654402711.xpctrl')
The java.version property was detected as input. This property is used as output only and has no effect on JVM initialization.
[081613_124243749][][STATEMENT] Oracle XML Parser version ::: Oracle XML Developers Kit 10.1.3.0.0 - Production
[081613_124243753][oracle.apps.xdo.batch.DocumentProcessorEngine][STATEMENT] The xdo.cfg can't be found.
[081613_124243768][oracle.apps.xdo.batch.DocumentProcessorEngine][STATEMENT]
========================> startElement() ::: startDocument is entered <======
==================
[081613_124243781][][STATEMENT] Logger.init(): *** DEBUG MODE IS OFF. ***
[081613_124243781][oracle.apps.xdo.template.EFTProcessor][STATEMENT] EFTProcessor constructor is called.
[081613_124243785][][STATEMENT] Logger.init(): *** DEBUG MODE IS OFF. ***
[081613_124244201][oracle.apps.xdo.batch.FileSearch][STATEMENT] /e1je/UAT/Outbound/XPTempDir/081613_124243754/4.xdo is deleted
[081613_124244204][oracle.apps.xdo.batch.FileSearch][STATEMENT] /e1je/UAT/Outbound/XPTempDir/081613_124243754 is deleted
[081613_124244560][][STATEMENT] WARNING: Old RTF version detected, nested table disabled
[081613_124244608][][STATEMENT] -------cell per row: 2---------
[081613_124244805][][STATEMENT] Adding: {TEMPLATE TYPE(HLDR:4)}
[081613_124244805][][STATEMENT] Adding: {FIXED_POSITION_BASED(STR)}
[081613_124244807][][STATEMENT] -------cell per row: 2---------
[081613_124244807][][STATEMENT] Adding: {OUTPUT CHARACTER SET(HLDR:4)}
[081613_124244807][][STATEMENT] Adding: {iso-8859-1(STR)}
More values here being loaded
[081613_124245599][][STATEMENT] expression: rpad((CONVERT_CASE(TO_CHAR(('')),
'NONE')),1,' ')
[081613_124245600][][STATEMENT] -------cell per row: 2---------
[081613_124245601][][STATEMENT] Adding: {END LEVEL(HLDR:3)}
[081613_124245601][][STATEMENT] Adding: {V558671A_S8(STR)}
[081613_124246022][oracle.apps.xdo.common.xml.XSLT10gR1][STATEMENT] Oracle XML Developers Kit 10.1.0.5.0 - Production
[081613_124246027][][EXCEPTION] java.io.FileNotFoundException: /e1je/UAT/Outbound/XPTempDir/081613_124243754/4.xdo (A file or directory in the path name d
oes not exist.)
at java.io.FileInputStream.<init>(FileInputStream.java:126)
at java.io.FileInputStream.<init>(FileInputStream.java:85)
at oracle.apps.xdo.template.eft.EFTGenerator.loadXSL(Unknown Source)
at oracle.apps.xdo.batch.DocumentProcessorEngine.xsl2text(Unknown Source)
at oracle.apps.xdo.batch.DocumentProcessorEngine.endElement(Unknown Source)
at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:210)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1310)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:328)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:295)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:258)
at oracle.apps.xdo.batch.DocumentProcessorEngine.process(Unknown Source)
at oracle.apps.xdo.batch.DocumentProcessor.process(Unknown Source)
at oracle.apps.xdo.batch.DocumentProcessor.main(Unknown Source)
[081613_124246029][oracle.apps.xdo.batch.DocumentProcessorEngine][EXCEPTION]
java.io.FileNotFoundException: /e1je/UAT/Outbound/XPTempDir/081613_124243754/3.xdo (A file or directory in the path name does not exist.)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at java.io.FileOutputStream.<init>(FileOutputStream.java:84)
at oracle.apps.xdo.batch.DocumentProcessorEngine.xsl2text(Unknown Source)
at oracle.apps.xdo.batch.DocumentProcessorEngine.endElement(Unknown Source)
at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:210)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1310)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:328)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidati ngParser.java:295)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:258)
at oracle.apps.xdo.batch.DocumentProcessorEngine.process(Unknown Source)
at oracle.apps.xdo.batch.DocumentProcessor.process(Unknown Source)
at oracle.apps.xdo.batch.DocumentProcessor.main(Unknown Source) [081613_124246030][oracle.apps.xdo.batch.DocumentProcessorEngine][STATEMENT]
========================> startElement() ::: endDocument is entered <========
================
[081613_124246030][][STATEMENT] The output ---> 0 : null
[081613_124246030][][UNEXPECTED] DocumentProcessor ::: The elapsed time processing batch xml ---> 2.494 secs
Java program completed
It seems that it is deleting the temporary directory before it is finished with it. Any help on why this might be occuring would be appreciated.
Doug
This was a problem in the xdocore.jar file from Oracle. We receive the latest patch from them and the issue was resolved.
Similar Messages
-
Unit test fails after upgrading to Kodo 4.0.0 from 4.0.0-EA4
I have a group of 6 unit tests failing after upgrading to the new Kodo
4.0.0 (with BEA) from Kodo-4.0.0-EA4 (with Solarmetric). I'm getting
exceptions like the one at the bottom of this email. It seems to be an
interaction with the PostgreSQL driver, though I can't be sure. I
haven't changed my JDO configuration or the related classes in months
since I've been focusing on using the objects that have already been
defined. The .jdo, .jdoquery, and .java code are below the exception,
just in case there's something wrong in there. Does anyone have advice
as to how I might debug this?
Thanks,
Mark
Testsuite: edu.ucsc.whisper.test.integration.UserManagerQueryIntegrationTest
Tests run: 15, Failures: 0, Errors: 6, Time elapsed: 23.308 sec
Testcase:
testGetAllUsersWithFirstName(edu.ucsc.whisper.test.integration.UserManagerQueryIntegrationTest):
Caused an ERROR
The column index is out of range: 2, number of columns: 1.
<2|false|4.0.0> kodo.jdo.DataStoreException: The column index is out of
range: 2, number of columns: 1.
at
kodo.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:4092)
at kodo.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:82)
at kodo.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:66)
at kodo.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:46)
at
kodo.jdbc.kernel.SelectResultObjectProvider.handleCheckedException(SelectResultObjectProvider.java:176)
at
kodo.kernel.QueryImpl$PackingResultObjectProvider.handleCheckedException(QueryImpl.java:2460)
at
com.solarmetric.rop.EagerResultList.<init>(EagerResultList.java:32)
at kodo.kernel.QueryImpl.toResult(QueryImpl.java:1445)
at kodo.kernel.QueryImpl.execute(QueryImpl.java:1136)
at kodo.kernel.QueryImpl.execute(QueryImpl.java:901)
at kodo.kernel.QueryImpl.execute(QueryImpl.java:865)
at kodo.kernel.DelegatingQuery.execute(DelegatingQuery.java:787)
at kodo.jdo.QueryImpl.executeWithArray(QueryImpl.java:210)
at kodo.jdo.QueryImpl.execute(QueryImpl.java:137)
at
edu.ucsc.whisper.core.dao.JdoUserDao.findAllUsersWithFirstName(JdoUserDao.java:232)
at
edu.ucsc.whisper.core.manager.DefaultUserManager.getAllUsersWithFirstName(DefaultUserManager.java:252)
NestedThrowablesStackTrace:
org.postgresql.util.PSQLException: The column index is out of range: 2,
number of columns: 1.
at
org.postgresql.core.v3.SimpleParameterList.bind(SimpleParameterList.java:57)
at
org.postgresql.core.v3.SimpleParameterList.setLiteralParameter(SimpleParameterList.java:101)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.bindLiteral(AbstractJdbc2Statement.java:2085)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.setInt(AbstractJdbc2Statement.java:1133)
at
com.solarmetric.jdbc.DelegatingPreparedStatement.setInt(DelegatingPreparedStatement.java:390)
at
com.solarmetric.jdbc.PoolConnection$PoolPreparedStatement.setInt(PoolConnection.java:440)
at
com.solarmetric.jdbc.DelegatingPreparedStatement.setInt(DelegatingPreparedStatement.java:390)
at
com.solarmetric.jdbc.DelegatingPreparedStatement.setInt(DelegatingPreparedStatement.java:390)
at
com.solarmetric.jdbc.DelegatingPreparedStatement.setInt(DelegatingPreparedStatement.java:390)
at
com.solarmetric.jdbc.LoggingConnectionDecorator$LoggingConnection$LoggingPreparedStatement.setInt(LoggingConnectionDecorator.java:1
257)
at
com.solarmetric.jdbc.DelegatingPreparedStatement.setInt(DelegatingPreparedStatement.java:390)
at
com.solarmetric.jdbc.DelegatingPreparedStatement.setInt(DelegatingPreparedStatement.java:390)
at kodo.jdbc.sql.DBDictionary.setInt(DBDictionary.java:980)
at kodo.jdbc.sql.DBDictionary.setUnknown(DBDictionary.java:1299)
at kodo.jdbc.sql.SQLBuffer.setParameters(SQLBuffer.java:638)
at kodo.jdbc.sql.SQLBuffer.prepareStatement(SQLBuffer.java:539)
at kodo.jdbc.sql.SQLBuffer.prepareStatement(SQLBuffer.java:512)
at kodo.jdbc.sql.SelectImpl.execute(SelectImpl.java:332)
at kodo.jdbc.sql.SelectImpl.execute(SelectImpl.java:301)
at kodo.jdbc.sql.Union$UnionSelect.execute(Union.java:642)
at kodo.jdbc.sql.Union.execute(Union.java:326)
at kodo.jdbc.sql.Union.execute(Union.java:313)
at
kodo.jdbc.kernel.SelectResultObjectProvider.open(SelectResultObjectProvider.java:98)
at
kodo.kernel.QueryImpl$PackingResultObjectProvider.open(QueryImpl.java:2405)
at
com.solarmetric.rop.EagerResultList.<init>(EagerResultList.java:22)
at kodo.kernel.QueryImpl.toResult(QueryImpl.java:1445)
at kodo.kernel.QueryImpl.execute(QueryImpl.java:1136)
at kodo.kernel.QueryImpl.execute(QueryImpl.java:901)
at kodo.kernel.QueryImpl.execute(QueryImpl.java:865)
at kodo.kernel.DelegatingQuery.execute(DelegatingQuery.java:787)
at kodo.jdo.QueryImpl.executeWithArray(QueryImpl.java:210)
at kodo.jdo.QueryImpl.execute(QueryImpl.java:137)
at
edu.ucsc.whisper.core.dao.JdoUserDao.findAllUsersWithFirstName(JdoUserDao.java:232)
--- DefaultUser.java -------------------------------------------------
public class DefaultUser
implements User
/** The account username. */
private String username;
/** The account password. */
private String password;
/** A flag indicating whether or not the account is enabled. */
private boolean enabled;
/** The authorities granted to this account. */
private Set<Authority> authorities;
/** Information about the user, including their name and text that
describes them. */
private UserInfo userInfo;
/** The set of organizations where this user works. */
private Set<Organization> organizations;
--- DefaultUser.jdo --------------------------------------------------
<?xml version="1.0"?>
<!DOCTYPE jdo PUBLIC
"-//Sun Microsystems, Inc.//DTD Java Data Objects Metadata 2.0//EN"
"http://java.sun.com/dtd/jdo_2_0.dtd">
<jdo>
<package name="edu.ucsc.whisper.core">
<sequence name="user_id_seq"
factory-class="native(Sequence=user_id_seq)"/>
<class name="DefaultUser" detachable="true"
table="whisper_user" identity-type="datastore">
<datastore-identity sequence="user_id_seq" column="userId"/>
<field name="username">
<column name="username" length="80" jdbc-type="VARCHAR" />
</field>
<field name="password">
<column name="password" length="40" jdbc-type="CHAR" />
</field>
<field name="enabled">
<column name="enabled" />
</field>
<field name="userInfo" persistence-modifier="persistent"
default-fetch-group="true" dependent="true">
<extension vendor-name="jpox"
key="implementation-classes"
value="edu.ucsc.whisper.core.DefaultUserInfo" />
<extension vendor-name="kodo"
key="type"
value="edu.ucsc.whisper.core.DefaultUserInfo" />
</field>
<field name="authorities" persistence-modifier="persistent"
table="user_authorities"
default-fetch-group="true">
<collection
element-type="edu.ucsc.whisper.core.DefaultAuthority" />
<join column="userId" delete-action="cascade"/>
<element column="authorityId" delete-action="cascade"/>
</field>
<field name="organizations" persistence-modifier="persistent"
table="user_organizations" mapped-by="user"
default-fetch-group="true" dependent="true">
<collection
element-type="edu.ucsc.whisper.core.DefaultOrganization"
dependent-element="true"/>
<join column="userId"/>
<!--<element column="organizationId"/>-->
</field>
</class>
</package>
</jdo>
--- DefaultUser.jdoquery ---------------------------------------------
<?xml version="1.0"?>
<!DOCTYPE jdo PUBLIC
"-//Sun Microsystems, Inc.//DTD Java Data Objects Metadata 2.0//EN"
"http://java.sun.com/dtd/jdo_2_0.dtd">
<jdo>
<package name="edu.ucsc.whisper.core">
<class name="DefaultUser">
<query name="UserByUsername"
language="javax.jdo.query.JDOQL"><![CDATA[
SELECT UNIQUE FROM edu.ucsc.whisper.core.DefaultUser
WHERE username==searchName
PARAMETERS java.lang.String searchName
]]></query>
<query name="DisabledUsers"
language="javax.jdo.query.JDOQL"><![CDATA[
SELECT FROM edu.ucsc.whisper.core.DefaultUser WHERE
enabled==false
]]></query>
<query name="EnabledUsers"
language="javax.jdo.query.JDOQL"><![CDATA[
SELECT FROM edu.ucsc.whisper.core.DefaultUser WHERE
enabled==true
]]></query>
<query name="CountUsers"
language="javax.jdo.query.JDOQL"><![CDATA[
SELECT count( this ) FROM edu.ucsc.whisper.core.DefaultUser
]]></query>
</class>
</package>
</jdo>I'm sorry, I have no idea. I suggest sending a test case that
reproduces the problem to support. -
Anybody know why superdrives fail after upgrading os
anybody know why superdrives fail after upgrading os
Upgrading the OS often also triggers issues with PRAM. If the PRAM battery is over 4 years old, then the Superdrive can fail. If it is under 4 years old, zapping it can fix some issues like these.
-
After upgrading to Mountain Lion from Lion, Mail, Safari and Note need about five minutes to start.
After starting, Mail answers are very very slow. The same for Note. Instead of, sending mails is only a bit slower than before upgrading.
In Safari, I choose Goggle as starting page in Preferences, but at every restart misses that starting page and the search strip says "Seek Google or instert an address".Well, I found the solution here in another thread.
i just want to mention that the samw thing was happening also for the notes and the reminders apps!! (they quit unexpectedly!!).
So I found the solution here.
Thank you graphicsluc!!! -
after upgrading my iphone ios from 5.1.1 to 6.0 wverythings seems to work fine.
until today i was using my wi-fi network to download an application and suddenly wi-fi tirned off and when i went to the settings i cannot click on (on/off) wi-fi)
it is ot highlighted.
i searched the web for answers but all answers took me to a dead end.
now i am stuck with iphone 4s with no wi-fi which is worth nothing.
a normal nokia with wi-fi is much better.
any help on how to fic my issue?Take a look at this Apple doc -> iOS: Wi-Fi or Bluetooth settings grayed out or dim
If those 5 steps don't fix it, the iPhone will need service. -
I am facing wifi and mobile 2G signal issue after upgrading to IOS 6 from IOS 5 in IPhone 3GS. The mobile carrier signal as well as WIFI suddenly drops zero and are then restored automatically. Sometimes i cannot conenct to WIFI even standing infront of WIFI router. Please help, restoring setting even didn't helped.
Update: my phone's connecting to the WiFi again. I don't know what did the trick. I did nothing since reinstalling the software. It hadn't worked then, it is now. I tried connecting to my dad's phone's hotspot( he uses a Moto G), and it worked. I then tried connecting to the WiFi at a friend's house, and when I came back home, my phone was able to connect to my WiFi! Is it of any significance that my friend's router doesn't require a password? My issue has been resolved( for now; I hope I'm not counting my chickens before they've hatched). For anyone facing a similar issue, I suggest you try everything I did:
1. Turn your router off for a minimum of 30 seconds, turn it back on and try connecting.
2. Click on the WiFi network you are connected to, scroll to the bottom, tap "Renew Lease".
3. Do a soft and hard reset.
4. Reset network settings.
5. Back your data up, erase all content from settings menu, restore from backup.
6. Reinstall your software( put it in recovery mode).
I am not sure which of the above worked for me. Make sure you try everything. If none of the above works, take it to a genius bar or an authorised service provider. Good luck! :) -
Reinstalling Acrobat 9 after upgrading my x86 computer from Win XP Pro to Win 8 Pro on a metered isp
I am trying to reinstall Acrobat 9 after upgrading my x86 computer from Win XP Pro SP3 to Win 8 Pro. I used the CD to install the original Acrobat 9, then began the process of applying all the updates that have been issued since. The update from 9.0 to 9.2.0 was 300.1 MB, but my satellite ISP only allows for 250 MB per day. How can I update to the current version 9.5.3 without having to download and install all the intermediate versions?
[Moved the discussion to Acrobat Forum]
-
recently "lost" a purchased song, (Plus the accompanying artwork) from my i-tunes library, after upgrading my O.S. from windows XP to windows 7.
Is there any way to get the original song back, or, at least, re-purchase it?... I tried to do the latter, (It's still available in the itunes store) but, when I clicked on the buy link, I was informed that I had already bought it and was only given the option to, either, copy the link or send it to Facebook/Twitter
I also, inadvertently, deleted a couple of default playlists (Notably recently added) while attempting to get the song back.
Can someone out there, please, help me out. with the solution(s). (preferably step by step if possible, as I'm a bit of a Homer Simpson when it comes to this sort of thing) .. Doh!! :-(Hello, MrKite549.
Here is an article that will walk you through download any past purchases that are missing from your iTunes library.
Downloading past purchases from the iTunes Store, App Store, and iBooks Store
http://support.apple.com/kb/ht2519
Cheers,
Jason H. -
Not able to set static IP address after upgrading to 8.1 from 8.0
I have a dell vostro 1014 laptop.After upgrading to 8.1 from 8.0 , i am not able to give static IP address in the Internet Protocol version 4 (TCP/IPv4) Properties of my Ethernet card properties.I am getting the following error:
"COM surrogate has stopped working error"
In order to access Internet Protocol version 4 (TCP/IPv4) Properties
again , i need to restart the system
after restarting my system and when i access Internet Protocol version 4 (TCP/IPv4) Properties i find that ip address,subnet mask and default gateway( in the
use following IP Address field) have given has become empty.But
preferred DNS server and alternate DNS server enteries are still there.I am able to fetch IP address from the DHCP server
Does anyone knows how to troubleshoot this problem?This problem may occur due to loss of some system files while upgrading your dell vostro 1014 laptop from 8.0.to 8.1 or unsuccessful upgrade.
Try to refresh your laptop by inserting windows 8.1 installation disc.
To do this go to control panel->recovery->refresh your system without loosing any data
If you don't have any windows 8.1 installation disc just download from Microsoft website.
Make sure to choose correct architecture of your windows installation (x86 or x64) when you download. -
After upgrading to 3.5 from a library of images are not displayed.
After upgrading to 3.5 from a library of images are not displayed. All images are filled with black. Ifoto the same library looks fine.
Yes, they are compile errors, which state 'xmlObject cannot be resolved to a type' on this line: protected XmlObject xmlDocument = null;
and on an import line: import org.apache.xmlbeans.*;
the compiler states the import.org.apache.xmlbeans cannot be resolved.
I have three classes that deal with xml objects and all three have the same errors.
Also I'm getting the same type of errors on an import javax.media -
Is there a resource where I can see if my older versions of applications will work after upgrading to 10.8 from 10.6.8? I have some older Mac apps as well as things like Microsoft word and Adobe professional. I know PowerPC apps won't work, but I can't tell by the version numbers if they are PPC or Intel.
Dr Jack wrote:
I know PowerPC apps won't work...
Restore the ability of PowerPC apps to work: Install Snow Leopard (with Rosetta) into Parallels:
[click on images to enlarge]
Full Snow Leopard installation instructions here:
http://forums.macrumors.com/showthread.php?t=1365439 -
Integration of APEX in OBIEE 11g fails after upgrade to APEX 4.2.1
I used a document from the german APEX forum to integrate Oracle Business Intelligence 11g (OBIEE) with APEX.
After login in OBIEE a APEX page will be called without login in APEX.
The Document is called "APEX in Oracle Business Intelligence (Oracle BI) integrieren"
http://www.oracle.com/webfolder/technetwork/de/community/apex/tipps/biee-apex/index.html
In APEX 4.0 this worked great. After login in OBIEE I could call a APEX page without new login.
But after upgrading to APEX 4.2.1 now the APEX login mask is displayed.
OBIEE uses this function to create a APEX session and store the APEX session-id and username in the table apex_biee_session:
-- Function GET_APEX_SESSION_ID
-- sets up an APEX session for a BIEE user
FUNCTION get_apex_session_id (p_username IN VARCHAR2,p_days_valid IN NUMBER DEFAULT 1) RETURN VARCHAR2
IS
pragma autonomous_transaction;
l_session_id NUMBER;
l_valid_to DATE;
l_count NUMBER;
l_password VARCHAR2(4000);
BEGIN
l_valid_to := SYSDATE + NVL(p_days_valid,1);
-- Let us delete expired records:
BEGIN
DELETE FROM apex_biee_session
WHERE valid_to < TRUNC(SYSDATE,'DD');
COMMIT;
EXCEPTION
WHEN NO_DATA_FOUND THEN NULL;
END;
-- get next APEX session id:
l_session_id := apex_custom_auth.get_next_session_id;
-- Insert the BIEE user and the APEX session id in table APEX_BIEE_SESSION
INSERT INTO apex_biee_session (username, sessioN_id, valid_to)
VALUES (UPPER(p_username),l_session_id,l_valid_to);
COMMIT;
-- define an APEX user session:
apex_custom_auth.define_user_session(
p_user => UPPER(p_username),
p_session_id => l_session_id);
htmldb_application.g_unrecoverable_error := TRUE; -- tell apex engine to quit
RETURN l_session_id;
EXCEPTION
WHEN OTHERS THEN RETURN '-99';
END get_apex_session_id;
CREATE TABLE "APEX_BIEE_SESSION"
( "USERNAME" VARCHAR2(60),
"SESSION_ID" NUMBER,
"VALID_TO" DATE,
CONSTRAINT "APEX_BIEE_SESSION_PK" PRIMARY KEY ("USERNAME","SESSION_ID")
In APEX this page sentry function is called:
-- Function PAGE_SENTRY
-- used as page sentry function in APEX applications
FUNCTION page_sentry RETURN BOOLEAN
IS
l_current_sid NUMBER;
l_biee_userid VARCHAR2(255);
l_cookie owa_cookie.cookie;
l_c_value VARCHAR2(255) := NULL;
l_cookie_tom owa_cookie.cookie;
l_c_value_tom VARCHAR2(255) := NULL;
l_session_id NUMBER;
l_biee_auth VARCHAR2(1) := 'N';
BEGIN
BEGIN
-- If normal APEX user authentication is used, cookie LOGIN_USERNAME_COOKIE will be used
l_cookie_tom := owa_cookie.get('LOGIN_USERNAME_COOKIE');
l_c_value_tom := l_cookie_tom.vals(1);
l_biee_userid := UPPER(l_cookie_tom.vals(1));
EXCEPTION
WHEN OTHERS THEN NULL;
END;
l_session_id := apex_custom_auth.get_session_id; -- in APEX 4.2.1 this returns NULL
-- Do we have a record in table APEX_BIEE_SESSION with the current session id
BEGIN
SELECT UPPER(username) INTO l_biee_userid
FROM apex_biee_session
WHERE session_id = l_session_id AND valid_to > SYSDATE;
l_biee_auth := 'Y';
EXCEPTION
WHEN NO_DATA_FOUND THEN l_biee_userid := 'Failed';
END;
IF l_biee_userid = 'Failed' THEN
IF l_c_value_tom IS NULL THEN
l_biee_userid := NULL;
ELSE
l_biee_userid := UPPER(l_c_value_tom);
END IF;
END IF;
-- If l_biee_userid is NULL we need to call the APEX login page (done by RETURN FALSE)
IF l_biee_userid IS NULL THEN
RETURN FALSE;
END IF;
IF l_biee_auth = 'N' THEN
l_current_sid := apex_custom_auth.get_session_id_from_cookie;
ELSE
l_current_sid := l_session_id;
END IF;
-- This is the built-in part of the session verification
IF apex_custom_auth.is_session_valid THEN
wwv_flow.g_instance := l_current_sid;
IF apex_custom_auth.get_username IS NULL THEN
apex_custom_auth.define_user_session(
p_user => UPPER(l_biee_userid),
p_session_id => l_current_sid);
RETURN TRUE;
ELSE
IF UPPER(l_biee_userid) = UPPER(apex_custom_auth.get_username) THEN
apex_custom_auth.define_user_session(
p_user =>UPPER(l_biee_userid),
p_session_id =>l_current_sid);
RETURN TRUE;
ELSE -- username mismatch. Unset the session cookie and redirect back here to take other branch
apex_custom_auth.logout(
p_this_app=>v('APP_ID'),
p_next_app_page_sess=>v('APP_ID')||':'||nvl(v('APP_PAGE_ID'),0)||':'||l_current_sid);
wwv_flow.g_unrecoverable_error := true; -- tell htmldb engine to quit
RETURN FALSE;
END IF;
END IF;
ELSE -- application session cookie not valid; we need a new apex session
IF l_biee_auth <> 'Y' THEN
l_session_id := apex_custom_auth.get_next_session_id;
END IF;
apex_custom_auth.define_user_session(
p_user => l_biee_userid,
p_session_id => l_session_id);
wwv_flow.g_unrecoverable_error := true; -- tell htmldb engine to quit
IF owa_util.get_cgi_env('REQUEST_METHOD') = 'GET' THEN
wwv_flow_custom_auth.remember_deep_link(
p_url=>'f?'||wwv_flow_utilities.url_decode2(owa_util.get_cgi_env('QUERY_STRING')));
ELSE
wwv_flow_custom_auth.remember_deep_link(
p_url=>'f?p='||
TO_CHAR(wwv_flow.g_flow_id)||':'||
TO_CHAR(nvl(wwv_flow.g_flow_step_id,0))||':'||
TO_CHAR(wwv_flow.g_instance));
END IF;
apex_custom_auth.post_login( -- register session in htmldb sessions table, set cookie, redirect back
p_uname => l_biee_userid,
p_app_page => wwv_flow.g_flow_id||':'||nvl(wwv_flow.g_flow_step_id,0));
RETURN FALSE;
END IF;
END page_sentry;
The problem seems to be that in line "l_session_id := apex_custom_auth.get_session_id;" the call of apex_custom_auth.get_session_id is returning NULL in APEX 4.2.1.
In APEX 4.0 the call of apex_custom_auth.get_session_id returned the APEX session id.
What can I do to get this working again ?
Kind Regards,
Markus
Edited by: asmodius1 on Jan 10, 2013 2:06 PMHi,
this integration relies on session fixation, that's an insecure practice which is not allowed anymore since 4.1:
http://en.wikipedia.org/wiki/Session_fixation
Since the cookie value for the session id is missing, Apex rejects the session id and sets it to null, before calling the sentry function.
If you absolutely want to use this kind of integration, you will have to parse the value of owa_util.get_cgi_env('QUERY_STRING') in the sentry function to get the session id. To make it a bit more secure, the row in APEX_BIEE_SESSION should only be valid for a very short time (e.g. 1 sec). A person from Oracle Support contacted me about possible improvements to this authentication a few weeks ago. I replied with the following suggestions:
I would at least add a Y/N flag (e.g. SESSION_JOINED_BY_APEX) to the
APEX_BIEE_SESSION table. The page sentry should only accept the session
without an accompanying cookie if the flag is still N. It has to set it
to Y afterwards. This way, you ensure that the session joining without
cookie can only be done once. Maybe there should also be an alternative
way to log in to APEX, e.g. via page 101. Currently, this authentication
only accepts session IDs that were generated via OBIEE.
Users could log out of APEX or the APEX session could expire. Therefore,
the APEX app should have a post logout procedure that deletes the row in
the OBIEE session table. On the OBIEE side, APEX_SESSION_ID should
therefore be initialized on each request. The initialization code should
also check APEX_WORKSPACE_SESSIONS to make sure the session still
exists.
Regards,
Christian -
Remote portlet failing after upgrading to 6.5 and SQL Server to 2005
we are upgrading our environment from 6.1 mp1 to 6.5 in the process we upgraded our sql server from 2000 version to 2005.After the database upgrade all our remote custom portlet developed using API's to query the database to get user properties or documents name in KD is failing at the point where it try’s to make the call to the database.
We are getting following error on all the portlets result page “The underlying connection was closed: The server committed an HTTP protocol violation. “
For example for user search portlet its fails at this line
IPortalSearchRequest searchRequest = searchFactory.CreatePortalSearchRequest();
Any Ideas??
Edited by spinto at 06/11/2008 7:02 AM
Edited by spinto at 06/11/2008 11:59 AMYou had 6.1 MP1 running on SQL 2000? If you pulled off that sql magic, this issue should be peanuts. ;-)
Seriously, though, when we went from 6.1 to 6.1 MP1, all of our apps using the native API's IPTSearchRequest broke. Notice I said 'IPT' not just 'I' - again, I'm talking about the native api, not the remote. Though come to think of it, the remote search api calls may have broken, too. That was the whole reason we put off the MP1 upgrade - it broke the search in all our tests. I don't think it was until the patch 1 for MP1 came out that we moved forward.
Enough of my yapping, our fix for the native api apps - those using IPTSearchRequest - was to simply recompile the apps using the MP1 assemblies. Whatever the handful of assemblies you may have referenced in your project to get the native api working, just change their ref path to the newer MP1 assemblies - or in your case the new 6.5 versions. That fixed us right up.
Edited by tjannotta at 06/12/2008 7:36 AM -
We tried to upgrade from SOA Suite 11.1.1.4 to 11.1.1.6.
After upgrade when we tried to start our managed servers we get the below error. Did anyone ran into this? If so how did you resolve it?.
Its still referring to some Weblogic 10.3.4 libraries. We were not able to find out where..
<Mar 22, 2012 3:21:29 PM CDT> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: java.lang.AssertionError: java.lang.ClassNotFoundException: weblogic.jndi.internal.ServerNamingNode_1034_WLStub
java.lang.AssertionError: java.lang.ClassNotFoundException: weblogic.jndi.internal.ServerNamingNode_1034_WLStub
at weblogic.jndi.WLInitialContextFactoryDelegate.newRootNamingNodeStub(WLInitialContextFactoryDelegate.java:610)
at weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInitialContextFactoryDelegate.java:577)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:482)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:376)
at weblogic.jndi.Environment.getContext(Environment.java:315) Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: weblogic.jndi.internal.ServerNamingNode_1034_WLStub at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Truncated. see log file for complete stacktrace>
The WebLogic Server encountered a critical failure
Reason: Failed to load stub for class class weblogic.server.RemoteLifeCycleOperationsImpl
Exception in thread "Main Thread" java.lang.AssertionError: Failed to load stub for class class weblogic.server.RemoteLifeCycleOperationsImpl at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:145) at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:124) at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialReference(WLInitialContextFactoryDelegate.java:427) at weblogic.jndi.Environment.getInitialReference(Environment.java:245) at weblogic.server.ServerLifeCycleRuntime.getLifeCycleOperationsRemote(ServerLifeCycleRuntime.java:1083) at weblogic.t3.srvr.ServerRuntime.sendStateToAdminServer(ServerRuntime.java:429) at weblogic.t3.srvr.ServerRuntime.updateRunState(ServerRuntime.java:415)
at weblogic.t3.srvr.T3Srvr.setState(T3Srvr.java:206) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:482) at weblogic.Server.main(Server.java:71)
Thanks,
JpHi,
I found an oracle note with the next solution:
Add -Xverify:none to the JVM Arguments in the WebLogic console if you're using Node Manager to start managed servers:
1. Go into WebLogic Console
2. Navigate to Environment> Servers> [Sever_name]> Server Start> Arguments
3. Add -Xverify:none to the arguments
4. Restart the WebLogic server
5. Retest the issue.
6. Migrate the solution as appropriate to other environments.
Or
If you're not using Node Manager to start managed servers:
Edit the WebLogic start-up script to add -Xverify:none to the JVM arguments
See if it works for you
Arik -
Vpn fails after upgrade to 10.8.5
After upgrading from SL to Mountain Lion the Apple vpn client connections fail. They were connecting fine before the upgrade. They also work fine from other computers (Windows) on my network to the same addresses, so the remote side is functioning, and there have been no changes on the remote side.
The error message is "The L2TP-VPN server did not respond. Try reconnecting. If the problem continues, verify your settings and contact your Administrator." The Console messages indicate the server does in fact respond, but there is a problem with Phase 1 IKE. Message lines are pasted here with the IP addresses masked (the addresses are correct though).
10/12/13 5:33:39.340 PM configd[18]: SCNC: start, triggered by SystemUIServer, type L2TP, status 0
10/12/13 5:33:39.360 PM pppd[2104]: pppd 2.4.2 (Apple version 596.15.2) started by admin, uid 503
10/12/13 5:33:39.363 PM pppd[2104]: L2TP connecting to server '999.999.999.999' (999.999.999.999)...
10/12/13 5:33:39.363 PM pppd[2104]: IPSec connection started
10/12/13 5:33:39.379 PM racoon[2105]: Connecting.
10/12/13 5:33:39.380 PM racoon[2105]: IPSec Phase1 started (Initiated by me).
10/12/13 5:33:39.380 PM racoon[2105]: IKE Packet: transmit success. (Initiator, Main-Mode message 1).
10/12/13 5:33:39.465 PM racoon[2105]: IKE Packet: receive success. (Initiator, Main-Mode message 2).
10/12/13 5:33:39.469 PM racoon[2105]: IKE Packet: transmit success. (Initiator, Main-Mode message 3).
10/12/13 5:33:39.583 PM racoon[2105]: IKE Packet: receive success. (Initiator, Main-Mode message 4).
10/12/13 5:33:39.588 PM racoon[2105]: IKE Packet: transmit success. (Initiator, Main-Mode message 5).
10/12/13 5:33:42.671 PM racoon[2105]: IKE Packet: transmit success. (Phase1 Retransmit).
10/12/13 5:33:45.754 PM racoon[2105]: IKE Packet: transmit success. (Phase1 Retransmit).
10/12/13 5:33:45.760 PM racoon[2105]: Received retransmitted packet from 999.999.999.999[500].
10/12/13 5:33:48.839 PM racoon[2105]: IKE Packet: transmit success. (Phase1 Retransmit).
10/12/13 5:33:57.752 PM racoon[2105]: Received retransmitted packet from 999.999.999.999[500].
10/12/13 5:34:00.832 PM racoon[2105]: IKE Packet: transmit success. (Phase1 Retransmit).
10/12/13 5:34:09.465 PM pppd[2104]: IPSec connection failed
10/12/13 5:34:09.466 PM racoon[2105]: IPSec disconnecting from server 999.999.999.999
About the configuration -- the apple client is using preshared key with ppp user/password auth. The user/password and psk all work in other clients, have re-entered them many times, have deleted then recreated the connection in Network Preferences. Have restarted the racoon service, and even rebooted several times.
Googled around and found a number of reports of similar problem after upgrade to Lion or Mountain Lion, haven't found anything that works so far. Have disabled my antivirus, have rebooted network router, have changed access control in Keychain Access to allow access from all applications. Can't change the remote side configuration because of other users, need to find a way to solve this on my client side. I do have backups that would allow me to roll back to Snow Leopard, but does anyone have any other solution, would like to have a better alternative. Appreciate any/all suggestions, thanks.Thanks again, good point. I wasn't doing this on first few tries but eventually realized I needed to clean up Keychain Access because of all the duplicates I created (orphans) so yes I did delete connection and corresponding keychains then recreate then change access. Along the way I noticed that every time I later applied a change to an existing connection setting I had to return to Keychain Access and change the access control settings again, they revert back to 'confirm' from 'all access' at each change. So even if it worked for me I realize it isn't a permanent fix.
And iCloud is 'inactive', so I guess Back to My Mac is disabled too, I don't know that app but assume so since it needs iCloud. Is there a better way to be sure it can't interfere? I do think I'm getting some phase 1 traffic out and back to the remote server evidenced by the console log, so seems the ports are not being blocked.
Maybe you are looking for
-
Error while importing music in iMovie 09 from iTunes 09
Dear All, I need you help to solve a problem that drives me crazy. I have been working on a new projects for countless hours and had a lot of fun so far. This morning I updated the iTunes software and since then adding music seems impossible. The "+"
-
Constant Kernel Panic & disk repair - can I fix, or off to genius bar?
Hi - hope someone can help… (and apologies in advance if i do this wrong - first time!) In the last week I noticed most mornings that my macbook air had restarted - (once i did some googling I understood) the reports showed that these were kernel pan
-
How do I recover playlist or at a minimum purchased music/apps on itunes?
-
Flash Builder 4 profiler doesn't seem to work with Flash Player 10.0
Hi, I've been trying to get the profiler to work with Flash Builder 4, but when trying to profile on Flash Player 10.1, 11 or 11.1, Flash Builder doesn't connect to the profiled SWF. Changing my Flash Player to an old, debug version of 10.0.45 works
-
"An Extended Memory Manager is Already Installed. XMS Driver Not Installed"
I was having problems w/ itunes recognizing my new ipod, so I followed the suggestion from Apple, and deleted itunes and my previously installed ipod software (following the procedure step by step). I then attemped to reinstall itunes. I get NOWHERE!