Problem Instantiating a JdbcOdbcDriver

I wrote an applet to access a Microsoft Access database. The applet works fine under the Appletviewer; however, I get the following error if the run the applet under Internet Explorer 6:
java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc)
Does anyone know how to solve this error?

You should sign your applet to allow it working with local file system.

Similar Messages

  • Problem instantiating COM+ object

    Hi,
    I'm trying to instantiate a com+ object using
    <cfobject> and I'm getting:
    An exception occurred when instantiating a Com object
    The cause of this exception was that: AutomationException:
    0x80070002
    The com object is built in c# .net and implements the
    iDispatch interface. We're running mx 7, and using the following
    syntax to instantiate the object:
    <cfobject type = "com" action = "create" class =
    "COMService" name = "myCOMService" context = "local" />
    Can anyone suggest any pointers?
    Thanks,

    Turns out it was a problem with the COM+ component. Googling
    the specific error code 0x80070002 helped to uncover the
    problem.

  • Problems instantiating oracle xdk class CXmlCtx

    I'm having problems using the CXmlCtx C++ class in XDK 10g when I define my own ErrorHandler class. The default version appears to be working but does not allow any errors to be dealt with properly.
    I believe there is some kind of memory corruption occurring as I'm getting inconsistent results when I instantiate CXmlCtx. There are times when the CXmlCtx class is instantiated and then I can successfully parse an xml doc BUT most of the time I'm getting a mix between Error 19 returned (which is XMLERR_PROP_NOT_FOUND) and a core dump.
    Does anyone know what error 19 actually means and more importantly how can I avoid it? (and hopefully the core dumps).

    Hi,
    I am facing a similar problem. Please let me know if you were able to resolve this/

  • Problem instantiating bean when system locale is Japanese

    Hi,
    My application is built using VC++ and I use a java bean. This I instantiate uing CoCreateInstance and then call its methods.
    This setup works fine on normal PC using English system locale. I have also tried on PC with system locale set to Hebrew and Dutch. It works there as well.
    Today I set the system locale of my PC to Japanese (Katanaka). When i run my application, it terminates abruptly. On investigation, it was found that when CoCrateInstance tries to instantialte the object of bean, the problem occurs. No exceptions are thrown and no error messages appear. The application simple disappears from the screen.
    Can any body pls help me out.
    Thanx in advance,
    Manish Chaudhary

    I'm not using CoCreateInstance in my VC++ project, tell me where you saw an example using that or why you choose to use that so I can learn. Is your bean not visual?
    All of the packaged java bean Objects inherit from CWnd when imported into VC++ (the header file and cpp file are auto generated)
    With that in mind, I just declare an instance in my View or Document's header file and int he cpp file I call the Create() method of CWnd and pass it some window stuff as well as a CRect.
    As for japanese, I saw on the reallyusefulcomputing article mentioned on other messages in this forum that you should use internal version only. I haven't dealt with this, but figured it was worth a mention.

  • Problems instantiating javax.xml.ws.Service object

    i'm at a total loss here: on my development machine everything works fine. when i switch to our test production server, it blows up.
    My dev machine is OS X 10.5 and test production machine is OS X 10.6. Both are using Java 1.5 and Tomcat 6.0.x...
    The web services I'm calling all reside on other machines on our rack and I'm using internal IP addresses to call them.
    My Service class is below. The blow-up occurs in the constructor right before the info log. The exception message follows the class. help!
    @WebServiceClient(name = "gnwSoap", targetNamespace = "gnwSoapNamespace", wsdlLocation = "http://192.168.1.12/4DWSDL/DOC")
    public class GnwSoap extends Service {
         private static final Log log = LogFactory.getLog(GnwSoap.class);
         public GnwSoap(URL wsdlLocation, QName serviceName) {
              super(wsdlLocation, serviceName);
              log.info("Endpoint sucessfully created: " + wsdlLocation.getHost());
          * @return returns GnwSoapDocument
         @WebEndpoint(name = "gnwSoapPort")
         public GnwSoapDocument getGnwSoapPort() {
              return super.getPort(new QName("gnwSoapNamespace", "gnwSoapPort"),
                        GnwSoapDocument.class);
    }The Exception:
    javax.servlet.ServletException: java.lang.Exception: javax.faces.FacesException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[4,12]
    Message: Scanner State 24 not Recognized
    com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:179)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
    org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
    org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:109)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:278)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.concurrent.ConcurrentSessionFilter.doFilterHttp(ConcurrentSessionFilter.java:99)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
    org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)
    org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
    ...

    I have Oracle JDeveloper Studio Edition Version 10.1.3.2.0.4066.
    Please note I have already added following libaries, jars to Tool->Project Properties->Libraries in JDeveloper.
    EJB3.0, TopLink Essentials JPA, J2EE, Jws-api.jar, Ejb30.jar, JSP Runtime, JAX-RPC Client, TopLink, JDeveloper Runtime, Embedded OC4J client, Jaxrpc-api.jar, Wsserver.jar
    Thank you.

  • Problem instantiating static nested class

    How come this doesn't work?
    public class A {
        public static class B {
    public class Test {
        A.B test = new A.B(); 
    }The errors i got are:
    -Not an enclosing class: A
    -No enclosing instance of type A is in scope.
    TIA

    The code you posted compiled just fine for me.Ya you're right... stupid JBuilder failed me again; had to do a clean rebuild for JBuilder to recognize its not an error.

  • Problem instantiating a class defined in an external file

    I'm new to java and I'm having difficulties creating an instance of a class that is defined in another file. The source file and the file containing the class I wish to instantiate exist within the same folder.
    I have my classpath set so that it is pointing at my java install folder
    and the folder in which the source file and the file containing the class I wish to instantiate
    Here is the sourcefile
    import Deck;
    Deck myDeck = new Deck();
    public class soli {
    public static void main(String[] args) {
    Here is the compile error
    soli.java:11: 'class' or 'interface' expected
    Deck mydeck = new Deck();
    I'm sure I'm making an extremely silly mistake somewhere, thanks in advance for any replies

    Here is the sourcefile
    import Deck;
    Deck myDeck = new Deck();
    public class soli {
    public static void main(String[] args) {
    well, there is something missin frm this CLASS!
    try this:
    public class Soli {
    Deck deck = new Deck();
    // main and stuff
    }you see, that variable deck is IN the class, not outside of it...

  • Problem instantiating an entityBean

    Hi,
    i'm using the CabinBean-example from O'reilly's EJB2.0 3rd edition.
    i wrote the bean, the HomeRemote- and Remote-Interface, deployed it on jboss (it's creating the tables and says the jar-file is ok)
    but when i run the client, it says:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.ServerException: EJBException:; nested exception is:
    javax.ejb.EJBException: Could not instantiate bean; nested exception is: java.lang.InstantiationException
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
    at sun.rmi.transport.Transport$1.run(Transport.java:148)
    this is the client code:
    package com.titan.cabin;
    import com.titan.cabin.CabinHomeRemote;
    import com.titan.cabin.CabinRemote;
    import javax.naming.InitialContext;
    import javax.naming.Context;
    import javax.naming.NamingException;
    import java.rmi.RemoteException;
    import java.util.Properties;
    import javax.rmi.PortableRemoteObject;
    public class CabinClient1 {
    public static void main(String[] args) {
    try {
    Context jndiContext = getInitialContext();
    Object ref = jndiContext.lookup("CabinEJB");
    CabinHomeRemote home = (CabinHomeRemote)
    PortableRemoteObject.narrow(ref, CabinHomeRemote.class);
    CabinRemote cabin_1 = home.create(new Integer(1));
    cabin_1.setName("Master Suite");
    cabin_1.setDeckLevel(1);
    cabin_1.setShipId(1);
    cabin_1.setBedCount(3);
    Integer pk = new Integer(1);
    CabinRemote cabin_2 = home.findByPrimaryKey(pk);
    System.out.println(cabin_2.getName());
    System.out.println(cabin_2.getDeckLevel());
    System.out.println(cabin_2.getShipId());
    System.out.println(cabin_2.getBedCount());
    } catch (java.rmi.RemoteException re) { re.printStackTrace(); }
    catch (javax.naming.NamingException ne) { ne.printStackTrace(); }
    catch (javax.ejb.CreateException ce) { ce.printStackTrace(); }
    catch (javax.ejb.FinderException fe) { fe.printStackTrace(); }
    public static Context getInitialContext()
    throws javax.naming.NamingException {
    Properties props = System.getProperties();
    props.put(Context.INITIAL_CONTEXT_FACTORY,
    "org.jnp.interfaces.NamingContextFactory");
    props.put(Context.PROVIDER_URL, "jnp://localhost:1099");
    return new javax.naming.InitialContext(props);
    i hope someone is able to help me ...
    thanks
    fb

    i think u r going in worng way,u intiallize home by "CabinHomeRemote"
    bt hor jboss would know what is "CabinHomeRemote"
    CabinHomeRemote home = (CabinHomeRemote)
    ur client code should be like this:
    Context ctx = null;
    Properties prop = new Properties();
    prop.put(Context.INITIAL_CONTEXT_FACTORY,
    "org.jnp.interfaces.NamingContextFactory");
    prop.put(Context.PROVIDER_URL, "localhost:1099");
         prop.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces" );
         ctx = new InitialContext(prop);
    //lookup ur bean
    Object objref = ctx.lookup("CabinEJB");
    CabinHomeRemote home =
    (CabinHomeRemote)javax.rmi.
    PortableRemoteObject.narrow(objref,
    CabinHomeRemote.class);
    CabinRemote cabin_1 = home.create(new Integer(1));
    ok and before it plz read some document abt EJB. i think u r little bit confuse
    regards
    sachin

  • Problem instantiating maps

    I want to create a deck of cards in a Map. The Key is an integer, Ace = 1, Two = 2...... Ten = 10, Jack = 11 and so on. The Value is a string of its suit, Hearts, Diamonds, Clubs, or Spades.
    package card;
    import java.util.Map;
    public class Card {
         Map<Integer, String> cardMap = new Map <Integer, String>();This is what I have so far, and its giving me an error on the second "Map" in the constructing line, saying that it cant instantiate it.
    How can I fix this, or is there a more efficient way I can go about doing this?

    secretempire1 wrote:
    public class Deck {
         private Map<Integer, String> cardMap;
         public void CreateCards()
              for (int i = 1; i <= 13; i++)
                   cardMap.put(i, "Heart");
    Even when / if you get your map working, it still looks like the entirely wrong data structure here. Does it make any sense to get "Heart" from your map when you put in 2? Your not really needing to map anything here. Your deck should be a collection, say an ArrayList of Card objects, each Card holding a value and a suit. The value can be an int, the suit should be a constant value of some sort, again enums are often used here, and in fact it is a classic example of what enums are best for.
    Good luck.

  • Factory Instantiation Problem when publishing WSDL in Service Registry

    I have installed SOA Suite 10.1.3.1 and OSR 10.1.3. and am trying to publish a WSDL for a new business created as admin. This causes an UDDI error, though:
    "Invalid WSDL location! WSDLException: faultCode=CONFIGURATION_ERROR: Problem instantiating factory implementation.: oracle.j2ee.ws.wsdl.factory.WSDLFactoryImpl."
    I checked the jars in {oracle.home}/j2ee and couldn't find WSDLFactoryImpl in any of these. It is contained in orawsdl.jar under jdeveloper and bpel, though.
    Anyone seeing the same problem or are you guys able to use the OSR and publish services ? Hints on how to patch the OSR classpath ? (I am running it as standalone within OC4J).
    cheers,
    Diego

    yes, I do have one tip:
    ..don't install in the "home" instance. Well, to be more precise, don't install in the same instance as your BPEL PM and ESB - which by default is the "home" instance.
    You have to create a new instance (e.g. "registry") for your OSR, see "Integrating Oracle BPEL Process Manager with the Oracle Application Server Service Registry", page 2-32, step 6 in the "Oracle BPEL Process Manager Administrator's Guide".
    Maybe also have a read in
    Re: Anyone successfully installed SOA [Advanced] & Service Registry 10.1.3.1 ?
    good luck :-)
    Message was edited by:
    Diego Tognola

  • JdbcOdbcDriver problem!

    Hello, I'm having problems getting my JdbcOdbcDriver to work. I know that the problem is that I'm using IBM's JDK (please don't leave!) which doesn't have the class so when I add sun's jar in to the classpath I get this exception.
    I really want to use Sun's driver for my odbc bridge segments as I've had it working via sun jdk + tomcat for years now. However, moving to websphere and ibm means that i'm stuck with it's bundled jdk. Can anyone help me figure out how to get sun's driver to work. Or perhaps suggest a odbc bridge that is just as good? I tried easysoft's a minute ago and didn't like it. I want my Sun driver. A lot of my code depends on it.
    Here's the exception. I've googled it a bit and found some discussions but none that gave a definitive answer.
    java.lang.NullPointerException
    at sun.jdbc.odbc.JdbcOdbcDriver.initialize(JdbcOdbcDriver.java:436)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:153)
    at java.sql.DriverManager.getConnection(DriverManager.java:538)
    Thanks so much for reading this if you got this far. My last post got no replies.
    graeme.

    well look what i found:
    http://www-1.ibm.com/support/docview.wss?rs=1045&context=SSEQTP&dc=DB510&dc=DB520&dc=D800&dc=D900&dc=DA900&dc=DA800&dc=DB530&dc=DA600&dc=DB550&dc=D100&dc=D600&dc=D700&dc=DA500&dc=D200&dc=DA430&dc=DA440&dc=DA410&dc=DA450&dc=DA420&dc=DA460&dc=DB300&dc=DA470&dc=DA480&dc=DB100&dc=DA4A10&dc=DA4A20&dc=DA700&dc=DA4A30&q1=odbc&uid=swg1PQ86563&loc=en_US&cs=UTF-8&lang=en
    It's a bad url so here is the APAR:
    PQ86563: Customer getting NoClassDefFound on JdbcOdbcDriver as it was excluded from this release of the Java SDK
    APAR status
    Closed as program error.
    Error description
    NoClassDefFound exception occurs on:
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Customer is getting the exception because, the JDBC-ODBC bridge
    has been removed from the IBM JDK 1.4.0 onwards.
    Customer has to use the JDBC drivers for connecting to the
    database instead of jdbc-odbc bridge.
    However we are again including the JDBC-ODBC bridge
    from IBM JDK 1.4.2 onwards as requested from some
    of our customers.

  • Weblogic 10.0 Problems with stripes/struts

    When trying to deploy the sample application for the stripes framework on weblogic 10.0 I get the following error when deploying.
    <Dec 3, 2009 12:16:51 PM CET> <Error> <HTTP> <BEA-101165>
    <Could not load user defined filter in web.xml:
    net.sourceforge.stripes.controller.StripesFilter.net.sourceforge.stripes.exception.StripesRuntimeException:
    Problem instantiating default configuration objects.I actually had to switch to using the Sun JDK to get this error. JRockit does not report it, and just fails when I try to use the application. The problem appear to be weblogic 10.0 specific. No problems with jetty or tomcat, and I've heard reports that it is resolved in weblogic 10.3. Have ayone come accross similar problems when using stripes/struts on weblogic 10.0, and found a solution to this? Is there a patch available for 10.0 than fix this?
    Regards
    Morten
    PS: I have ommited the complete stack trace, since it is monstrously huge.

    Guess I was wrong in thinking that this was an isolated weblogic 10.0 problem. I just downloaded weblogic 10.3 and tried to deploy the same application there, and the same error happened.
    <03.des.2009 kl 15.12 CET> <Error> <HTTP> <BEA-101165>
    <Could not load user defined filter in web.xml:
    net.sourceforge.stripes.controller.StripesFilter.net.sourceforge.stripes.exception.StripesRuntimeException:
    Problem instantiating default configuration objects.
            at net.sourceforge.stripes.config.DefaultConfiguration.init(DefaultConfiguration.java:220)
            at net.sourceforge.stripes.config.RuntimeConfiguration.init(RuntimeConfiguration.java:272)
            at net.sourceforge.stripes.controller.StripesFilter.init(StripesFilter.java:125)
            at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:329)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            Truncated. see log file for complete stacktrace
    java.lang.NullPointerException
            at java.io.FilterInputStream.read(FilterInputStream.java:116)
            at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
            at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
            at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
            at java.io.InputStreamReader.read(InputStreamReader.java:167)
            Truncated. see log file for complete stacktraceSo is there anyone out there with experience with struts/stripes, that can tell why this does not work? If you need to try this yourself, you can download the stripes sample application here:
    http://sourceforge.net/projects/stripes/files/stripes/Stripes%201.5.2/stripes-1.5.2.zip/download
    There is an example WAR called "stripes-examples.war" in the zip that is ready to be deployed.
    Regards
    Morten
    PS: you still need to start weblogic with Sun JDK rather than JRockit to get the error. With JRockit the application simply fails when used.

  • WLS 7.0 Active Directory authenticator - problems starting managed server (Solaris 8)

    Has anyone managed to setup a WLS 7.0 Active Directory authenticator and booted
    a managed server using the node manager? I can boot the server without the AD
    authenticator and I can also boot the server using a script and successfully authenticate
    through AD. My AD control flag is set to OPTIONAL and I have also setup a default
    authenticator to boot weblogic - the control flag here is set to SUFFICIENT. This
    configuration works fine with weblogic running on W2K, but not on Solaris (it
    looks like the control flag is being ignored). Errors as follows
    ####<Oct 1, 2002 1:59:08 PM BST> <Info> <Logging> <mymachine> <server01> <main>
    <kernel identity> <> <000000> <FileLo
    gger Opened at /opt/app/live/appserver/domains/test/NodeManager/server01/server01.log>
    ####<Oct 1, 2002 1:59:09 PM BST> <Info> <socket> <mymachine> <server01> <main>
    <kernel identity> <> <000415> <System
    has file descriptor limits of - soft: 1,024, hard: 1,024>
    ####<Oct 1, 2002 1:59:09 PM BST> <Info> <socket> <mymachine> <server01> <main>
    <kernel identity> <> <000416> <Using e
    ffective file descriptor limit of: 1,024 open sockets/files.>
    ####<Oct 1, 2002 1:59:09 PM BST> <Info> <socket> <mymachine> <server01> <main>
    <kernel identity> <> <000418> <Allocat
    ing: 3 POSIX reader threads>
    ####<Oct 1, 2002 1:59:19 PM BST> <Critical> <WebLogicServer> <mymachine> <server01>
    <main> <kernel identity> <> <0003
    64> <Server failed during initialization. Exception:weblogic.security.service.SecurityServiceRuntimeException:
    Problem instantiating
    Authentication Providerjavax.management.RuntimeOperationsException: RuntimeException
    thrown by the getAttribute method of the Dynam
    icMBean for the attribute Credential>
    weblogic.security.service.SecurityServiceRuntimeException: Problem instantiating
    Authentication Providerjavax.management.RuntimeOper
    ationsException: RuntimeException thrown by the getAttribute method of the DynamicMBean
    for the attribute Credential
    at weblogic.security.service.PrincipalAuthenticator.initialize(PrincipalAuthenticator.java:186)
    at weblogic.security.service.PrincipalAuthenticator.<init>(PrincipalAuthenticator.java:236)
    at weblogic.security.service.SecurityServiceManager.doATN(SecurityServiceManager.java:1506)
    at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1308)
    at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1247)
    at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1364)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1107)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:703)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:588)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:276)
    at weblogic.Server.main(Server.java:31)
    ####<Oct 1, 2002 1:59:19 PM BST> <Emergency> <WebLogicServer> <mymachine> <server01>
    <main> <kernel identity> <> <000
    342> <Unable to initialize the server: Fatal initialization exception
    Throwable: weblogic.security.service.SecurityServiceRuntimeException: Problem
    instantiating Authentication Providerjavax.management.
    RuntimeOperationsException: RuntimeException thrown by the getAttribute method
    of the DynamicMBean for the attribute Credential
    weblogic.security.service.SecurityServiceRuntimeException: Problem instantiating
    Authentication Providerjavax.management.RuntimeOper
    ationsException: RuntimeException thrown by the getAttribute method of the DynamicMBean
    for the attribute Credential
    at weblogic.security.service.PrincipalAuthenticator.initialize(PrincipalAuthenticator.java:186)
    at weblogic.security.service.PrincipalAuthenticator.<init>(PrincipalAuthenticator.java:236)
    at weblogic.security.service.SecurityServiceManager.doATN(SecurityServiceManager.java:1506)
    at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1308)
    at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1247)
    at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1364)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1107)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:703)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:588)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:276)
    at weblogic.Server.main(Server.java:31)

    Solved the problem. The 'domain root' directory specified in the remote start configuration,
    must contain a copy of the file 'SerializedSystemIni.dat' that was created along
    with the domain, in order to boot when an AD authenticator is configured. If an
    AD authenticator is not configured, no file is required. This was not a platform
    specific issue; on Win2K I had configured the 'domain root' remote start parameter
    to point to an existing domain root and not a new directory.
    "Andrew Walker" <[email protected]> wrote:
    >
    Has anyone managed to setup a WLS 7.0 Active Directory authenticator
    and booted
    a managed server using the node manager? I can boot the server without
    the AD
    authenticator and I can also boot the server using a script and successfully
    authenticate
    through AD. My AD control flag is set to OPTIONAL and I have also setup
    a default
    authenticator to boot weblogic - the control flag here is set to SUFFICIENT.
    This
    configuration works fine with weblogic running on W2K, but not on Solaris
    (it
    looks like the control flag is being ignored). Errors as follows
    ####<Oct 1, 2002 1:59:08 PM BST> <Info> <Logging> <mymachine> <server01>
    <main>
    <kernel identity> <> <000000> <FileLo
    gger Opened at /opt/app/live/appserver/domains/test/NodeManager/server01/server01.log>
    ####<Oct 1, 2002 1:59:09 PM BST> <Info> <socket> <mymachine> <server01>
    <main>
    <kernel identity> <> <000415> <System
    has file descriptor limits of - soft: 1,024, hard: 1,024>
    ####<Oct 1, 2002 1:59:09 PM BST> <Info> <socket> <mymachine> <server01>
    <main>
    <kernel identity> <> <000416> <Using e
    ffective file descriptor limit of: 1,024 open sockets/files.>
    ####<Oct 1, 2002 1:59:09 PM BST> <Info> <socket> <mymachine> <server01>
    <main>
    <kernel identity> <> <000418> <Allocat
    ing: 3 POSIX reader threads>
    ####<Oct 1, 2002 1:59:19 PM BST> <Critical> <WebLogicServer> <mymachine>
    <server01>
    <main> <kernel identity> <> <0003
    64> <Server failed during initialization. Exception:weblogic.security.service.SecurityServiceRuntimeException:
    Problem instantiating
    Authentication Providerjavax.management.RuntimeOperationsException:
    RuntimeException
    thrown by the getAttribute method of the Dynam
    icMBean for the attribute Credential>
    weblogic.security.service.SecurityServiceRuntimeException: Problem instantiating
    Authentication Providerjavax.management.RuntimeOper
    ationsException: RuntimeException thrown by the getAttribute method of
    the DynamicMBean
    for the attribute Credential
    at weblogic.security.service.PrincipalAuthenticator.initialize(PrincipalAuthenticator.java:186)
    at weblogic.security.service.PrincipalAuthenticator.<init>(PrincipalAuthenticator.java:236)
    at weblogic.security.service.SecurityServiceManager.doATN(SecurityServiceManager.java:1506)
    at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1308)
    at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1247)
    at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1364)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1107)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:703)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:588)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:276)
    at weblogic.Server.main(Server.java:31)
    ####<Oct 1, 2002 1:59:19 PM BST> <Emergency> <WebLogicServer> <mymachine>
    <server01>
    <main> <kernel identity> <> <000
    342> <Unable to initialize the server: Fatal initialization exception
    Throwable: weblogic.security.service.SecurityServiceRuntimeException:
    Problem
    instantiating Authentication Providerjavax.management.
    RuntimeOperationsException: RuntimeException thrown by the getAttribute
    method
    of the DynamicMBean for the attribute Credential
    weblogic.security.service.SecurityServiceRuntimeException: Problem instantiating
    Authentication Providerjavax.management.RuntimeOper
    ationsException: RuntimeException thrown by the getAttribute method of
    the DynamicMBean
    for the attribute Credential
    at weblogic.security.service.PrincipalAuthenticator.initialize(PrincipalAuthenticator.java:186)
    at weblogic.security.service.PrincipalAuthenticator.<init>(PrincipalAuthenticator.java:236)
    at weblogic.security.service.SecurityServiceManager.doATN(SecurityServiceManager.java:1506)
    at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1308)
    at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1247)
    at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1364)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1107)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:703)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:588)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:276)
    at weblogic.Server.main(Server.java:31)

  • Out parameter problem with mssqlserver4v70rel510

     

    for 5.1, you can get it off our download pages.
    Joe
    ker joe wrote:
    Yes I am getting the same error. Can you point to the latest driver.
    Joseph Weinstein <[email protected]> wrote:
    Hi. I'll bet you're either running MS SQLServer 7 SP3 or SQL2000.
    If I'm right, let me know, and I'll send you the latest driver,
    which has new stuff to adapt to a change MS put in their DBMS for
    these versions.
    Joe
    Greg Williams wrote:
    I'm having a problem getting back out parameters from a stored procedureusing the
    Weblogic jDrivers with weblogic server 5.1.
    I get the exception:
    java.sql.SQLException: Invalid column number (1). Use next() to fetchthe data before
    calling any getXXX method.
    when I attempt to call a getInt on an out parameter. Here's the code:
    CallableStatement cstmtSubmit=null;
    String SubmitSQL="{ call ascs_submit_schd_pmt
    cstmtSubmit = con.prepareCall(SubmitSQL);
    cstmtSubmit.registerOutParameter(1, java.sql.Types.INTEGER);
    cstmtSubmit.setInt(2, Integer.parseInt(paymentId));
    cstmtSubmit.setString(3,co_id);
    cstmtSubmit.setString(4,pol_no);
    cstmtSubmit.setString(5,sub_pol);
    cstmtSubmit.setString(6,bus_div);
    cstmtSubmit.setString(7,agent_id);
    cstmtSubmit.setString(8,chg_start_dt);
    cstmtSubmit.setString(9,chg_stop_dt);
    cstmtSubmit.setString(10,pmt_freq);
    cstmtSubmit.setString(11,max_pmts);
    cstmtSubmit.setString(12,pmts_made);
    cstmtSubmit.setString(13,comm_amt);
    cstmtSubmit.setString(14,comm_reason);
    cstmtSubmit.setString(15,rec_flag);
    cstmtSubmit.setString(16,rec_rate);
    cstmtSubmit.setString(17,change_by);
    cstmtSubmit.setString(18,trans_dt);
    cstmtSubmit.registerOutParameter(19, java.sql.Types.INTEGER);
    cstmtSubmit.execute();
    spReturnCode=cstmtSubmit.getInt(1);
    iPaymentId = cstmtSubmit.getInt(19);
    This code should work according to the JDBC 2.0 API documentation andin fact works
    with no problems with a JdbcOdbcDriver.
    I originally wrote the stored procedure to return an int and have thelast parameter
    as an integer out parameter. Like this:
    String SubmitSQL="{? = call ascs_submit_schd_pmt
    This also works with the JdbcOdbcDriver but doesn't work with the Weblogictype 4
    driver for mssqlserver. It gives a different sqlException:
    java.sql.SQLException: Invalid column number (19). This table has 1columns (a valid
    index is 1 trough 1).
    This example works fine to return a integer, but as soon as you tryto access the
    out parameter it throws the sqlException.
    I've tried this with two versions of the mssqlserver4v70rel510 driver:
    5.1.0 for SQLserver 7.0 04/03/2000 17:05:44 #66825
    and
    5.1.0 Service Pack 9-EARLY_RELEASE for SQLserver 7.0 01/17/2001 14:01:00#96383
    - internal build by joe on client joe.nt
    Any ideas? Is this a bug in the driver or are out parameters not supportedin the
    type 4 jDriver?
    Greg--
    PS: Folks: BEA WebLogic is expanding rapidly, with both entry and advanced
    positions
    for people who want to work with Java, XML, SOAP and E-Commerce infrastructure
    products.
    We have jobs at Nashua NH, Liberty Corner NJ, San Francisco and San Jose
    CA.
    Send resumes to [email protected]

  • Instantiating a List of objects containing list fields

    I have two data objects TableBean and Column.The TableBean has a list of Column objects. I want to instantiate a TableBean on the fly. I am attaching the three classes TableBean, Column and main class. I am having difficulty instantiatng
    Instanting Class
    public class MetadataSessionBean implements MetadataSession,
    MetadataSessionLocal {
    @Resource(name="jdbc/DWDS")
    private DataSource dataSource;
    private Connection connection;
    private List<TableBean> tables = new ArrayList<TableBean>();
    private List<Column> columns = new ArrayList<Column>();
    private DatabaseMetaData dmd;
    public MetadataSessionBean() {
    public List<TableBean> getTables(){
    try{ connection = dataSource.getConnection();
    DatabaseMetaData dmd;
    dmd = connection.getMetaData();
    if (dmd ==null){
    //Not available
    }else{
    ResultSet rs = dmd.getSchemas();
    ResultSet rs1 = null;
    ResultSet rsColumns = null;
    while(rs.next()) {
    if (rs.getString(1).equalsIgnoreCase("AV_DATA")){
    rs1 = dmd.getTables(null,rs.getString(1),"%",null);
    while(rs1.next()) {
    //PROBLEM instantiating Table Bean and add the column list to the new created TableBean
    tables.add(new TableBean(rs1.getString(3)));
    rsColumns = dmd.getColumns("", rs.getString(1), rs1.getString(3), null);
    while(rsColumns.next()){
    //How do I add the below columns to the Table created using new operator
    columns.add(new Column(rsColumns.getString(4)));
    }catch (SQLException sqle){
    sqle.printStackTrace();
    return tables;
    TableBean Class
    package domain;
    import java.io.Serializable;
    import java.util.List;
    public class TableBean implements Serializable{
    private String name;
    private List<Column> columns;
    public TableBean(String name){
    this.name=name;
    public void setName(String name) {
    this.name = name;
    public String getName() {
    return name;
    public void setColumns(List<Column> columns) {
    this.columns = columns;
    public List<Column> getColumns() {
    return columns;
    Column Class
    package domain;
    import java.io.Serializable;
    public class Column implements Serializable{
    private String name;
    private String description;
    public Column(String name){
    this.name = name;
    public void setName(String name) {
    this.name = name;
    public String getName() {
    return name;
    public void setDescription(String description) {
    this.description = description;
    public String getDescription() {
    return description;
    }Edited by: jthomas1 on Aug 30, 2010 6:08 PM

    I got it, change the constructor and pass columns to the parent object

Maybe you are looking for