2013年8月14日水曜日

Fatal Error (Java Runtime Environment) starting Install of Oracle WebLogic Server

■Fatal Error (Java Runtime Environment) starting Installof Oracle WebLogic Server
Error info:
-------------------------------
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fe9fddae3bf, pid=19925, tid=140642941011712
#
# JRE version: 7.0_06-b24
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.2-b09 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x7273bf]  objArrayKlass::oop_follow_contents(ParCompactionManager*, oopDesc*)+0x14f
#
# Core dump written. Default location: /home/oracle/stage6/user_projects/domains/base_domain/core or core.19925
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#
---------------  T H R E A D  ---------------
Current thread (0x00007fe9f8019800):  GCTaskThread [stack: 0x00007fe9fc7a0000,0x00007fe9fc8a1000] [id=19927]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=128 (), si_addr=0x0000000000000000

Registers:
RAX=0x00007fe9f3000000, RBX=0x00007fe9fe380240, RCX=0x0000000000000004, RDX=0x007fffffffa00000
RSP=0x00007fe9fc89f920, RBP=0x00007fe9fc89f990, RSI=0x0000000000000000, RDI=0x0000000000000000
R8 =0x0000000000000010, R9 =0x000000000002894b, R10=0x0000000000000004, R11=0x00007fe9fe37bbc0
R12=0x00000000e894be50, R13=0x0000000000000020, R14=0x0000000000000004, R15=0x00007fe9f808e5b0
RIP=0x00007fe9fddae3bf, EFLAGS=0x0000000000010202, CSGSFS=0x0000000000000033, ERR=0x0000000000000000
  TRAPNO=0x000000000000000d
----------------------------------------------
This means that the JVM process has tried to access a memory position the OS has not given access to.
Workaround:
1.set the following environment property on active shell.
open a bash terminal and type in:
$export LD_BIND_NOW=1
2.Re-install wls.
$JAVA_HOME/bin ./java -jar wls1036_generic.jar

■This same issue also occurs on HP-UX PA-RISC 11.31.
Platform: HPUX
-------------------------------------------
If the installer for Oracle WebLogic Server 12.1.2 is started using the java -jar wls1211_generic.jar command in GUI mode with a 32-bit JDK, the installation fails at the end of the installation process. This issue occurs on HP-UX PA-RISC 11.31 only.

The installer shows the following error:
# A fatal error has been detected by the Java Runtime Environment:

#  SIGSEGV (11) at pc=ca19ffa8, pid=20644, tid=21

# JRE version: 6.0
# Java VM: Java HotSpot(TM) Server VM (17.1-b03-jre1.6.0.09-rc1 PA2.0
(aCC_AP) mixed mode hp-ux-pa-risc )
# Problematic frame:
# V  [libjvm.sl+0x521b7848]
#  Please report this error to HP customer support.
-------------------------------
Workaround
Use one of the following workarounds.
1.Use the java -Dspace.detection=false -jar wls1211_generic.jar command to install Oracle WebLogic Server 12.1.1 in GUI mode.
2.Use java -jar wls1211_generic.jar -mode=console command to install Oracle WebLogic Server 12.1.1 in console mode.

You can refer to following doc.
Pls refer to doc:http://docs.oracle.com/cd/E24329_01/doc.1211/e26593/issues.htm 
Section:
Installation of Oracle WebLogic Server 12.1.1 on HP-UX PA-RISC 11.31 Fails
in GUI Mode

BTW:
WebLogic Serverに関する確認済み及び解決済みの問題リンク
http://otndnld.oracle.co.jp/document/products/wls/docs90/issues/known_resolved.html


2013年8月6日火曜日

Oracle:This listener supports no services

#lsnrctl start
The listener supports no services
The command completed successfully

Error:
oracle ORA-12514:TNS:listener does not currently know of service requested in connect descriptor

Possible solution1:
$sqlplus / as sysdba
SQL>show parameter service_names
SQL>alter system register;
$lsnrctl status

