Problem with AIX 5.1 JDK1.4 WLS 8.1.2

I am getting "No LoginModules configured " after upgrading to WLS 8. My application can work under WLS 7 (AIX and NT) and WLS 8 ( NT only ). I have tried to force my own security policy but it still does not work. Attached with this email are all the related config files.
When using a sample jaas client, I am able to get my own login module to be loaded. So, I am sure it is not a JDK issue.
================================= Start WebLogic Command =================================
/usr/java14/jre/bin/java -Xms1024m -Xmx1024m -Djava.security.auth.login.config==/usr/java14/jre/lib/security/jaas.config -Xrunoii:filter=/tool/optimizeit/OptimizeitSuiteDemo/filters/WebLogic.oif -Xbootclasspath/a:/tool/optimizeit/OptimizeitSuiteDemo/lib/oibcp.jar -Dweblogic.Name=myserver -Dweblogic.ProductionModeEnabled=false -Djava.security.policy==/usr/java14/jre/lib/security/java.policy -Djava.security.manager weblogic.Server
==================================== WebLogic Server Log ==================================
policy weblogic.Server
Optimizeit Profiler 5.0 build 030204 Audit System.
(c) 1997-2002 Borland.
Port is 1472
OptimizeIt generic Audit System. [IBM VM detected]
<Mar 11, 2004 6:13:57 PM GMT+08:00> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Classic VM Version 1.4.1 from IBM Corporation>
<Mar 11, 2004 6:14:00 PM GMT+08:00> <Info> <Configuration Management> <BEA-150016> <This server is being started as the administration server.>
<Mar 11, 2004 6:14:00 PM GMT+08:00> <Info> <Management> <BEA-141107> <Version: WebLogic Server 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284
WebLogic XMLX Module 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284 >
<Mar 11, 2004 6:14:03 PM GMT+08:00> <Notice> <Management> <BEA-140005> <Loading domain configuration from configuration repository at /usr/local/bea812/user_projects/domains/cdmperftest2domain/./config.xml.>
<Mar 11, 2004 6:14:24 PM GMT+08:00> <Notice> <Log Management> <BEA-170019> <The server log file /usr/local/bea812/user_projects/domains/cdmperftest2domain/myserver/myserver.log is opened. All server side log events will be written to this file.>
<Mar 11, 2004 6:14:39 PM GMT+08:00> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<Mar 11, 2004 6:14:40 PM GMT+08:00> <Notice> <WebLogicServer> <BEA-000327> <Starting WebLogic Admin Server "myserver" for domain "cdmperftest2domain">
<Mar 11, 2004 6:15:06 PM GMT+08:00> <Warning> <HTTP> <BEA-101296> <Unable to load the default compiler class "com.sun.tools.javac.Main". Using the default javac compiler to compile JSPs.>
<Mar 11, 2004 6:15:57 PM GMT+08:00> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "myserver" for domain "cdmperftest2domain" running in Development Mode>
<Mar 11, 2004 6:15:57 PM GMT+08:00> <Notice> <WebLogicServer> <BEA-000355> <Thread "ListenThread.Default" listening on port 7023, ip address *.*>
<Mar 11, 2004 6:15:57 PM GMT+08:00> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
javax.security.auth.login.LoginException: No LoginModules configured for LoginModule
at javax.security.auth.login.LoginContext.init(LoginContext.java:210)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:425)
at com.firsttech.common.framework.security.SessionLoginContext.<init>(Unknown Source)
at com.firsttech.common.framework.security.AuthenticationFilter.doFilter(AuthenticationFilter.java:103)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:28)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6360)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java(Compiled Code))
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java(Compiled Code))
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3650)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2589)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
# @(#)src/security/sov/config/java.security, security, hs141, 20030503 1.6.3.2
# ===========================================================================
# Licensed Materials - Property of IBM
# "Restricted Materials of IBM"
# IBM SDK, Java(tm) 2 Technology Edition, v1.4.1
# (C) Copyright IBM Corp. 1998, 2002. All Rights Reserved
# ===========================================================================
# This is the "master security properties file".
# In this file, various security properties are set for use by
# java.security classes. This is where users can statically register
# Cryptography Package Providers ("providers" for short). The term
# "provider" refers to a package or set of packages that supply a
# concrete implementation of a subset of the cryptography aspects of
# the Java Security API. A provider may, for example, implement one or
# more digital signature algorithms or message digest algorithms.
# Each provider must implement a subclass of the Provider class.
# To register a provider in this master security properties file,
# specify the Provider subclass name and priority in the format
# security.provider.<n>=<className>
# This declares a provider, and specifies its preference
# order n. The preference order is the order in which providers are
# searched for requested algorithms (when no specific provider is
# requested). The order is 1-based; 1 is the most preferred, followed
# by 2, and so on.
# <className> must specify the subclass of the Provider class whose
# constructor sets the values of various properties that are required
# for the Java Security API to look up the algorithms or other
# facilities implemented by the provider.
# There must be at least one provider specification in java.security.
# The number 1 is used for the default provider.
# Note: Statically registered Provider subclasses are instantiated
# when the system is initialized. Providers can be dynamically
# registered instead by calls to either the addProvider or
# insertProviderAt method in the Security class.
# List of providers and their preference orders (see above):
security.provider.1=com.ibm.jsse.IBMJSSEProvider
security.provider.2=com.ibm.crypto.provider.IBMJCE
security.provider.3=com.ibm.security.jgss.IBMJGSSProvider
security.provider.4=com.ibm.security.cert.IBMCertPath
# The entropy gathering device is described as a URL and can
# also be specified with the property "java.security.egd". For example,
# -Djava.security.egd=file:/dev/urandom
# Specifying this property will override the securerandom.source setting.
# Class to instantiate as the javax.security.auth.login.Configuration
# provider.
login.configuration.provider=com.ibm.security.auth.login.ConfigFile
#login.configuration.provider=
# Default login configuration file
login.config.url.1=file:${java.home}/lib/security/jaas.config
# Class to instantiate as the system Policy. This is the name of the class
# that will be used as the Policy object.
policy.provider=sun.security.provider.PolicyFile
# The default is to have a single system-wide policy file,
# and a policy file in the user's home directory.
policy.url.1=file:${java.home}/lib/security/java.policy
policy.url.2=file:${java.home}/lib/security/java.pol
policy.url.3=file:///${user.home}/.java.policy
# whether or not we expand properties in the policy file
# if this is set to false, properties (${...}) will not be expanded in policy
# files.
policy.expandProperties=true
# whether or not we allow an extra policy to be passed on the command line
# with -Djava.security.policy=somefile. Comment out this line to disable
# this feature.
policy.allowSystemProperty=true
# whether or not we look into the IdentityScope for trusted Identities
# when encountering a 1.1 signed JAR file. If the identity is found
# and is trusted, we grant it AllPermission.
policy.ignoreIdentityScope=false
# Default keystore type.
keystore.type=jks
# Class to instantiate as the system scope:
system.scope=sun.security.provider.IdentityDatabase
# List of comma-separated packages that start with or equal this string
# will cause a security exception to be thrown when
# passed to checkPackageAccess unless the
# corresponding RuntimePermission ("accessClassInPackage."+package) has
# been granted.
package.access=sun.
# List of comma-separated packages that start with or equal this string
# will cause a security exception to be thrown when
# passed to checkPackageDefinition unless the
# corresponding RuntimePermission ("defineClassInPackage."+package) has
# been granted.
# by default, no packages are restricted for definition, and none of
# the class loaders supplied with the JDK call checkPackageDefinition.
#package.definition=
# Determines whether this properties file can be appended to
# or overridden on the command line via -Djava.security.properties
security.overridePropertiesFile=true
# Determines the default key and trust manager factory algorithms for
# the javax.net.ssl package.
ssl.KeyManagerFactory.algorithm=IbmX509
ssl.TrustManagerFactory.algorithm=IbmX509
# Determines the default SSLSocketFactory and SSLServerSocketFactory
# provider implementations for the javax.net.ssl package. If, due to
# export and/or import regulations, the providers are not allowed to be
# replaced, changing these values will produce non-functional
# SocketFactory or ServerSocketFactory implementations.
#ssl.SocketFactory.provider=
#ssl.ServerSocketFactory.provider=
# The Java-level namelookup cache policy for successful lookups:
# any negative value: caching forever
# any positive value: the number of seconds to cache an address for
# zero: do not cache
# default value is forever (FOREVER). For security reasons, this
# caching is made forever when a security manager is set.
# NOTE: setting this to anything other than the default value can have
# serious security implications. Do not set it unless
# you are sure you are not exposed to DNS spoofing attack.
#networkaddress.cache.ttl=-1
# The Java-level namelookup cache policy for failed lookups:
# any negative value: cache forever
# any positive value: the number of seconds to cache negative lookup results
# zero: do not cache
# In some Microsoft Windows networking environments that employ
# the WINS name service in addition to DNS, name service lookups
# that fail may take a noticeably long time to return (approx. 5 seconds).
# For this reason the default caching policy is to maintain these
# results for 10 seconds.
networkaddress.cache.negative.ttl=10
LoginModule {
com.firsttech.common.framework.security.RdbmsLoginModule required debug=false;
// @(#)src/security/sov/config/java.policy, security, hs141, 20030503 1.2.3.2
// ===========================================================================
// Licensed Materials - Property of IBM
// "Restricted Materials of IBM"
// IBM SDK, Java(tm) 2 Technology Edition, v1.4.1
// (C) Copyright IBM Corp. 1998, 2002. All Rights Reserved
// ===========================================================================
// Standard extensions get all permissions by default
grant codeBase "file:${java.home}/lib/ext/*" {
     permission java.security.AllPermission;
grant codeBase "file:/*" {
permission java.security.AllPermission;
// default permissions granted to all domains
grant {
     // Allows any thread to stop itself using the java.lang.Thread.stop()
     // method that takes no argument.
     // Note that this permission is granted by default only to remain
     // backwards compatible.
     // It is strongly recommended that you either remove this permission
     // from this policy file or further restrict it to code sources
     // that you specify, because Thread.stop() is potentially unsafe.
     // See "http://java.sun.com/notes" for more information.
     permission java.lang.RuntimePermission "stopThread";
     // allows anyone to listen on un-privileged ports
     permission java.net.SocketPermission "localhost:1024-", "listen";
     // "standard" properies that can be read by anyone
     permission java.util.PropertyPermission "java.version", "read";
     permission java.util.PropertyPermission "java.vendor", "read";
     permission java.util.PropertyPermission "java.vendor.url", "read";
     permission java.util.PropertyPermission "java.class.version", "read";
     permission java.util.PropertyPermission "os.name", "read";
     permission java.util.PropertyPermission "os.version", "read";
     permission java.util.PropertyPermission "os.arch", "read";
     permission java.util.PropertyPermission "file.separator", "read";
     permission java.util.PropertyPermission "path.separator", "read";
     permission java.util.PropertyPermission "line.separator", "read";
     permission java.util.PropertyPermission "java.specification.version", "read";
     permission java.util.PropertyPermission "java.specification.vendor", "read";
     permission java.util.PropertyPermission "java.specification.name", "read";
     permission java.util.PropertyPermission "java.vm.specification.version", "read";
     permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
     permission java.util.PropertyPermission "java.vm.specification.name", "read";
     permission java.util.PropertyPermission "java.vm.version", "read";
     permission java.util.PropertyPermission "java.vm.vendor", "read";
     permission java.util.PropertyPermission "java.vm.name", "read";
permission java.util.PropertyPermission "weblogic.security.SubjectManager", "read";
permission java.util.PropertyPermission "AUDIT", "read";
permission java.util.PropertyPermission "*", "read,write";
permission java.io.FilePermission "*", "read";
permission java.security.AllPermission;

Did you try this:
http://forum.java.sun.com/thread.jsp?thread=434718&forum=60&message=1964421

Similar Messages

  • Strange problem with AIX server and windows clients

    I am having a real bizzare problem with WLS 7.0.1 running on AIX 5.1 and
    clients on windows. We have J2SE Swing application as a client.
    If the client is w2k or XP, the first client gets good response. If I start
    another client the second client is horribly slow (2 sec vs 16 sec). Even if
    I kill the first client the second client continues to be slow. If I have 2
    clients open together, the first one continues giving 2 sec response while
    the second one continues with 16 sec. For that matter if I start another
    client after shutting down first one I get slow (16 sec) response.
    If the client is NT client I always get good and consistent response from
    the server. Irrespective of how many client I have on the NT machine, I keep
    getting good response. NT and W2K laptops are seating right next to each
    other on the same n/w and infact the NT is a much slower and lessor memory
    machine than W2K.
    We did similar tests keeping server on Solaris or NT server or W2K server,
    and the clients "behave" normally i.e I get consistent repsponse time (it
    may be slow or fast, but it is consistent and is consistent b/w NT and W2K).
    We even tried putting my laptop on the same network as the AIX server, but
    it did not help. Unfortunately some of our clients will be using AIX and
    W2K.
    HELP!!!!

    "Cameron Purdy" <[email protected]> wrote in message
    news:[email protected]..
    Sounds like a reverse DNS lookup or similar network timeout.Thanks for the suggestion, but then why would the first client on w2k or XP
    get a better performance and the subsequent clients get worse performance?
    >
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com/coherence.jsp
    Tangosol Coherence: Clustered Replicated Cache for Weblogic
    "vinay moharil" <[email protected]> wrote in message
    news:[email protected]..
    I am having a real bizzare problem with WLS 7.0.1 running on AIX 5.1 and
    clients on windows. We have J2SE Swing application as a client.
    If the client is w2k or XP, the first client gets good response. If Istart
    another client the second client is horribly slow (2 sec vs 16 sec).
    Even
    if
    I kill the first client the second client continues to be slow. If I
    have
    2
    clients open together, the first one continues giving 2 sec response
    while
    the second one continues with 16 sec. For that matter if I start another
    client after shutting down first one I get slow (16 sec) response.
    If the client is NT client I always get good and consistent responsefrom
    the server. Irrespective of how many client I have on the NT machine, Ikeep
    getting good response. NT and W2K laptops are seating right next to each
    other on the same n/w and infact the NT is a much slower and lessor
    memory
    machine than W2K.
    We did similar tests keeping server on Solaris or NT server or W2Kserver,
    and the clients "behave" normally i.e I get consistent repsponse time(it
    may be slow or fast, but it is consistent and is consistent b/w NT andW2K).
    We even tried putting my laptop on the same network as the AIX server,
    but
    it did not help. Unfortunately some of our clients will be using AIX and
    W2K.
    HELP!!!!

  • Weird Terminal problem with AIX

    Hi,
    I have kind of an odd problem with the Terminal.app that I hope someone can assist me in figuring out.
    I'm connecting to an AIX 5.3 server and the top portion of the window is always "cut off". It's there, it's just one screen up in the buffer and I can't figure out why. I can connect with iTerm and things display appropriately.
    Below is a link to a side by side picture of Terminal.app (left) and iTerm (right). If I scroll up in the Terminal.app buffer, I can see the missing lines from the top of the screen.
    http://picasaweb.google.com/andy.black10/Misc#5407855064094337554
    Thanks,
    Andy

    Minor point: would you please fill in your Forum profile information, at least the Mac OS X operating system version.
    I'm currently using Leopard and I can reproduce this problem in Terminal vs iTerm. I used your script output (thank you) in order to generate the escape sequences.
    BY THE WAY, if the script output contains any sensitive login info, you might want to change your password on the Pharamcy OSU system
    It looks like there is a Terminal problem handling Scrolling Regions as set by <esc>[1;24r. It looks like <esc>[0J is not erasing from the current cursor position to the end of the display, but rather it starts the erase above the current cursor position. The erase behavior without a scrolling region appears better, but not perfect.
    I would encourage you to file a bug with Apple at either:
    <http://www.apple.com/feedback/macosx.html>
    or
    <http://bugreporter.apple.com>
    Free ADC (Apple Developer Connection) account needed for BugReporter
    The BugReporter would be better.
    If you want, I have a little script that can be used to demonstrate the problem
    #!/usr/bin/env bash
    echo -e "e[1;24re[He[0Je[He[0Je[?6he[1;24re[He[0Jc"
    for j in {1..3}
    do
    echo BEFORE should remain on screen $j $j $j $j $j
    done
    for j in {4..23}
    do
    echo FILLER should be erased $j $j $j $j $j
    done
    echo -e "e[4;24re[He[0Jc"
    for j in {4..23} # our next command prompt will be 24th line
    do
    echo AFTER should remain on screen $j $j $j $j $j
    done
    Here is example output from Terminal:
    BEFORE should remain on screen 1 1 1 1 1
    AFTER should remain on screen 4 4 4 4 4
    AFTER should remain on screen 5 5 5 5 5
    AFTER should remain on screen 6 6 6 6 6
    AFTER should remain on screen 7 7 7 7 7
    AFTER should remain on screen 8 8 8 8 8
    AFTER should remain on screen 9 9 9 9 9
    AFTER should remain on screen 10 10 10 10 10
    AFTER should remain on screen 11 11 11 11 11
    AFTER should remain on screen 12 12 12 12 12
    AFTER should remain on screen 13 13 13 13 13
    AFTER should remain on screen 14 14 14 14 14
    AFTER should remain on screen 15 15 15 15 15
    AFTER should remain on screen 16 16 16 16 16
    AFTER should remain on screen 17 17 17 17 17
    AFTER should remain on screen 18 18 18 18 18
    AFTER should remain on screen 19 19 19 19 19
    AFTER should remain on screen 20 20 20 20 20
    AFTER should remain on screen 21 21 21 21 21
    AFTER should remain on screen 22 22 22 22 22
    AFTER should remain on screen 23 23 23 23 23
    and here is example output from iTerm:
    BEFORE should remain on screen 1 1 1 1 1
    BEFORE should remain on screen 2 2 2 2 2
    BEFORE should remain on screen 3 3 3 3 3
    AFTER should remain on screen 4 4 4 4 4
    AFTER should remain on screen 5 5 5 5 5
    AFTER should remain on screen 6 6 6 6 6
    AFTER should remain on screen 7 7 7 7 7
    AFTER should remain on screen 8 8 8 8 8
    AFTER should remain on screen 9 9 9 9 9
    AFTER should remain on screen 10 10 10 10 10
    AFTER should remain on screen 11 11 11 11 11
    AFTER should remain on screen 12 12 12 12 12
    AFTER should remain on screen 13 13 13 13 13
    AFTER should remain on screen 14 14 14 14 14
    AFTER should remain on screen 15 15 15 15 15
    AFTER should remain on screen 16 16 16 16 16
    AFTER should remain on screen 17 17 17 17 17
    AFTER should remain on screen 18 18 18 18 18
    AFTER should remain on screen 19 19 19 19 19
    AFTER should remain on screen 20 20 20 20 20
    AFTER should remain on screen 21 21 21 21 21
    AFTER should remain on screen 22 22 22 22 22
    AFTER should remain on screen 23 23 23 23 23

  • Having problems with new WebLogic MS SQL driver WLS 8.1

    Hi,
    We've recently migrated our application from WLS 6.1 to WLS 8.1. We use an MS SQL database. In 6.1 we used the (now deprecated) weblogic.jdbc.mssqlserver4.Driver driver. In 8.1 we now use the new weblogic.jdbc.sqlserver.SQLServerDriver driver. We now are seeing NullPointerExceptions with the new driver that we never saw when running in 6.1 (with the old driver). The exception is occuring at the driver level. I'll paste some of the stack traces below but here is a quick synopsis of our usage pattern:
    -standard get-use-close pattern on the connection for each request (connection is closed in finally block).
    -pool size: min 1, max 7, increment 5
    -test on reserver enabled
    -we are simply reading data (no updates)
    -we use a single thread that hits the database so there is only ever one active application thread hitting the DB.
    -we are using a stored proc.
    -we setTimeout on the statement (initial testing seems to indicate that query timeout seems to be at the root of the problem)
    The problem seems to occur when statement timeouts occur. I can recreate the problem by setting the statement timeout to 1 sec and throwing a lot data at the DB. What seems to occur is a query hits the timeout and a SocketException is thrown, subsequent queries then throw a NullPointer in the driver layer. Again, this is the behavior under WLS 8.1 with the new weblogic.jdbc.sqlserver.SQLServerDriver driver. If I use the old driver (weblogic.jdbc.mssqlserver4.Driver) under WLS 8.1 all I get is the SocketException (which is what I want). This application ran under WLS 6.1 with the old driver processing millions of queries without any problems.
    We are wondering:
    (1) Is this a known problem?
    (2) Is there a recommended workaround?
    Cheers, and as always thanks in advance for any help.
    Stack traces follow.
    Thank,
    Mich
    Here are some failure traces from the WLS 8.1 new driver:
    java.sql.SQLException: [BEA][SQLServer JDBC Driver]Execution timeout expired.
         at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
         at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
         at weblogic.jdbc.base.BaseStatement.postProcessExceptionFromCommonExecute(Unknown Source)
         at weblogic.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
         at weblogic.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source)
         at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:124)
         at com.our.QueryHandler.execute(QueryHandler.java:79)
    THEN WHEN A SUBSEQUENT QUERY IS MADE:
    java.lang.NullPointerException
         at weblogic.jdbc.sqlserver.tds.TDSRequest.switchColumnDescriptions(Unknown Source)
         at weblogic.jdbc.sqlserver.tds.TDSRequest.processRow(Unknown Source)
         at weblogic.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
         at weblogic.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source)
         at weblogic.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
         at weblogic.jdbc.sqlserver.tds.TDSRPCNonCursorExecuteRequest.submitPrepare(Unknown Source)
         at weblogic.jdbc.sqlserver.tds.TDSRPCExecuteRequest.doPrepExec(Unknown Source)
         at weblogic.jdbc.sqlserver.tds.TDSRPCExecuteRequest.execute(Unknown Source)
         at weblogic.jdbc.sqlserver.SQLServerImplStatement.execute(Unknown Source)
         at weblogic.jdbc.base.BaseStatement.commonExecute(Unknown Source)
         at weblogic.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
         at weblogic.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source)
         at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:124)
         at com.our.QueryHandler.execute(QueryHandler.java:79)
    Just to be complete here is the stacktrace generated by a timeout using the old driver on WLS 8.1 (again, this one behaves as expected):
    weblogic.jdbc.mssqlserver4.TdsException: I/O exception while talking to the server, java.net.SocketTimeoutException: Read timed out
         at weblogic.jdbc.mssqlserver4.TdsStatement.getMoreResults(TdsStatement.java:813)
         at weblogic.jdbc.mssqlserver4.TdsStatement.execute(TdsStatement.java:210)
         at weblogic.jdbc.mssqlserver4.TdsStatement.executeQuery(TdsStatement.java:54)
         at weblogic.jdbc.mssqlserver4.TdsStatement.executeQuery(TdsStatement.java:1424)
         at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:124)

    Michel Crichton wrote:
    Hi,
    Thanks for the prompt reply. In answer to your questions:
    What I would like to know is the exact code/sequence that causes the subsequent exception. See the sequence of calls at the end of this reply.
    Is this in the same thread in the very next call?
    I replicated the problem by going through the Web container (5 clients) therefore WebLogic threads are used in this case. I see from the logs 4-5 different execute threads at work (ex. ExecuteThread: '10' for queue: 'weblogic.kernel.Default').
    Does it happen all the time?
    Although it is tough to tell for sure, once it starts happening it seems to happen most if not all the time.
    Is it an attempted re-use of the same statement, or trying to use a different statement?
    We do a connection.prepareStatement(QUERY_STRING) call everytime (there is only one per request/response cycle). I believe WLS caches statements behind the scenes though so I suspect at that level there is reuse. There is only one stored proc used (we vary the params per call).
    Please show me your pool definition from the config.xml
    file, and I will send you instructions to produce some
    debug info that will get us to the heart of this matter.
    <JDBCConnectionPool
    DriverName="weblogic.jdbc.sqlserver.SQLServerDriver"
    MaxCapacity="5" Name="THE POOL"
    PasswordEncrypted="XXX"
    Properties="user=XXX;portNumber=XXX;databaseName=XX;serverName=X.X.X.X"
    Targets="Server"
    TestConnectionsOnReserve="true" TestTableName="TEST_TABLE" URL="jdbc:bea:sqlserver://X.X.X.X:XXX"/>Ok, do these things:
    1 - Add our spy attribute to your pool definition, like this:
    <JDBCConnectionPool
    DriverName="weblogic.jdbc.sqlserver.SQLServerDriver"
    MaxCapacity="5" Name="THE POOL"
    PasswordEncrypted="XXX"
    Properties="user=XXX;portNumber=XXX;databaseName=XX;serverName=X.X.X.X"
    Targets="Server"
    TestConnectionsOnReserve="true"
    TestTableName="TEST_TABLE"
    URL="jdbc:bea:sqlserver://X.X.X.X:XXX;spyAttributes=(log=(file)spy.log;timestamp=yes)"/>
    2 - Edit the start-weblogic script to add the spy jar (wlspy.jar) to the
    classpath that the script creates for the server, eg:
    set CLASSPATH=%WL_HOME%\server\lib\wlspy.jar;%CLASSPATH%
    3 - Reboot and duplicate the problem as briefly as possible.
    4 - In the same directory where you start the server, you will
    now find a file named 'spy.log'. Please send it to me. ( j o e AT b e a DOT c o m )
    I will try to reproduce the problem.
    5 - Ask BEA support for the latest BEA driver package and install it according to
    their instructions. Let me know asap if the probem is still there.
    thanks
    Joe
    >
    Also, I forgot to post in the original message some of the WLS stdout related logging we see. Here it is (sorry, it's a little messy):
    11:38:37 o'clock AM EST> <Error> <JDBC> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <> <BEA-001131> <Received an exception when closing a cached statement for the pool " THE POOL": java.sql.SQLException: [BEA][SQLServer JDBC Driver]The operation was cancelled at the user's request..>
    11:38:37 o'clock AM EST> <Error> <JDBC> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <> <BEA-001131> <Received an exception when closing a cached statement for the pool " THE POOL": java.sql.SQLException: [BEA][SQLServer JDBC Driver]The operation was cancelled at the user's request..>
    11:38:37 o'clock AM EST> <Error> <JDBC> <ExecuteThread: '10' for queue: 'weblogic.kernel.Default'> <> <BEA-001131> <Received an exception when closing a cached statement for the pool " THE POOL": java.sql.SQLException: [BEA][SQLServer JDBC Driver]The operation was cancelled at the user's request..>
    11:38:38 o'clock AM EST> <Error> <JDBC> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default'> <> <BEA-001112> <Test "select count(*) from TEST_TABLE" set up for pool " THE POOL" failed with exception: "java.sql.SQLException: [BEA][SQLServer JDBC Driver]A problem occurred when attempting to contact the server (Server returned: Connection reset). Please ensure that the server parameters passed to the driver are correct and that the server is running. Also ensure that the maximum number of connections
    have not been exceeded for this server.".>
    11:38:38 o'clock AM EST> <Info> <JDBC> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default'> <> <BEA-001128> <Connection for pool " THE POOL" closed.>
    11:38:38 o'clock AM EST> <Info> <JDBC> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default'> <> <BEA-001067> <Connection for pool " THE POOL" refreshed.>
    11:38:40 o'clock AM EST> <Error> <JDBC> <ExecuteThread: '10' for queue: 'weblogic.kernel.Default'> <> <BEA-001112> <Test "select count(*) from TEST_TABLE" set up for pool " THE POOL" failed with exception: "java.sql.SQLException: [BEA][SQLServer JDBC Driver]A problem occurred when attempting to contact the server (Server returned: Connection reset). Please ensure that the server parameters passed to the driver are correct and that the server is running. Also ensure that the maximum number of connections
    have not been exceeded for this server.".>
    11:38:40 o'clock AM EST> <Info> <JDBC> <ExecuteThread: '10' for queue: 'weblogic.kernel.Default'> <> <BEA-001128> <Connection for pool " THE POOL" closed.>
    11:38:40 o'clock AM EST> <Info> <JDBC> <ExecuteThread: '10' for queue: 'weblogic.kernel.Default'> <> <BEA-001067> <Connection for pool " THE POOL" refreshed.>
    11:38:41 o'clock AM EST> <Error> <JDBC> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <> <BEA-001131> <Received an exception when closing a cached statement for the pool " THE POOL": java.sql.SQLException: [BEA][SQLServer JDBC Driver]The operation was cancelled at the user's request..>
    11:38:41 o'clock AM EST> <Error> <JDBC> <ExecuteThread: '10' for queue: 'weblogic.kernel.Default'> <> <BEA-001131> <Received an exception when closing a cached statement for the pool " THE POOL": java.sql.SQLException: [BEA][SQLServer JDBC Driver]The operation was cancelled at the user's request..>
    Here is the sequence of calls we make (notice the statement is closed outside the finally however we assume the connection.close should close associated resources):
    PreparedStatement statement = null;
    try {
    connection = dataSource.getConnection();
    statement = connection.prepareStatement(QUERY_STRING);
    statement.setString(1, name1);
    statement.setString(2, name2);
    statement.setQueryTimeout(timeout);
    ResultSet resultSet = statement.executeQuery();     
    //iterate over result set
    statement.close();
    return result;               
    } catch (SQLException e1) {
    //log
    } finally {
    try {
    if(connection != null)
    connection.close();
    } catch (SQLException e2) {
    //log
    Thanks again,
    Mich

  • Problem with JSTL 1.0.6 in WLS 8.1.4 - Please Help

    I am trying to use JSTL 1.0.6 in WLS 8.1.4. Here are the steps I followed:
              <br>
              Step 1:
              Copied the following jar files to WEB-INF/lib directory:<br>
              - jaxen-full.jar<br>
              - jdbc2_0-stdext.jar<br>
              - jstl.jar<br>
              - saxpath.jar<br>
              - standard.jar<br>
              - xalan.jar<br>
              - xercesImpl.jar<br>
              - xml-apis.jar<br>
              <br>
              Step 2:
              Imported JSTL into my one-and-only JSP page as follows:<br>
              <%@ page contentType="text/html;charset=UTF-8" language="java" %>
              <%@ taglib prefix="c"<br>uri="http://java.sun.com/jstl/core" %>
              <%@ taglib prefix="c_rt" uri="http://java.sun.com/jstl/core_rt" %>
              <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"%>
              <%@ taglib prefix="x_rt" uri="http://java.sun.com/jstl/xml_rt" %>
              <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
              <%@ taglib prefix="fmt_rt" uri="http://java.sun.com/jstl/fmt_rt" %>
              <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
              <%@ taglib prefix="sql_rt" uri="http://java.sun.com/jstl/sql_rt" %>
              <br><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
              <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
              <br>
              <br>
              (I am also using struts, hence the last two page directives)
              <br>
              <br>
              Step 3:
              Finally I tried to build an EAR (which used to build OK before I added JSTL) using a slightly modified version of the build.xml that comes with the Medrec tutorial. wlcompile went OK, but <b>wlappc</b> failed with the following message:
              <br>
              java.lang.NoClassDefFoundError: javax/servlet/jsp/el/VariableResolver
              <br>
              <br>
              What am I doing wrong? I followed the instructions given in the JSTL 1.0.6 package. Is wlappc not the right tool for translating/compiling the JSP?
              <br>
              Please help!
              <br>
              <br>
              Regards,
              Nadeem

    I can't be sure about exactly what's happening here, but I can point out several things.
              The class "javax.servlet.jsp.el.VariableResolver" is associated with JSTL 1.1.x, and JSP 2.0. It's not part of JSTL 1.0.x. Make sure you really have version 1.0.6, and don't have 1.1 somewhere.
              If you're just trying to use the JSTL, you shouldn't need several of those jars that you're presently including. You only need jstl.jar and standard.jar.
              Why are you using the "rt" versions of these taglibs? Those don't even use the expression language. I would remove "_rt" from all of those references.
              Note that if you're using Struts and the JSTL, you probably want to use Struts-EL, which is a version of the Struts jar that uses the EL to evaluate attribute values. Check the struts-user archive for some information about this. You'll find the struts-el distribution in the "contrib" directory of the Struts distribution.

  • Problems with Ant when using JDK1.4

    Hi,
    I am currently trying to convince JDeveloper (9.0.3.10.35) to use jdk1.4 for building and executing my project.
    Now, using the IDE for building and execution everything seems to work fine after switching to the new J2SE Version in the project settings.
    Ant, however, refuses to work with the new IDE. It gives an "Error: Unable to execute Ant"
    On the other hand, staying with the default JDK version 1.3.1_02 (coming with JDeveloper) for ant execution results in conflicts of newer class versions (i.e. org.w3c.dom.Node) w.r.t. to <jdev>/lib/xmlparserv2.jar. The error is:
    compile:
    [javac] Compiling 263 source files to C:\Daten\JDeveloper\Projects\IAS39\jdev\classes
    [javac] C:\Daten\JDeveloper\Projects\IAS39\src\hea\accounting\cmd\AbstractCommand.java:20: cannot access org.w3c.dom.Node
    [javac] bad class file: C:\Programme\j2sdk1.4.0\jre\lib\rt.jar(org/w3c/dom/Node.class)
    [javac] class file has wrong version 48.0, should be 47.0
    [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
    [javac] protected void readKey(Node keyNode){
    [javac] 1 error
    Obviously, I am missing something! Any help is highly appreciated!

    I experienced something similar. I tried to use JDK 1.4.2, I compile the project without errors but, when I try to run the project, which has EJBs, it fails.
    If I do the same using JDK 1.3.1.x, it works fine; but I need 1.4.x.
    The messages are the following:
    Copying default deployment descriptor from archive at J:\JHI\JProyectos\InterfazAlNSI\classes/META-INF/orion-ejb-jar.xml to deployment directory C:\JDev903\jdev\system9.0.3.1035\oc4j-config\application-deployments\current-workspace-app\classes...
    Auto-deploying file:/J:/JHI/JProyectos/InterfazAlNSI/classes/ (No previous deployment found)... CentroPeriferico_StatelessSessionBeanWrapper8.java:6: cannot access java.rmi.NoSuchObjectException
    bad class file: C:\Archivos de programa\Java\j2re1.4.2\lib\rt.jar(java/rmi/NoSuchObjectException.class)
    class file has wrong version 48.0, should be 47.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import java.rmi.NoSuchObjectException;
    ^
    1 error
    Error compiling J:\JHI\JProyectos\InterfazAlNSI\classes: Syntax error in source
    Thanks,
    Marcelo.

  • Problems with signature verification in JDK1.5

    Hello to all!
    I have the a problem: I am trying to verify the signature with the following code:
        public static boolean verify(String data, String b64sign)
               boolean verified;
                BASE64Decoder dec = new BASE64Decoder();
                byte[] decoded = dec.decodeBuffer(b64sign);
                CertificateFactory factory = CertificateFactory.getInstance("X.509");
                FileInputStream fis = new FileInputStream("c:/cert/test-server.cert");
                X509Certificate cc = (X509Certificate) factory.generateCertificate(fis);
                System.out.println(cc);
                Signature signature = Signature.getInstance("SHA1withRSA");
                signature.initVerify(cc);
                signature.update(data.getBytes());
                verified = signature.verify(decoded);
                return verified;
        }and under jdk 1.5 the result is always FALSE. I've tried different providers, including "BC version 1.34", "SunJSSE version 1.5", "SunRsaSign version 1.5" but result is still the same.
    Curiously, that under jdk 1.4.2 all works fine, and signature verifies successfully. When running under jdk 1.4.2 provider used is: "SunJSSE version 1.42".
    What am I doing wrong?

    data.getBytes() isn't a reliable way of obtaining bytes from a String. Don't pass the data through a String, preserve it as bytes all the way through. Or use a fixed encoding when you do the translation, i.e. the same one that was used in JDK 1.4.2 whatever that was (by default). The default has changed between JDKs before now.

  • Problem with Portal Admin after porting to WLS 8.1 SP2

    Hi,
    I am trying to port my application from weblogic 8.1 SP1 to 8.1 SP2.
    i am able to compile and deploy the code but when i try to go to the Portal Admin
    to create users and desktop, i get the following error:
    Error 500--Internal Server Error
    java.lang.NoClassDefFoundError: weblogic/netuix/util/JspcExtensions
         at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:563)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.servlet.PortalSystemAdministratorFilter.doFilter(PortalSystemAdministratorFilter.java:78)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Please note that the SP2 workshop updated a bunch of libraries (including netui)
    when i opened my portal app. could that be the cause of this??
    thank you
    kaleem

    Kaleem-
    I believe that the JspcExtensions class that was previously found in a WLS classpath
    jar was removed between sp1 and sp2 due to some refactoring that made it unnecessary.
    I would guess that your version of netuix_servlet.jar in your WEB-INF/lib is
    out of date with your domain. Please ensure that the jars in your webapp are
    all sp2 versions.
    -Brodi
    "Kaleem" <[email protected]> wrote:
    >
    Hi,
    I am trying to port my application from weblogic 8.1 SP1 to 8.1 SP2.
    i am able to compile and deploy the code but when i try to go to the
    Portal Admin
    to create users and desktop, i get the following error:
    Error 500--Internal Server Error
    java.lang.NoClassDefFoundError: weblogic/netuix/util/JspcExtensions
         at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:563)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.servlet.PortalSystemAdministratorFilter.doFilter(PortalSystemAdministratorFilter.java:78)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Please note that the SP2 workshop updated a bunch of libraries (including
    netui)
    when i opened my portal app. could that be the cause of this??
    thank you
    kaleem

  • RMI Problems with WL 6 and JDK1.3

    I have been working on converting an existing RMI Service- Client
    Application to use Weblogic 6.0. All the rmi services run in an
    external VM seperate from the WL server. This setup works fine with
    plain RMI, I have converted this to WL and JNDI. I get the following
    error after a few connections to the service have been made. It always
    happens.
    <Feb 18, 2001 10:53:39 PM EST> <Error> <ConnectionManager> <Closing:
    'weblogic.r
    jvm.t3.T3JVMConnection@91cee' because of: 'Client received a routed
    message from
    an unknown JVM: '-5623439693736234706C:24.185.83.208''>
    I have taken the Stock Applet example from WL5.1 and it also exhibits
    the same problems. Since there are no examples with RMI and JNDI in
    WL6 maybe I am missing something. I create an initial an IntialContext
    and I can list and see any objects. But I will always wind up getting
    these errors that Peer has shutdown because a message has been
    received from an unknown VM. I have dumped out the info of and the
    message is coming from a "known" VM but the weblogic rmi subsystem
    seems to have lost the information. Any ideas or help would be
    grateful.
    Thanks
    Alex Jeannopoulos

    I have been working on converting an existing RMI Service- Client
    Application to use Weblogic 6.0. All the rmi services run in an
    external VM seperate from the WL server. This setup works fine with
    plain RMI, I have converted this to WL and JNDI. I get the following
    error after a few connections to the service have been made. It always
    happens.
    <Feb 18, 2001 10:53:39 PM EST> <Error> <ConnectionManager> <Closing:
    'weblogic.r
    jvm.t3.T3JVMConnection@91cee' because of: 'Client received a routed
    message from
    an unknown JVM: '-5623439693736234706C:24.185.83.208''>
    I have taken the Stock Applet example from WL5.1 and it also exhibits
    the same problems. Since there are no examples with RMI and JNDI in
    WL6 maybe I am missing something. I create an initial an IntialContext
    and I can list and see any objects. But I will always wind up getting
    these errors that Peer has shutdown because a message has been
    received from an unknown VM. I have dumped out the info of and the
    message is coming from a "known" VM but the weblogic rmi subsystem
    seems to have lost the information. Any ideas or help would be
    grateful.
    Thanks
    Alex Jeannopoulos

  • Problems with IE w/ Apache bridge

    We're recently switched over from IIS as our front end web server to Apache
    1.3.12. On our login page for one of our site using IE 4.x / 5.x, we've
    noticed this to be extremely slow (about 45 seconds) just to login. Once
    you login to the site, the site is very fast. However, this is not the case
    with Netscape (4.x/5.x). Netscape works fine all of the time and is very
    fast with Apache.
    Is there a known bug with IE?
    All our login page does is pass username & password parameters to the
    weblogic server.
    This site doesn't have any problems with Netscape, going directly to the WLS
    on the specified port, or when we used IIS. The only time this shows up is
    when a user would login. Once they're in, they're flying!
    This is only IE related. Is there some sort of odd setting in IE to hold up
    a form like this?
    Our config looks like this:
    Web server: Linux 7.0; Apache 1.3.12 + apache-linux-bridge-sp5
    Weblogic Server: Windows 2000, WLS 5.1, sp5
    Database
    Has anyone seen this before?

    Thanks for the help everyone, but BEA sent us a beta-version of the new
    proxy for Apache on LINUX. This fixed the problem, and should be fixed in
    the next service pack.
    "mreiche" <[email protected]> wrote in message
    news:3a19ee1e$[email protected]..
    >
    See this article - we found a similar problem due to a sendRedirect() andfixed it by using a jsp:forward
    instead.
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.develo
    per.interest.jsp&item=3835&utag=
    >
    Mike Reiche
    "Charlie Crook" <[email protected]> wrote:
    Is the delay in loading your login page within the browser, or after the
    user submits it?
    Does the page contain IIS extensions ( which are no longer needed )?
    "Mike Kendzierski" <[email protected]> wrote in message
    news:3a120fa3$[email protected]..
    We're recently switched over from IIS as our front end web server toApache
    1.3.12. On our login page for one of our site using IE 4.x / 5.x,
    we've
    noticed this to be extremely slow (about 45 seconds) just to login.Once
    you login to the site, the site is very fast. However, this is not thecase
    with Netscape (4.x/5.x). Netscape works fine all of the time and is
    very
    fast with Apache.
    Is there a known bug with IE?
    All our login page does is pass username & password parameters to the
    weblogic server.
    This site doesn't have any problems with Netscape, going directly tothe
    WLS
    on the specified port, or when we used IIS. The only time this shows
    up
    is
    when a user would login. Once they're in, they're flying!
    This is only IE related. Is there some sort of odd setting in IE to
    hold
    up
    a form like this?
    Our config looks like this:
    Web server: Linux 7.0; Apache 1.3.12 + apache-linux-bridge-sp5
    Weblogic Server: Windows 2000, WLS 5.1, sp5
    Database
    Has anyone seen this before?

  • Problem with Socket Client - Intermittent Truncated Response in AIX

    {color:#0000ff}Hi guru
    I have written on Socket Client method below to send request byte[] to Host and receive response byte[] from Host.
    For this particular response, I'm expecting Host to return me byte[] with length 2274.
    My problem is intermittently I received truncated message byte[] from Host with length only 1392. Sometimes I received full 2274 message, sometimes I received 1392 length. I tested in continual of 10 times by sending the same request to host, intermittently received truncated response message.
    My real problem is that this only happened in {color:#ff0000}AIX {color}machine. With the same class, I tested on {color:#ff0000}Windows {color}platform and i received full response message byte[] with 2274 lenght always. Therefore, im counting out the possibilities that Host might send me truncated message.
    Can anyone pls help to tell me how should I proceed to troubleshoot this problem in AIX? Is possible for me to trace what coming in?
    {color}
    public byte[] sendToHost(byte[] requestMessage, String requestId, String localTxnCode) throws Exception {
    BufferedInputStream bis = null;
    BufferedOutputStream bos = null;
    long startTime = 0;
    long elapsed = 0;
    try {
    LogManager.log(LogManager.DEBUG, Constants.DEFAULT_LOGGER_NAME, requestId, "[" + localTxnCode + "] To connect and send message to Host hostAddr=[" + hostAddr + "], hostPort=[" + hostPort
    + "]");
    startTime = System.currentTimeMillis();
    hostSocket = new Socket(InetAddress.getByName(hostAddr), hostPort);
    hostSocket.setSoTimeout(timeOut);
    byte responseData[] = new byte[4096];
    bis = new BufferedInputStream(hostSocket.getInputStream());
    bos = new BufferedOutputStream(hostSocket.getOutputStream());
    bos.write(requestMessage);
    bos.flush();
    int length = bis.read(responseData);
    elapsed = System.currentTimeMillis() - startTime;
    ARBAdapterUtil.log(LogManager.DEBUG, Constants.DEFAULT_LOGGER_NAME, requestId, "[" + localTxnCode + "] Received message from Host length=[" + length + "]");
    // The response byte must not be 4096 everytime
    byte[] returnByte = new byte[length];
    for (int i = 0; i < length; i++) {
    returnByte[i] = responseData;
    return returnByte;
    } catch (BindException b) {
    elapsed = System.currentTimeMillis() - startTime;
    throw new SocketException("Socket Exception: BindException IP=" + hostAddr + " PORT=" + hostPort + " Error type=" + b.getClass().getName() + " Error message=" + b.getMessage());
    } catch (ConnectException c) {
    elapsed = System.currentTimeMillis() - startTime;
    throw new SocketException("Socket Exception: ConnectException IP=" + hostAddr + " PORT=" + hostPort + " Error type=" + c.getClass().getName() + " Error message=" + c.getMessage());
    } catch (NoRouteToHostException nrth) {
    elapsed = System.currentTimeMillis() - startTime;
    throw new SocketException("Socket Exception: NoRouteToHostException IP=" + hostAddr + " PORT=" + hostPort + " Error type=" + nrth.getClass().getName() + " Error message="+ nrth.getMessage());
    } catch (SocketTimeoutException se) {
    elapsed = System.currentTimeMillis() - startTime;
    throw new SocketTimeoutException("Socket Exception: SocketTimeoutException IP=" + hostAddr + " PORT=" + hostPort + " Error type=" + se.getClass().getName() + " Error message=" + se.getMessage());
    } catch (SocketException s) {
    elapsed = System.currentTimeMillis() - startTime;
    throw new SocketException("Socket Exception: SocketException IP=" + hostAddr + " PORT=" + hostPort + " Error type=" + s.getClass().getName() + " Error message=" + s.getMessage());
    } catch (Exception e) {
    elapsed = System.currentTimeMillis() - startTime;
    throw new Exception("Unknown Exception: Exception IP=" + hostAddr + " PORT=" + hostPort + "Error type=" + e.getClass().getName() + " Error message=" + e.getMessage());
    } finally {
    try {
    ARBAdapterUtil.log(LogManager.INFO, Constants.DEFAULT_LOGGER_NAME, requestId, "ARBConnection.sendToHost() [" + localTxnCode + "] Time Elapsed via Socket in millisecond = [" + elapsed + "]");
    if (bis != null) {
    bis.close();
    bis = null;
    if (bos != null) {
    bos.close();
    bos = null;
    } catch (Exception e) {
    LogManager.log(LogManager.ERROR, Constants.DEFAULT_LOGGER_NAME, requestId, "ARBConnection.sendToHost() [" + localTxnCode + "] Exception during closing BufferedInputStream and BufferedOutputStream");

    I tried to use DataInputStream.readFully(byte[]). However, I could not retrieve a single byte from Host. It won't return until it fills the buffer, or EOS occurs. Isn't that what you wanted?
    You need to believe it here. Either the sending application or Java or the sending TCP stack or the intervening routers or the receiving TCP stack or Java or the receiver can break up the transmission into 1 byte reads and there is nothing you can do about it at the receiver except what I said. BufferedInputStream will mask the effect to some extent but you still have to code under that assumption. You don't have any choice about this.

  • Problem with Application build in JDeveloper 11.1.5 to WLS 10.3.5

    Hi to everyone, I have a problem with a application build in JDeveloper 11.1.5 and deployed to a standalone WLS 10.3.5 ( with the JRF template appliied , to run adf applications )
    When I try access to the page : localhost:7001/myApp , it show me :
    "Error 403 Fordbbiben ".
    but when I put :
    localhost:7001/myApp/index.jspx, it show me :
    Error 500--Internal Server Error
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.5.1 500 Internal Server Error
    The server encountered an unexpected condition which prevented it from fulfilling the request.
    and the log is :
    <May 8, 2012 9:06:22 PM BOT> <Warning> <oracle.adf.view.rich.component.fragment.UIXRegion> <BEA-000000> <
    java.lang.IllegalStateException: The expression "#{bindings.genRegion.regionModel}" (that was specified for the RegionModel "value" attribute of the region component with id "genRegion_dlg") evaluated to null.
    This is typically due to an error in the configuration of the objects referenced by this expression.
    If it helps, the expression "#{bindings.genRegion}" evaluates to "null".
    If it helps, the expression "#{bindings}" evaluates to "null". Now using an empty RegionModel instead.
    at oracle.adf.view.rich.component.fragment.UIXRegion.getRegionModel(UIXRegion.java:450)
    at oracle.adf.view.rich.component.fragment.UIXRegion._beginInterruptibleRegion(UIXRegion.java:682)
    at oracle.adf.view.rich.component.fragment.UIXRegion.processRegion(UIXRegion.java:498)
    at oracle.adfinternal.view.faces.taglib.region.RegionTag.doStartTag(RegionTag.java:127)
    What can I do to fix the problem ??
    Thanks

    Analyzing the problem, I created a new ADF application with only a web page (index.jspx) , and deploy it to the WLS, and I access to URL of page and it runs !! ( http:localhost:7001/myApp/faces/index.jspx ).
    But, when I ADD A TASK FLOW to the application and deploy to the WLS newly , and try to access to the URL application's ( http:localhost:7001/myApp/faces/index.jspx ) . It show me again :
    Error 500--Internal Server Error
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.5.1 500 Internal Server Error
    The server encountered an unexpected condition which prevented it from fulfilling the request.
    and the log is :
    <May 10, 2012 19:02:57 PM BOT> <Warning> <oracle.adf.view.rich.component.fragment.UIXRegion> <BEA-000000> <
    java.lang.IllegalStateException: The expression "#{bindings.genRegion.regionModel}" (that was specified for the RegionModel "value" attribute of the region component with id "genRegion_dlg") evaluated to null.
    This is typically due to an error in the configuration of the objects referenced by this expression.
    If it helps, the expression "#{bindings.genRegion}" evaluates to "null".
    If it helps, the expression "#{bindings}" evaluates to "null". Now using an empty RegionModel instead.
    at oracle.adf.view.rich.component.fragment.UIXRegion.getRegionModel(UIXRegion.java:450)
    at oracle.adf.view.rich.component.fragment.UIXRegion._beginInterruptibleRegion(UIXRegion.java:682)
    at oracle.adf.view.rich.component.fragment.UIXRegion.processRegion(UIXRegion.java:498)
    at oracle.adfinternal.view.faces.taglib.region.RegionTag.doStartTag(RegionTag.java:127)
    Why it show me that error when I ADD a Task Flow to the Application ???
    Can Anyone help me please ?? I m varios days with this problem. Thanks

  • Oracle XA driver problem with WLS 7.0.1.0, Oracle 9.0.1

    We are using simplified chinese, after swith to bea jdriver, it messed up
    all the encoding. So we cannot display Chinese character correctly.
    We are using WLS 7.0.1.0, Oracle 9.0.1 on both Windows and Solaris 8
    environment, BEA supplied JDK 1.3.1_03.
    We have many diffrent problems with oracle drivers:
    1. We want to use XA driver to support distributed transaction, However:
    * bea jdriver xa messes up with encoding
    * when using oracle 901 driver, everything works fince except webservices.
    Workshop application access the ejb, then the workshp application sets
    isolation level, but oracle driver does not support it and gives error. Is
    there a way to turn off isolation level in workshop? I tried manually edit
    weblogic-ejb-jar.xml, however,workshop cannot redeploy it after that.
    2. When not using XA, oracle thin driver works fine. But we lost XA
    capability.
    Any work around?

    I did try to change the value in this config file as well, but did not help.
    In fact, the installation default setting is with
    '<transaction-isolation-level>' commented out.
    And when I use bea oracle jdriver, it somehow messed up with database
    character set encoding, so our Chinese characters could not be retrieved
    correctly. And I try to set the encoding of jdriver to 'GBK', it did not
    work.
    "Anurag Pareek" <[email protected]> дÈëÏûÏ¢ÐÂÎÅ
    :[email protected]..
    Hello Ma,
    The transaction isolation level value for EJBs backing the JWS files is
    specified in the <transaction-isolation-level> tag in the
    WEB-INF/weblogic-jws-config.xml file of a Workshop project. You can
    manipulate this value to serve your purpose.
    Please do let me know how it goes.
    Regards,
    Anurag
    Workshop Support
    "Ma Jie" <[email protected]> wrote in message
    news:[email protected]..
    We are using simplified chinese, after swith to bea jdriver, it messed
    up
    all the encoding. So we cannot display Chinese character correctly.
    We are using WLS 7.0.1.0, Oracle 9.0.1 on both Windows and Solaris 8
    environment, BEA supplied JDK 1.3.1_03.
    We have many diffrent problems with oracle drivers:
    1. We want to use XA driver to support distributed transaction, However:
    * bea jdriver xa messes up with encoding
    * when using oracle 901 driver, everything works fince exceptwebservices.
    Workshop application access the ejb, then the workshp application sets
    isolation level, but oracle driver does not support it and gives error.Is
    there a way to turn off isolation level in workshop? I tried manuallyedit
    weblogic-ejb-jar.xml, however,workshop cannot redeploy it after that.
    2. When not using XA, oracle thin driver works fine. But we lost XA
    capability.
    Any work around?

  • Problems with WLS 4.5.1 and F5 Big IP HA+ Switch

    Hello. We're having problems with our F5 Big IP HA+ switch and pool of WLS
              4.5.1 servers (two in the pool currently). At seemly random intervals the
              Big IP believes the one or both of the servers are not responding, so they
              are removed from the pool. We have a growing body of anecdotal evidence to
              suggest that the servers are actually on-line and available during the
              event. Either the switch is confused or the WLS servers aren't always
              responding correctly to the HTTP requests sent by the switch for polling.
              We're having problems catching the problem with the right diagnostics.
              Has anyone out there observed similar behavior with these components?
              Thanks.
              - Sean McRae
              

    Sort of,
              I use iplanet between the 2, so I havent had this problem, but I have had
              several problems with clustering, here is what I recomend doing:
              write a simple java program (or whatever your prefered language) to do a HTTP
              ping on your distinct weblogic servers every X seconds/minutes where X is less
              than Big IPs death tolerance. Time how long/or if ever each of your pings take.
              turn on verbose gc.
              My guess is its one of 3 things:
              1.) your have a big gc going on and your server isnt responding quick enough
              and big ip is marking it dead
              2.) you have thread contention that is causing your server not to respond quick
              enough
              3.) your network has some issues and the packets arent making it there, or not
              quick enough.
              the ping program will prove/disprove #2 and lead you to or away from 3. Verbose
              gc will prove/disprove #1.
              hope this helps
              -Joel
              Sean wrote:
              > Hello. We're having problems with our F5 Big IP HA+ switch and pool of WLS
              > 4.5.1 servers (two in the pool currently). At seemly random intervals the
              > Big IP believes the one or both of the servers are not responding, so they
              > are removed from the pool. We have a growing body of anecdotal evidence to
              > suggest that the servers are actually on-line and available during the
              > event. Either the switch is confused or the WLS servers aren't always
              > responding correctly to the HTTP requests sent by the switch for polling.
              > We're having problems catching the problem with the right diagnostics.
              >
              > Has anyone out there observed similar behavior with these components?
              >
              > Thanks.
              >
              > - Sean McRae
              

  • Problems with java.lang.Class in JDK1.3

    Hi,
    I have 3 problems with the reflection in java.lang.Class:
    1) In the specification of method java.lang.Class.getDeclaredFields() is wrote:
    "Returns .... This includes public, protected, default (package) access, and private fields ..."
    This means, that all private fields should be return too. But some private methods are not given back. ????
    2) In java.lang.Class.getDeclaredMethods()
    some public methods are not return. ????
    3) In java.lang.Class.getDeclaredMethods()
    If Class is an interface. The same problem like 2) ????
    Are they errors of java.lang.Class in JDK1.3 ????
    Thanks & sincerely.

    Not sure it makes a difference, but you left off the last part of the quote:
    This includes public, protected, default (package) access, and private classes and interfaces declared by the class, but excludes inherited classes and interfaces.
    Are these missing methods from inherited classes, or are they declared in the class itself?

Maybe you are looking for

  • Problem with Local DCs View in NWDS

    Hi! I' ve got a problem with Local DCs view in NWDS: None of the standard-DCs (BI_MMR, BI_UDI, CAF a.s.o.) can be expanded and show their content. I already reinstalled IDE, but without success. Has anybody got an idea? Thanks a lot in advance! Regar

  • Order a third party YST

    Hello everyone Please could some one help me I need to make report for orders for a third party, In MB51 for entry is 977 for cancellation is 978 but I don't now the one for delivery help me please

  • Level of effort Predecessors & Successors

    Is it OK for a level of effort activity to have more than one predecessor and/or successor? what are the consequences of doing that? I know it is possible to assign more than one predecessor or successor. My question is as to whether it will be a pro

  • SAP BW Query -- Universe -- QAAWS -- Xcelsius的行权限控制问题

    如题,我现在想通过SAP BW Query --> Universe --> QAAWS -->Xcelsius的方法使得Xcelsius动态获得BW的数据. 我是用我BW的开发帐号连接测试读取数据没有问题,但是现在的问题是,如何集成BW的数据访问权限控制? 我已经将SAP BW系统中的角色和用户都导入BOE了,使用SAP验证现在也能登陆InfoView或者是CMC. 但是我在Universe中将链接设定成固定输入我的用户名密码就不能控制权限了,但是另外两个选项[查看中刷新报表时使用单一登录]和

  • Intermittent broadband connection - UNUSABLE

    Hi Sky/Rupert Over recent weeks my broadband has been getting steadily worse, and now the connection drops so frequently (every 5 mins or so) that the service is unusable.   When a drop occurs the @ light on the box goes out, and after a short time c