Can mdsys.sdo_relate return FALSE?
I have the following query:
SELECT MIN (dtczas) dtczas
FROM sd_car_location
WHERE dyza_id = 2
AND dtczas > '24-JUN-2002 11:06:48'
AND mdsys.sdo_relate(
geom,
MDSYS.SDO_GEOMETRY( 2003, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3),
MDSYS.SDO_ORDINATE_ARRAY( 3734329.56686484, 5567865.09443332,
3735261.90177227, 5568277.30732063 )
'mask=ANYINTERACT querytype=WINDOW') = 'FALSE'
while executing this query I receive:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-13207: incorrect use of the [SDO_RELATE] operator
ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 84
ORA-06512: at line 1
so, is it possible to use sdo_relate in such way? When I try "<> 'TRUE'" or "AND NOT .... = 'TRUE'" index is not used.
Thanks in advance for help.
regards
Krzysztof
It is not possible. You must use ='TRUE'.
The reason for this is related to how the operators work.
First they do an index lookup to return the data that is
likely to interact, then they do further filtering to find the
data that actually interacts. All operators use the index
in this way.
If ='FALSE' was allowed, you'd get an answer that includes
only the geometries that were likely to interact (returned from
the index query), but that didn't interact, i.e. wrong answer.
You might be able to do something like this:
select min (dtczas) from
SELECT dtczas
FROM sd_car_location
WHERE dyza_id = 2
AND dtczas > '24-JUN-2002 11:06:48
MINUS
SELECT dtczas
FROM sd_car_location
WHERE dyza_id = 2
AND dtczas > '24-JUN-2002 11:06:48'
AND mdsys.sdo_relate(
geom,
MDSYS.SDO_GEOMETRY( 2003, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3),
MDSYS.SDO_ORDINATE_ARRAY( 3734329.56686484, 5567865.09443332,
3735261.90177227, 5568277.30732063 ) ),
'mask=ANYINTERACT querytype=WINDOW') = 'TRUE');
Hope this helps,
Dan
Similar Messages
-
How can I send an email when a function returns false?
Im trying to make this code work, but i still receive an email when the function is equal to false. Can anyone assist me in finding the issue? What the program does is look for servers that has a set limit (in GB) on specific drives.
#This Program goes through all the servers and informs any level below the limit
$ErrorActionPreference = "SilentlyContinue";
$scriptpath = $MyInvocation.MyCommand.Definition
$dir = Split-Path $scriptpath
#=================Function============
Function isLow($server, $drive, $limit)
$disk = Get-WmiObject -ComputerName $server -Class Win32_LogicalDisk -Filter "DriveType = 3 and DeviceID = '$drive'";
[float]$size = $disk.Capacity;
[float]$freespace = $disk.FreeSpace;
$sizeGB = [Math]::Round($size / 1073741824, 2);
$freeSpaceGB = [Math]::Round($freespace / 1073741824, 2);
if($freeSpaceGB -lt $limit){
return $true;
else{
return $false;
#================Servers==============
#------------------###server1--------------
$server = "###server1";
$drive = "C:";
$lim = 25;
if(isLow $server $drive $lim)
$Alert += $server + " || " + $drive + " is low<br>"
$server = "###server1";
$drive = "D:";
$lim = 35;
if(isLow $server $drive $lim)
$Alert += $server + " || " + $drive + " is low<br>"
#-----------------###(more servers ect.)--------------
#================EMAIL===============
$smtpServer = "192.168.x.x"
$ReportSender = "[email protected]"
$users = "[email protected]"
$MailSubject = "ALERT!!! Low DiskSpace"
foreach($user in $users){
if($true){
Write-Host "Sending Email notification to $user"
$smtp = New-Object Net.Mail.SmtpClient($smtpServer)
$msg = New-Object Net.Mail.MailMessage
$msg.To.Add($user)
$msg.From = $ReportSender
$msg.Subject = $MailSubject
$msg.IsBodyHTML = $True
$msg.Body = $Alert
$smtp.Send($msg)
else($false){
Write-Host "No one is pass the limit"Using a CSV is good. Just load the "$servers" hash array from a CSV and the rest will work the same. The overall structure would work better if it was more like this.
Function isLow($server, $drive, $limit){
$disk = Get-WmiObject -ComputerName $server -Class Win32_LogicalDisk -Filter "DriveType = 3 and DeviceID = '$drive'"
if($disk.FreeSSpace -lt $limit){
$true
}else{
$false
$servers=@()
$servers=@{
Server="###server1"
Drive='C:'
Limit=25Gb
$servers=@{
Server="###server2"
Drive='D:'
Limit=15Gb
$servers=@{
Server="###server3"
Drive='C:'
Limit=50Gb
$results=foreach($servers in $servers){
if(isLow $server.Server $server.Drive $server.Limit){
'{0} || {1} is low<br>' -f $servers.Server,$server.Drive
if($results){
Write-Host 'Sending Email notification' -fore green
$mailprops=@{
SmtpServer='192.168.x.x'
From='[email protected]'
To=$users
Subject='ALERT!!! Low DiskSpace'
Body=$results
BodyAsHtml=$true
Send-MailMessage @mailprops
}else{
Write-Host 'No one is past the limit' -ForegroundColor green
The biggest issue is to realize that this is a computer. If you type the same thing more than once then consider that the computer can do it for you. Once you learn to think like a computer all of this becomes easier.
¯\_(ツ)_/¯ -
Bug Report: ResultSet.isLast() returns false when queries return zero rows
When calling the method isLast() on a resultset that contains zero (0) rows, false is returned. If a resultset contains no rows, isLast() should return true because returning false would indicate that there are more rows to be retrieved.
Try the following Java source:
import java.io.*;
import java.sql.*;
import java.util.*;
import oracle.jdbc.driver.*;
public class Test2 {
public static void main (String [] args) throws Exception {
Connection conn = null;
String jdbcURL = "jdbc:oracle:thin:@" +
"(DESCRIPTION=(ADDRESS=(HOST=<host computer>)"+
"(PROTOCOL=tcp)(PORT=<DB port number>))"+
"(CONNECT_DATA=(SID=<Oracle DB instance>)))";
String userId = "userid";
String password = "password";
try{
// Load the Oracle JDBC Driver and register it.
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
// *** The following statement creates a database connection object
// using the DriverManager.getConnection method. The first parameter is
// the database URL which is constructed based on the connection parameters
// specified in ConnectionParams.java.
// The URL syntax is as follows:
// "jdbc:oracle:<driver>:@<db connection string>"
// <driver>, can be 'thin' or 'oci8'
// <db connect string>, is a Net8 name-value, denoting the TNSNAMES entry
conn = DriverManager.getConnection(jdbcURL, userId, password);
} catch(SQLException ex){ //Trap SQL errors
// catch error
//conn = new OracleDriver().defaultConnection(); // Connect to Oracle 8i (8.1.7), use Oracle thin client.
PreparedStatement ps = conn.prepareStatement("select 'a' from dual where ? = ?", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); // Use any query that will return zero rows.
ps.setInt(1, 1); // Set the params so that the query returns 0 rows.
ps.setInt(2, 2);
ResultSet rs = ps.executeQuery();
System.out.println("1. Last here? " + rs.isLast());
while (rs.next()) {
// do whatever
System.out.println("2. Last here? " + rs.isLast());
ps.close();
rs.close();
EXPECTED RESULT -
1. Last here? true
2. Last here? true
ACTUAL RESULT -
1. Last here? false
2. Last here? false
This happens to me on Oracle 9.2.0.1.0.387561,
For your information, I discovered this problem from
running a query that did access an actual DB table.
Try it and let me know.I did say I was only guessing, and yes, I did try it (after I posted my reply, and before I read yours). And I did check the query plan for the queries I tried -- to verify that they were actually doing some database "gets".
In any case, the usual way that I determine whether a "ResultSet" is empty is when the very first invocation of method "next()" returns 'false'. Is that not sufficient for you?
Good Luck,
Avi. -
How do I find a word in all my document, return false if it's not in there.
Hi,
I struggle with something that should be easy, and didn't find any answer on this forum.
I have a list of word that I want to search in a 300 pages catalogue in InDesign. I'd like to know how can i:
1) Look for the word
2) Return true if it's in the document
3) Return false if it's not
FYI, the words i'm searching are product code, so if they're not in the catalogue, the product isn't in the catalogue.
Thanks a lot,
OlivierHi Oliver,
Use this,
var doc = app.documents;
app.findTextPreferences = NothingEnum.nothing;
app.changeTextPreferences = NothingEnum.nothing;
app.findTextPreferences.findWhat = "Text";
var foundtext = app.activeDocument.stories.everyItem().paragraphs.everyItem().findText();
for (var i=0;i<foundtext.length;i++){
if (foundtext[i].length != 0){
alert("True");
else{
alert("False")
app.findTextPreferences = NothingEnum.nothing;
app.changeTextPreferences = NothingEnum.nothing; -
In Javascript or PHP you can have a function that could return, for example, a string in case of success and false in case of failure.
I've noticed (in the few days I've been learning C#) that you need to define a type of value that the function will return, so you need to return that type of value but in case of failure you can't return false.
What is the best way to achieve this behavior and is there an example I can see?
Thank you in advance,
JuanJuan, be aware that returning null won't work with value types, such as an int, which can't be null. You'd have to use a nullable value type. A nullable int would be declared with a "?", such as:
int? someOtherFunction(int param)
if(something goes great)
return param * 42;
return null;
And you have to use it like this:
int? result = someOtherFunction(666);
if (result != null) // you can also use result.HasValue
// it worked, do something with the result
// if you're doing math with the result, no problem
int x = result * 2;
// but if you're assigning it to another an int, you need to use this syntax
int y = result.Value;
Before nullable value types came along, for a method that returned an int, I'd use a value of something that wouldn't normally be returned by that method to indicate failure, such as a -1.
~~Bonnie DeWitt [C# MVP]
That's something very very important to keep in mind. Can save you from a lot of headaches!
So if you have an int function and it might return NULL, if you are doing Math with the return value you can use it directly, but if you're assigning it to another variable you have to use .Value?
Thanks -
ExternalInterface.available returns false on a Mac
Hi there!
I'm triyng to get the browsers back-button to work with my
flash site. The general principle is this:
There is an index.html page containing an (not yet) hidden
Iframe and the flash movie.
The Iframe contains page A, which starts with JavaScript
calling a BACK-function on the index-page.
The BACK-function triggers an AS-function in the flash-movie
that activates its own back-button, and then changes the URL of the
Iframe to Page B. This causes a new History to be added to the
browser.
The flash movie now contains 5 frames (labeled in the middle
of the stage) and two navigation buttons: back (Terug) and forward
(Verder). Those buttons do exactly what you'd expect them to do
(prevFrame and nextFrame).
On a PC (IE) this seems to work pretty well. But on a mac
nothing seems to work propperly.
I've got a testpage at:
http://www.multimediamatters.nl/test
Here's the code I have on the first frame.
stop();
_root.terug.onRelease = function(){
prevFrame();
terugF = function(){
trace(_root._currentframe);
if (_root._currentframe > 1){
_root.terug.onRelease();
else {
_root.getURL("javascript::history.go(-2)");
import flash.external.*;
var isAvailable:Boolean = ExternalInterface.available;
var txtField2:TextField = this.createTextField("txtField",
this.getNextHighestDepth(), 300, 0, 200, 50);
txtField2.border = true;
txtField2.text = "ExternalInterface.available =
"+isAvailable.toString();
var methodName:String = "goHome";
var instance:Object = null;
var method:Function = terugF;
var wasSuccessful:Boolean =
ExternalInterface.addCallback(methodName, instance, method);
var txtField:TextField = this.createTextField("txtField",
this.getNextHighestDepth(), 0, 0, 200, 50);
txtField.border = true;
txtField.text = "ExternalInterface.addCallback =
"+wasSuccessful.toString();
Somehow the ExternalInterface doesn't seem to get loaded. Any
suggestions to solve this?
Thanks in advance.
Yours,
Andra
P.S.
The condition
if (_root._currentframe > 1){ doesn't work on a PC
either. It always calls
_root.terug.onRelease(). I can't figure out why...Woops!! I guess I wasn't paying enough attention...
On a mac using Internet Explorer, both
ExternalInterface.available and
ExternalInterface.addCallback return false. Using the back
button does reload Page A into the Iframe, but doesn't execute any
AS-functions.
Using Safari, they both return true. However, using the back
button reloads the entire index.html instead of loading Page A back
into the Iframe. This means the flash-movie is reloaded aswell, so
you're automatically back at frame 1.
Is there any way I could get this working properly?
Yours,
Andra -
Hi,
I have the following problem: I want to transfer a file from the application server to the client. I use the following code:
DECLARE
l_cache_filename VARCHAR2(150) := 'Q:\OracleReportsTemp\123.html';
l_report_desname VARCHAR2(150) := 'C:\pcedownload\456.html';
BEGIN
IF NOT webutil_file_transfer.is_as_readable(l_cache_filename)
THEN
message('error in configuration');
ELSE
IF NOT webutil_file_transfer.as_to_client_with_progress(l_report_desname, l_cache_filename, 'Transferring to '||l_report_desname, 'Transferring to '||l_report_desname)
THEN
message('error while transferring');
END IF;
END IF;
END;
The file Q:\OracleReportsTemp\123.html exists on the application server and the directory C:\pcedownload exists on the client PC.
This is the extract from webutil.cfg from the application server:
transfer.database.enabled=FALSE
transfer.appsrv.enabled=TRUE
transfer.appsrv.workAreaRoot=Q:\OracleReportsTemp
transfer.appsrv.accessControl=TRUE
transfer.appsrv.read.1=Q:\OracleReportsTemp
Although this code works fine on my local OC4J, webutil_file_transfer.as_to_client_with_progress always return FALSE on the Application Server. The function webutil_file_transfer.is_as_readable returns true on both environments. Other webutil function such as client_text_io also work fine on both environments.
Versions:
Forms 10g Release 2
Application Server 10g Release2 using OID and SSL
Webutil 1.0.6
Jinitiator 1.3.1.22Hi,
You can try as follows in your webutil.cfg file:
transfer.database.enabled=TRUE
transfer.appsrv.enabled=TRUE
transfer.appsrv.workAreaRoot=
transfer.appsrv.accessControl=FALSE
transfer.appsrv.read.1=
transfer.appsrv.write.1=
In formsweb.cfg you might have:
[webutil]
WebUtilArchive=frmwebutil.jar,jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
archive_jini=frmall_jinit.jar,frmwebutil.jar,jacob.jar
archive=frmall.jar
lookAndFeel=oracle
userid=user/pwd@mbcprod10g
width=100%
height=100%
then try with the following link:
http://localhost:8889/forms/frmservlet?config=webutil&form=<Form_Name>
Hopefully it will work.
Regards
Kausar Iqbal -
Problem with sdo_relate returning unexpected results
I am having a problem with an oracle spatial query not returning what I feel is an appropriate result.
I have a bounding box that has 6 points from a table that should be inside it. There are several hundred points total in this table. I perform the following query and oracle returns only 4 points, well 5 but we will get to that later, within the area of the search.
SQL> Select feature_id
From city_points A
where (MDSYS.SDO_RELATE(A.GEOM, mdsys.sdo_geometry(2003, 8307, NULL, mdsys.sdo_elem_info_array(1,1003,1), mdsys.sdo_ordinate_array(-101.8417,-52.8083,-23.8417,-52.8083,-23.8417,-13.8083,-101.8417,-13.8083,101.8417,-52.8083)), 'mask=ANYINTERACT querytype=join') = 'TRUE');
I used a different application to perform the same type of query. The difference is that the application does the spatial query, not oracle. Further the application gets all of the points and performs this query on the client. What the application returns is correct both visually and spatially.
Two of the points not returned in the oracle spatial query are 300km inside the bounding box. This far exceeds the .5 m tolerance used in our decimal degrees data set (SRID 8307).
I have experienced this problem on 9.2.0.1. I then patched that instance to 9.2.0.7 and duplicated the problem. I then exported the data and imported into a 10g release 1 database and again duplicated the problem. I have tried to re-index the data to no avail.
I have also tried different querytypes also yielding less than expected results.
The data looks like this:
243
SDO_GEOMETRY(2001, 8307, SDO_POINT_TYPE(-58.45, -34.6, NULL),NULL, NULL)
254
SDO_GEOMETRY(2001, 8307, SDO_POINT_TYPE(-56.18333, -34.883334, NULL), NULL, NULL)
377
SDO_GEOMETRY(2001, 8307, SDO_POINT_TYPE(-70.666671, -33.449999, NULL), NULL, NULL)
385
SDO_GEOMETRY(2001, 8307, SDO_POINT_TYPE(-68.149999, -16.5, NULL), NULL, NULL)
388
SDO_GEOMETRY(2001, 8307, SDO_POINT_TYPE(-47.916667, -15.783333, NULL), NULL, NULL)
427
SDO_GEOMETRY(2001, 8307, SDO_POINT_TYPE(-57.640066, -25.270295, NULL), NULL, NULL)
The number is the id field, the rest is the geometry.
The oracle spatial query above only returns id #s 359, 377,243,254,427
There are five returned records. The extra value is outside the bounding area. So it should not have been returned at all. It is all too strange.
I have seen this with different geometry types (points lines and area) as well.
If anyone has suggestions, I would appreciate your comments.
Thanks,
JohnJohn,,
What you are seeing is the behavior you should expect in the geodetic space.
When you have a very long line connecting from longitude -101 to -23, that line
does not follow the same latitude value.
Since these points are in southern hemisphere, the line connecting them
will curve downward (this is the great circle line).
If you really want a line connecting with constant latitude, you should
use the MBR type for the window geometry which densifies the
lines along constant latitude before passing it into relate.
SDO_GEOMETRY(2003, 8307, NULL,
sdo_elem_info_array(1,1003,3),
sdo_ordinate_array(-101.8417,-52.8083, 23.8417,-13.8083))
siva -
File.exists() returns false for existing file, help :)
Hi all,
I'm having the STRANGEST behavior... I'm working on a simple DNS management system, and before I overwrite a zone file, I want to check if it exists... but exists() is returning false even when the file exists.
Here is my code snippet:
finest( "Checking the existance of "+filename ) ;
File zoneFile = new File( filename ) ;
if ( zoneFile.exists() ) {
finest( "Zone File "+zoneFile+" already exists." ) ;
throw( new ZoneFileExistsException( fqdn ) ) ;
else {
finest( "Creating Zone File "+zoneFile ) ;
...It's producing this in the log (I cut off the timestamp parts):
Checking the existance of /opt/DNS/db.testingbutler222.com
Creating Zone File /opt/DNS/db.testingbutler222.com
but...
# ls -l /opt/DNS/db.testingbutler222.com
-rw-r--r-- 1 root other 733 Aug 27 19:23 /opt/DNS/db.testingbutler222.com
So... as you can see, the file CLEARLY exists... what the heck am I doing wrong or misunderstanding? This can't really be a bug in File, can it?
Kenny SmithHi,
Thanks for your response, but as I showed in my first post, I'm using absolute paths. My log file contains this:
Checking the existance of /opt/DNS/db.testbutler222.com...
Existance of /opt/DNS/db.testbutler222.com=false
# ls -l /opt/DNS/db.testbutler222.com
-rw-r--r-- 1 root other 695 Aug 29 12:17 /opt/DNS/db.testbutler222.com
I don't understand what is happening... I wrote a separate class that just tests the existance of a file, and that one is reporting the existance correctly.... (the source code is found in the second post above) I don't understand why my servlet code can see the file.
I have jakarta-tomcat running as root, and the file I'm checking was created by the same servlet. I've double checked permissions and such, just to make sure it wasn't that.. but it's still not working.
I even added code to create a FileReader from the file, that way if it throws a FileNotFoundException, I would know the file doesn't exist... and even though the file does exist, it throws the exception. :(
Kenny -
File.exists() returns false even when the file exists
hi,
the exists() function of java.io.File function returns false even when the file exists on the file system. why is this? i checked the path of the file which gives me the correct path, but exists returns false. can anyone help?post some of the code you�re using - then maybe I can help you out
//Anders -
How to make reader.ready() return false
reader.ready() method returned false for me when reading from
when reader is obtained from databse. eg. Clob reader.
So that can be acceptable that next call may block thats why ready() returned false.
But i want to simulate situation when reader.ready() returns false even if reader is eg. FileReader, directy reading from
existing file on local unix machine. (and this file is having content)
So can it happen? And in which cases?can you telll me those few cases for this method ?
I am interested in cases when io operations on local non empty file may lead to blocking call so that this method will return false -
I'm running into difficulties reading a response data stream from a server via HTTPS. The SSL sets up fine (I can see both the client side and server side certificate chains, and the two sides can handshake and agree on a cipher (SSL_RSA_WITH_RC4_128_SHA in this case)). I get no errors getting the output or input streams from the socket, and the GET request seems to work (no errors reported by the PrintWriter), but in.ready() returns false, and the while loop exits immediately. But I know there is data available (I can paste the printed url into Netscape and get data back). Since this should not be all that complex once the SSL session is established, I'm probably missing something silly, Can someone tell me what it is please?
Thanks
Doug
// code excerpt
// just finished printing the cipher suite, cert chains, etc
try{
out = new PrintWriter(
new BufferedWriter(
new outputStreamWriter(socket.getOutputStream() )));
} catch(Exception e) {
System.out.println("Error getting input and output streams from socket ");
System.out.println(e.getMessage());
e.printStackTrace();
throw(e);
try{ // time to submit the request and get the data
// build the URL to get
// tried constructing it here and nailing it up at declaration time - no difference
// path = "https://" + dlp.host + ":" + Integer.toString(dlp.port) + "/" +
// dlp.basePath + "?StartDate=" + longDateFmtURL.format(dlp.startDate) +
// "&EndDate=" + longDateFmtURL.format(dlp.endDate);
System.out.println("Sending request for URL" );
System.out.println(path);
out.println("GET " + path );
out.println();
out.flush();
* Make sure there were no errors
if (out.checkError()){
System.out.println("Error sending request to server");
throw(new IOException("Error sending request to server")
try{
in = new BufferedReader(
new InputStreamReader(
socket.getInputStream() ));
} catch(Exception e) {
System.out.println("Error getting input stream from socket ");
System.out.println(e.getMessage());
e.printStackTrace();
//System.exit(3);
throw(e);
if (!in.ready()) { // in.ready() keeps returning false
System.out.println("Error - socket input stream not ready for reading");
while ((inputLine = in.readLine()) != null) {
// loop over and process lines if it was ever not null
}Never mind.
The problem seems to be related to the development/debugging enviroment (Oracle JDeveloper 3.2.3), When I run things outside of that eviroment using the "plain" runtime, it works as expected (back to System.out.println() for debugging). That said, I usually find it to be a nice development/debugging enviroment for Java. -
Captivate 8: Getting this message "Unable to locate LMS's API, content may not play properly". Then I get a debug message of "44:Tue Feb 17 2015 : InIsLoaded, returning false". I also see a message in the preview pane when I view the .htm file in the project folder "This course requires JavaScript to be enabled in your browser. Please enable JavaScript, then relaunch the course." JavaScript is already enabled and I'm getting this in IE9 and Chrome 40....Has anyone else seen this?
The first part of your issue will be resolved if you load your course from an LMS. If you are not hosting your content on LMS, you can disable the reporting in your Quiz settings (Edit > Preferences > Quiz > Reporting).
Not sure about the Javascript related issues.
Sreekanth -
Dispatcher not starting "Loading: ThreadManager returned false! "
Hi,
The system was running fine for about two weeks and now the dispatcher will not start, we have upgraded the java server from windows 2003 to windows 7 and i did a system copy using the sapinst tool. This is a java only server using ABAP ume to connect.
Hers is the errors i am receiving:
SAP J2EE Engine Version 7.01 PatchLevel 75592. is starting...
Loading: LogManager ... 606 ms.
Loading: PoolManager ... 3 ms.
Loading: ThreadManager ...
Loading: ThreadManager returned false!
Kernel not loaded. System halted.
I also get this error:
[Thr 6088] * LOCATION SAP-Gateway on host Current server / sapgw00
[Thr 6088] * ERROR hostname 'Old server' unknown
[Thr 6088] *
TIME Mon Apr 18 13:12:15 2011
[Thr 6088] * RELEASE 701
[Thr 6088] * COMPONENT NI (network interface)
[Thr 6088] * VERSION 38
[Thr 6088] * RC -2
[Thr 6088] * MODULE nixxhsl.cpp
[Thr 6088] * LINE 230
[Thr 6088] * DETAIL NiHsLGetNodeAddr: hostname cached as unknown
[Thr 6088] * COUNTER 8730
[Thr 6088] *
[Thr 6088] *****************************************************************************
Any help that would be great.
Thanks
JSDear Jean,
Hope you are doing good.
Not much investigation can be done with:
Loading: ThreadManager returned false!
Kernel not loaded. System halted.
Just retrigger a server restart and then check the below logs. You will definitely find more information on the error:
/usr/sap/<SID>/work/ dev, std and jvm*
and
/usr/sap/<SID>/JC<nr>/j2ee/cluster/server0/logs/default trace (latest).
Thank you and have a nice day :).
Kind Regards,
Hemanth
SAP AGS -
ServletAuthentication.weak() makes isUserInRole() always return false
I have a problem with SSO and authentification. If I authenticate with the weak()
method(have tried alle of them) authentication works fine and it seem to be single
signed-on, but
if we call the isUserInRole() method it always return false.
If I try to "call" pages from the client the declerativ security-constraints also
works fine preventing the user from accessing the pages. It is only when we use
the forward() method that we also use isUserInRole() to check if the user is permitted
to be forwarded(). WLS 6.1 sp2 tells us that the user is never in Role, no matter
what, if we use the weak() method to authenticate.
If I switch to using a j_sec_check form to authenticate the isUserInRole() works
fine. I can't use j_sec_check as a permanent solution though, because I need to
do a lot of pre- and post- processing in the login/authenication process.
Have any of you figured out a solution to this problem? Shouldn't isUserInRole()
work the same way regardless of if you logged in using SA.weak() or a j_security_check
form?Hi ,
If I switch to using a j_sec_check form to authenticate the isUserInRole()works
fine. I can't use j_sec_check as a permanent solution though, because Ineed to
do a lot of pre- and post- processing in the login/authenication process.You can use the j_security_check and still do the pre and post processing as
you want.
You have to following code,
package examples.servlets;
import java.io.PrintStream;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import weblogic.servlet.security.AuthFilter;
public class AuthFilterImpl extends AuthFilter
public AuthFilterImpl()
System.out.println("New AuthFilterImpl has been created.");
public void doPreAuth(ServletRequest servletrequest, ServletResponse
servletresponse)
System.out.println("AuthFilterImpl.doPreAuth has been called.");
System.out.println("Password is " +
servletrequest.getParameter("j_password"));
public boolean doSuccessAuth(ServletRequest servletrequest,
ServletResponse servletresponse)
System.out.println("AuthFilterImpl.doSuccessAuth has been called.");
return true;
public void doFailAuth(ServletRequest servletrequest, ServletResponse
servletresponse)
System.out.println("AuthFilterImpl.doFailAuth has been called.");
In your weblogic.xml have this entry,
<weblogic-web-app>
<auth-filter>
examples.servlets.AuthFilterImpl
</auth-filter>
</weblogic-web-app>
I am not sure about problem with SA.weak().
-utpal
"Morten" <[email protected]> wrote in message
news:[email protected]...
>
I have a problem with SSO and authentification. If I authenticate with theweak()
method(have tried alle of them) authentication works fine and it seem tobe single
signed-on, but
if we call the isUserInRole() method it always return false.
If I try to "call" pages from the client the declerativsecurity-constraints also
works fine preventing the user from accessing the pages. It is only whenwe use
the forward() method that we also use isUserInRole() to check if the useris permitted
to be forwarded(). WLS 6.1 sp2 tells us that the user is never in Role, nomatter
what, if we use the weak() method to authenticate.
If I switch to using a j_sec_check form to authenticate the isUserInRole()works
fine. I can't use j_sec_check as a permanent solution though, because Ineed to
do a lot of pre- and post- processing in the login/authenication process.
Have any of you figured out a solution to this problem? Shouldn'tisUserInRole()
work the same way regardless of if you logged in using SA.weak() or aj_security_check
form?
Maybe you are looking for
-
Will MDM for windows phone 8.0 support for windows phone 8.1
We have successfully implemented MDM solution for windows phone 8.0 . Enrolment and polling working properly. Now devices will come for windows phone 8.1 .Will this existing system work for 8.1 also? Or is there any changes need to be done?
-
Macbook not recognizing mini dvi to dvi adapter
Hi, I have a 2011 macbook pro, i have been using the mini dvi to dvi adapter to connect to a dvi to hdmi cable into my tv. It has worked for the past 6 months since i have owned my mac but just recently nothing happens when i plug the adapter into my
-
ITunes freezes whenever I try to open it
I installed the latest version of iTunes (7.3.1) and QuickTime. According to Apple Software Update, both of these programs are up-to-date. However, iTunes freezes when I try to listen to my music library by clicking on a song. I have already uninstal
-
Matching Raster and Vector RGB color in InDesign CS3.
We print on a Durst Lambda RGB imaging device to photographic paper. All color management is done as an early bind (raster files are converted to the printer's color space and vector colors are chosen from a palette database). So basically the files
-
How can i remove firefox completely on osx?
I had some trouble with add-ons so I wanted to completely remove Firefox and start with a freshly downloaded version. So I manually deleted the files as described on this page: http://kb.mozillazine.org/Uninstalling_Firefox#Removing_user_profile_data