Possible solution2:
listener.ora
Add following:
SID_LIST_LISTENER =
(SID_LIST =
  (SID_DESC =
  (GLOBAL_DBNAME = globe)
  (SID_NAME = globe)
  )
)

Possible solution3:
Oracle Net Manager
Listeners->Database Services configure SID,ORACLE_HOME

[root@localhost oracle]# xhost +
[root@localhost oracle]# su - oracle
[oracle@localhost ~]$ netmgr
==================================================================
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12535: TNS:operation timed out
TNS-12560: TNS:protocol adapter error
TNS-00505: Operation timed out
   Linux Error: 110: Connection timed out
LSNRCTL>

2013年8月1日木曜日

Can't connect to X11 window server and bash: setenv: command not found

1.[oracle@cdcjpXX bin]$ ./rcu
No protocol specified
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:89)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at java.awt.Toolkit$2.run(Toolkit.java:834)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826)
at com.jgoodies.looks.LookUtils.isLowResolution(LookUtils.java:484)
at com.jgoodies.looks.LookUtils.<clinit>(LookUtils.java:249)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:135)
at oracle.sysman.assistants.rcu.ui.InteractiveRCUModel.<init>(InteractiveRCUModel.java:117)
at oracle.sysman.assistants.rcu.Rcu.execute(Rcu.java:307)
at oracle.sysman.assistants.rcu.Rcu.main(Rcu.java:363)

Pls try setting the display variable to:
export DISPLAY=localhost:0.0, but no luck.
try again:
export DISPLAY=localhost:1.0

and also try following:
[root@ds26 rick]# xhost + localhost
xhost: unable to open display ""
The code worked for me.

2.bash: setenv: command not found
[root@cdcjpXX]# more /etc/shells
/bin/sh
/bin/bash
/sbin/nologin
/bin/tcsh
/bin/csh
/bin/ksh
/usr/bin/ksh
/usr/bin/pdksh

[root@cdcjpXX]echo $SHELL
/bin/bash
[root@cdcjpXX /bin]#tcsh
[root@cdcjpXX /bin]# setenv ORACLE_SID XE

The code worked.

2013年7月28日日曜日

Authentication basic knowledge useful link

1.Basic Auth
In the context of an HTTP transaction, basic access authentication is a method for an HTTP user agent to provide a user name and password when making a request Contents.
HTTP Basic authentication (BA) implementation is the simplest technique for enforcing access controls to web resources because it doesn't require cookies,
session identifier and login pages. Rather, HTTP Basic authentication uses static, standard HTTP headers which means that no handshakes have to be done in anticipation.

Because of this, BA is frequently used where a restricted URL needs to be accessed programmatically, especially from shell scripts or batch files.
As a standard protocol, username and password for BA can be passed in URL, for example:

curl -u user:password -d "source=10001&status=api test" http://api.t.sina.com.cn/update.xml
Learn more, you can refer to:
http://en.wikipedia.org/wiki/Basic_authentication_scheme

2.Federated Authentication
A federated identity in information technology is the means of linking a person's electronic identity and attributes, stored across multiple distinct identity management systems.

Related to federated identity is single sign-on (SSO), in which a user's single authentication ticket, or token,is trusted across multiple IT systems or even organizations. SSO is a subset of federated identity management,as it relates only to authentication and is understood on the level of technical interoperability.
Federated identity is best described as:
    Two or more applications that share the same set of users.
    Two or more organizations that share the same set of users.
    Two or more organizations that share an identity provider.
    One organization trusting users from one or more other organizations to access its applications.

Learn more:
http://msdn.microsoft.com/en-us/library/ff359110.aspx
http://www.wikidata.org/wiki/Q912297#sitelinks-wikipedia
http://en.wikipedia.org/wiki/Federated_identity

3.IDP Initiated Federated Authentication
  SP Initiated Federated Authentication
IdP(ID Provider)
SP(Service Provider)



Learn more:
http://baike.baidu.com/view/6402108.htm
http://open.weibo.com/wiki/Basic_Auth
http://www.cnblogs.com/QLeelulu/archive/2009/11/22/1607898.html
http://msdn.microsoft.com/en-us/library/ff359110.aspx

2013年7月24日水曜日

SAML

Security Assertion Markup Language (SAML) is an XML standard
that allows secure web domains to exchange user authentication
and authorization data. Using SAML, an online service provider
can contact a separate online identity provider to authenticate
users who are trying to access secure content.



Japanese
http://www.atmarkit.co.jp/ait/articles/0210/02/news002.html

Chinese
http://baike.baidu.com/view/758527.htm
https://www.pingidentity.com/customers/index.cfm
http://www.cnblogs.com/zsuxiong/archive/2011/11/19/2255497.html

English
http://en.wikipedia.org/wiki/Security_Assertion_Markup_Language
SAML Single Sign-On (SSO) Service for Google Apps
https://developers.google.com/google-apps/sso/saml_reference_implementation

2013年7月23日火曜日

java: cannot execute binary file

java: cannot execute binary file
root cause:
you have a 32 bit OS that you are trying to run a 64 bit build.
If your OS was 64 bit, you would see x86_64 instead of i686.

Other information:
If you want to see OS info, you can try following command.
1.# uname -a
[oracle@cdcXXX2 bin]$ uname -a
Linux cdXXX62.##.oracle.### 2.6.32-100.28.5.el6.x86_64 #1 SMP Wed Feb 2 18:40:23 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
So,This is 64 bit OS

2.#uname -a
[oracle@cdcXXX1 bin]$ uname -a
Linux cdcjp61.cn.oracle.com 2.6.18-128.el5PAE #1 SMP Wed Dec 17 12:02:33 EST 2008 i686 i686 i386 GNU/Linux
So,This is 32 bit OS

2013年7月17日水曜日

OAuth

What is OAuth?
OAuth is an authentication protocol that allows users to approve application to act on their behalf without sharing their password.

Introducing OAuth 2.0
OAuth 1.0 was published in December 2007 and quickly become the industry standard for web-based access delegation. A minor revision (OAuth 1.0 Revision A) was published in June 2008 to fix a security hole. In April 2010, OAuth 1.0 was published as RFC 5849.
OAuth 2.0 is a completely new protocol and is not backwards compatible with previous versions. However, it retains the overall architecture and approach established by the previous versions, and the same introduction (from the Official Guide to OAuth 1.0) still very much applies.

Learn More:
English:
http://developer.eventbrite.com/doc/authentication/oauth2/
https://dev.twitter.com/docs/auth/oauth/faq
http://hueniverse.com/2010/05/introducing-oauth-2-0/
OAuth 2.0 Spec (Core/Classic) - http://tools.ietf.org/html/rfc6749
OAuth 2.0  Assertion Framework Spec - http://tools.ietf.org/html/draft-ietf-oauth-assertions-11
OAuth 2.0 JWT Assertion Profile Spec - http://tools.ietf.org/html/draft-ietf-oauth-jwt-bearer-05
JSON Web Token (JWT) Main Spec - http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-08
Javascript Object Signing & Encryption (JWT Related) - http://datatracker.ietf.org/wg/jose/

Japanese:
http://gihyo.jp/dev/feature/01/oauth/0001
http://developer.yahoo.co.jp/yconnect/
http://www.atmarkit.co.jp/fsmart/articles/oauth2/01.html
https://developers.google.com/accounts/docs/OAuth2Login?hl=ja
http://wiki.developerforce.com/page/Digging_Deeper_into_OAuth_2.0_on_Force.com
http://wiki.developerforce.com/page/JP:Digging_Deeper_into_OAuth_2.0_at_Salesforce.com
http://msdn.microsoft.com/ja-jp/library/live/hh243647.aspx


Chinese:
http://www.cnblogs.com/highend/archive/2012/07/05/oauth2_introduced.html