Applet throws "Unable to obtain Document object"

Hello,
I have an applet in a html-page and a link to show the applet (in a later version this should be a menu with links to different applets).
If I click very often (click,click,click,click) on the link I get an exception (see below).
Used environment:
- Windows 2000 English
- Internet Explorer 6
- Java(TM) Plug-in: Version 1.4.2, Using JRE version 1.4.2 Java HotSpot(TM) Client VM
Here are my 4 tiny source-codes:
1. My test Applet:
   import java.util.*;
   import javax.swing.*;
   public class BigApplet extends JApplet {
      Vector vec = new Vector();
      public void init() {
         this.getContentPane().add(new JLabel("BigApplet"));
         for (int i = 0; i < 10; i++) {
            vec.add(new Object[250000]);
   }And 3 HTML-Pages:
2. Frame.html
   <html>
      <frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
         <frame src="link.html" name="menuFrame" noresize marginheight="0" marginwidth="0">
         <frame name="applet" noresize marginheight="0" marginwidth="0">
      </frameset>
   </html>3. Link.html
   <html>
      <a href="applet.html" target="applet">Applet</a>
   </html>4. Applet.html
   <applet code="BigApplet.class" codebase="bin" />The three html pages are in the same directory and the BigApplet.class is in the bin-folder of this directory.
If I start the frame.html from Explorer and than click very fast (about 5 to 10 times) on the link to the applet I get this exception:
netscape.javascript.JSException: Unable to obtain Document object
     at sun.plugin.AppletViewer.getDocumentBase(Unknown Source)
     at sun.plugin.AppletViewer.getCodeBase(Unknown Source)
     at sun.plugin.AppletViewer.appletInit(Unknown Source)
     at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
     at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)If the applet is delivered by a webserver (tried IIS and Apache) the Internet Explorer crashes without a message. In that case I get a different exception (found in the log file of the java console):
java.lang.NullPointerException
     at sun.plugin.util.URLUtil.canonicalize(Unknown Source)
     at sun.plugin.AppletViewer.getDocumentBase(Unknown Source)
     at sun.plugin.AppletViewer.getCodeBase(Unknown Source)
     at sun.plugin.AppletViewer.appletInit(Unknown Source)
     at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
     at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)Any idee what to do to be sure that an user can not produce this error?
Bye
Thomas

Hello, I am getting the same error under different circumstances. No clicking is involved. What I need to know is what causes the error? Anyone know?
And levi_h - the end users of applets often get impatient when they don't see immediate results and will click and click and click and click, thinking that somehow they are helping the situation. You may feel they deserve to be punished, but the powers that be who are the customers who will deploy our applets don't feel that way at all, and they are the ones that pay our salaries and allow us to be sheltered, clothed, fed and send our kids to college!

Similar Messages

  • Netscape.javascript.JSException: Unable to obtain Document object

    Hi all.
    I'm fighting against a very unusual problem involving applets and, probably, version 1.4.2_XX of the jre (in fact i've been looking for an answer over the Internet and I've found only one item related in the java programming forum. Unfortunately it was not resolved on any of the answers http://forum.java.sun.com/thread.jsp?thread=452400&forum=31&message=2532663).
    The thing is that the applet is unable to obtain any information about the parameters passed through the page; consequently, it finally crashes showing this ugly message:
    netscape.javascript.JSException: Unable to obtain Document object
         at sun.plugin.AppletViewer.getDocumentBase(Unknown Source)
         at sun.plugin.AppletViewer.getCodeBase(Unknown Source)
         at sun.plugin.AppletViewer.appletInit(Unknown Source)
         at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
         at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)as I said I've been looking for information over the Internet but it seems that few people knows about it. Any suggestion? Does anybody knows if it is a mater of the IExplorer?
    The configuration of the client machine is:
    Windows XP SP1
    IExplorer 6.0
    Although the same has ocurred over:
    Windows 2000
    IExplorer 6.0
    Thank you for your time.

    Can you reproduce this error with html and applet code (and post this code)?
    A full trace might tell you something:
    To turn the full trace on you can start the java console, to be found here:
    C:\Program Files\Java\j2re1.4...\bin\jpicpl32.exe
    In the advanced tab you can fill in something for runtime parameters fill in this:
    -Djavaplugin.trace=true -Djavaplugin.trace.option=basic|net|security|ext|liveconnect
    The trace is here:
    C:\Documents and Settings\your user\Application Data\Sun\Java\Deployment\log\plugin...log

  • Microsoft Visual Studio is unable to load this document: Object reference is not set to an instance of an object

    Hi Everyone,
    Please help me on this issue. I'm a new SSIS User.
    I've installed Sql Server 2005 Developer Edition
    When I create a new SSIS Project in Business Intelligence Development Studio,
    I get the following message:
    "Microsoft Visual Studio is unable to load this document: Object reference is not set to an instance of an object".
    Error loading 'package.dtsx'bject reference is not set to an instance of an object
    When I try to debug the package, I get the below message:
    parameter Component(System.Design) is null.
    I've uninstalled and installed SS 2005 several times, yet the problem persists.
    Please help.
    This is the package.dtsx
    <?xml version="1.0"?><DTS:Executable xmlnsTS="www.microsoft.com/SqlServer/Dts" DTS:ExecutableType="MSDTS.Package.1"><DTSroperty DTS:Name="PackageFormatVersion">2</DTSroperty><DTSroperty DTS:Name="VersionComments"></DTSroperty><DTSroperty DTS:Name="CreatorName">US\kothand1</DTSroperty><DTSroperty DTS:Name="CreatorComputerName">US6051KOTHAND1</DTSroperty><DTSroperty DTS:Name="CreationDate" DTSataType="7">4/8/2008 10:53:39 AM</DTSroperty><DTSroperty DTS:Name="PackageType">5</DTSroperty><DTSroperty DTS:Name="ProtectionLevel">1</DTSroperty><DTSroperty DTS:Name="MaxConcurrentExecutables">-1</DTSroperty><DTSroperty DTS:Name="PackagePriorityClass">0</DTSroperty><DTSroperty DTS:Name="VersionMajor">1</DTSroperty><DTSroperty DTS:Name="VersionMinor">0</DTSroperty><DTSroperty DTS:Name="VersionBuild">0</DTSroperty><DTSroperty DTS:Name="VersionGUID">{FBD98635-EDDE-4F58-9D53-356E8CB653FB}</DTSroperty><DTSroperty DTS:Name="EnableConfig">0</DTSroperty><DTSroperty DTS:Name="CheckpointFileName"></DTSroperty><DTSroperty DTS:Name="SaveCheckpoints">0</DTSroperty><DTSroperty DTS:Name="CheckpointUsage">0</DTSroperty><DTSroperty DTS:Name="SuppressConfigurationWarnings">0</DTSroperty><DTSroperty DTS:Name="ForceExecValue">0</DTSroperty><DTSroperty DTS:Name="ExecValue" DTSataType="3">0</DTSroperty><DTSroperty DTS:Name="ForceExecutionResult">-1</DTSroperty><DTSroperty DTS:Name="Disabled">0</DTSroperty><DTSroperty DTS:Name="FailPackageOnFailure">0</DTSroperty><DTSroperty DTS:Name="FailParentOnFailure">0</DTSroperty><DTSroperty DTS:Name="MaxErrorCount">1</DTSroperty><DTSroperty DTS:Name="ISOLevel">1048576</DTSroperty><DTSroperty DTS:Name="LocaleID">1033</DTSroperty><DTSroperty DTS:Name="TransactionOption">1</DTSroperty><DTSroperty DTS:Name="DelayValidation">0</DTSroperty>
    <DTS:LoggingOptions><DTSroperty DTS:Name="LoggingMode">0</DTSroperty><DTSroperty DTS:Name="FilterKind">1</DTSroperty><DTSroperty DTS:Name="EventFilter" DTSataType="8"></DTSroperty></DTS:LoggingOptions><DTSroperty DTS:Name="ObjectName">Package</DTSroperty><DTSroperty DTS:Name="DTSID">{191D188C-EA6E-46D6-A46A-8C9F3C21C321}</DTSroperty><DTSroperty DTS:Name="Description"></DTSroperty><DTSroperty DTS:Name="CreationName">MSDTS.Package.1</DTSroperty><DTSroperty DTS:Name="DisableEventHandlers">0</DTSroperty></DTS:Executable>
    Thanks
    Best Regards

    No I have not yet. I've applied just the windows updates. I rebooted after the updates, but the problem persists.
    I evern tried importing the .vssettings file from my co-worker's. Also, I tried resetting the user settings
    using "%programfiles%\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" /resetuserdata.
    I'm on Windows xp 2002 service pack 2. Sql server 2005 Developer edition.
    Visual Studio info:
    Microsoft Visual Studio 2005
    Version 8.0.50727.762  (SP.050727-7600)
    Microsoft .NET Framework
    Version 2.0.50727 SP1
    Installed Edition: IDE Standard
    Microsoft Visual Studio 2005 Premier Partner Edition - ENU Service Pack 1 (KB926601)  
    This service pack is for Microsoft Visual Studio 2005 Premier Partner Edition - ENU.
    If you later install a more recent service pack, this service pack will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/926601
    SQL Server Analysis Services  
    Microsoft SQL Server Analysis Services Designer
    Version 9.00.1399.00
    SQL Server Integration Services  
    Microsoft SQL Server Integration Services Designer
    Version 9.00.1399.00
    SQL Server Reporting Services  
    Microsoft SQL Server Reporting Services Designers
    Version 9.00.1399.00
    Thanks
    Best regards

  • XML Document object access problem?

    Hi,
    I have created a servlet,which will call .sh file, which will call java application.........
    this java application is working as a search engine,which will do search in the XML document object...........This is working fine when only one user run this servlet...........But when more than servlet do the same it is not working......... But once first servlet create the Document object,which is main source for serching..........then second servlet will work fine.......same thing with third servlet and so on...... I used the thread.sleep()/synchronize but it is not working...bcoz i am accessing the same application.....Then instead of servlet i tried to run the java application from the Dos prompt..........But i am facing the same problem......So pl guide me bcoz everything is working excluding this..........Becoz this document object creation is taking some time........ i am creating the object shown below
    Document doc =parseXmlFile("Article.xml", false);
    Element docElem = doc.getDocumentElement();
    public static org.w3c.dom.Document parseXmlFile(String filename, boolean validating)
                   try {
         // Create a builder factory
         DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
         factory.setValidating(validating);
         // Create the builder and parse the file
         // org.w3c.dom.Document doc = factory.newDocumentBuilder().parse(filename);
         org.w3c.dom.Document doc = factory.newDocumentBuilder().parse(new File(filename));
         return doc;
    } catch (SAXException e) {
    // A parsing error occurred; the xml input is not valid
    } catch (ParserConfigurationException e) {
    } catch (IOException e) {
    return null;
    }

    Hi,
    This is my Servlet code..............
    package PW.Feed;
    import java.io.*;
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.StreamResult;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class PrintDom extends HttpServlet
         Document doc;
         Element docElem;
         Connection Conn=null;
         Statement stmt=null,stmt1=null;
         ResultSet rs1=null,rs=null;
         PrintWriter out;
         Vector myVector1=new Vector();
         Vector myVector2=new Vector();
         String strSql="";
         public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
              res.setContentType("text/html");
              out=res.getWriter();
              try
                   String pubtype=req.getParameter("PubType");
                   String pubDate=req.getParameter("PubDate");
                   String toDate=req.getParameter("ToDate");
                   String fromDate=req.getParameter("FromDate");
                   if(pubDate==null)pubDate="2";
                   if(toDate==null)toDate="02/09/2005";
                   if(fromDate==null)fromDate="02/08/2005";
                   Class.forName("org.firebirdsql.jdbc.FBDriver");
                   Conn = DriverManager.getConnection("jdbc:firebirdsql:192.168.0.15/3050:D:/FBDatabases/PW1.GDB","SYSDBA","cohezia");
                   //Conn = DriverManager.getConnection("jdbc:firebirdsql:192.168.0.99/3050:/share/pw1.gdb","SYSDBA","cohezia");
                   stmt = Conn.createStatement( );
                   if(pubDate.equals("2"))
                        strSql="Select sh.ARTICLEID,sh.cuttingsdate,sh.READDATE,sh.headline,sh.SUMMARY,sh.AUTHOR,sh.PAGEFROM,sh.PUB_NAME,sh.READER_NAME,sh.PARENTTITLE,sh.CANMAIL,sh.PUBLICATION_ID,sh.JOURNALIST_ID,sh.ISPDF FROM SCANSHEADER sh,PUBLICATIONS p where sh.publication_id=p.publication_id and sh.readdate>'"+fromDate+"' and sh.readdate<'"+toDate+"' and p.pubtype='"+ pubtype +"' order by sh.ARTICLEID";
                   else
                        strSql="Select sh.ARTICLEID,sh.cuttingsdate,sh.READDATE,sh.headline,sh.SUMMARY,sh.AUTHOR,sh.PAGEFROM,sh.PUB_NAME,sh.READER_NAME,sh.PARENTTITLE,sh.CANMAIL,sh.PUBLICATION_ID,sh.JOURNALIST_ID,sh.ISPDF FROM SCANSHEADER sh,PUBLICATIONS p where sh.publication_id=p.publication_id and sh.cuttingsdate>'"+fromDate+"' and sh.cuttingsdate<'"+toDate+"' and p.pubtype='"+ pubtype +"' order by sh.ARTICLEID";
                   rs=stmt.executeQuery(strSql);
                   DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                   doc = builder.newDocument();
                   docElem = doc.createElement("RECORDLIST");
                   doc.appendChild(docElem);
                   Element rootElem = doc.createElement("RECORDS");
                   docElem.appendChild(rootElem);
                   String artid="";
                   while(rs.next())
                             Element artElem = doc.createElement("RECORD");
                             if((rs.getString("ARTICLEID")).length()>0)artElem.setAttribute("id",rs.getString("ARTICLEID"));
                             rootElem.appendChild(artElem);
                             Element rootFieldElem = doc.createElement("FIELDS");
                             artElem.appendChild(rootFieldElem);
                             Element eleCuttingDate = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleCuttingDate);
                             eleCuttingDate.setAttribute("fieldName","CUTTINGSDATE");
                             if((rs.getString("CUTTINGSDATE")).length()>0) eleCuttingDate.appendChild(doc.createTextNode(rs.getString("CUTTINGSDATE")));
                             Element eleReadDate = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleReadDate);
                             eleReadDate.setAttribute("fieldName","READDATE");
                             if((rs.getString("READDATE")).length()>0) eleReadDate.appendChild(doc.createTextNode(rs.getString("READDATE")));
                             Element eleHeadLine = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleHeadLine);
                             eleHeadLine.setAttribute("fieldName","HEADLINE");
                             if((rs.getString("HEADLINE")).length()>0) eleHeadLine.appendChild(doc.createTextNode(rs.getString("HEADLINE")));
                             Element eleSummary = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleSummary);
                             eleSummary.setAttribute("fieldName","SUMMARY");
                             if(rs.getString("SUMMARY")==null){
                                  //out.println("String is null");
                                  else
                                  {eleSummary.appendChild(doc.createTextNode(rs.getString("SUMMARY")));}
                             Element eleAuthor = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleAuthor);
                             eleAuthor.setAttribute("fieldName","AUTHOR");
                             if((rs.getString("AUTHOR")).length()>0) eleAuthor.appendChild(doc.createTextNode(rs.getString("AUTHOR")));
                             Element elePageFrom = doc.createElement("FIELD");
                             rootFieldElem.appendChild(elePageFrom);
                             elePageFrom.setAttribute("fieldName","PAGEFROM");
                             if((rs.getString("PAGEFROM")).length()>0) elePageFrom.appendChild(doc.createTextNode(rs.getString("PAGEFROM")));
                             Element elePubName = doc.createElement("FIELD");
                             rootFieldElem.appendChild(elePubName);
                             elePubName.setAttribute("fieldName","PUBNAME");
                             if((rs.getString("PUB_NAME")).length()>0) elePubName.appendChild(doc.createTextNode(rs.getString("PUB_NAME")));
                             Element eleReaderName = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleReaderName);
                             eleReaderName.setAttribute("fieldName","READER NAME");
                             if((rs.getString("READER_NAME")).length()>0) eleReaderName.appendChild(doc.createTextNode(rs.getString("READER_NAME")));
                             Element eleParentTitle = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleParentTitle);
                             eleParentTitle.setAttribute("fieldName","PARENTTITLE");
                             if((rs.getString("PARENTTITLE")).length()>0)eleParentTitle.appendChild(doc.createTextNode(rs.getString("PARENTTITLE")));
                             Element eleCanMail = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleCanMail);
                             eleCanMail.setAttribute("fieldName","CANMAIL");
                             if((rs.getString("CANMAIL")).length()>0) eleCanMail.appendChild(doc.createTextNode(rs.getString("CANMAIL")));
                             Element elePublicationID = doc.createElement("FIELD");
                             rootFieldElem.appendChild(elePublicationID);
                             elePublicationID.setAttribute("fieldName","PUBLICATION_ID");
                             if((rs.getString("PUBLICATION_ID")).length()>0) elePublicationID.appendChild(doc.createTextNode(rs.getString("PUBLICATION_ID")));
                             Element eleJournlistID = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleJournlistID);
                             eleJournlistID.setAttribute("fieldName","JOURNALIST_ID");
                             if((rs.getString("JOURNALIST_ID")).length()>0) eleJournlistID.appendChild(doc.createTextNode(rs.getString("JOURNALIST_ID")));
                             Element eleIspdf = doc.createElement("FIELD");
                             rootFieldElem.appendChild(eleIspdf);
                             eleIspdf.setAttribute("fieldName","ISPDF");
                             if((rs.getString("ISPDF")).length()>0) eleIspdf.appendChild(doc.createTextNode(rs.getString("ISPDF")));
                             Element rootKeyElem=doc.createElement("KEYWORDS_CODES");
                        String[] arrCodes=getKeyCodes(rs.getString("ARTICLEID"));
                        int count1 = myVector1.size();
                        String[] myArray1=new String[count1];
                        myVector1.copyInto(myArray1);
                        int count2 = myVector2.size();
                        String[] myArray2=new String[count2];
                        myVector2.copyInto(myArray2);
                        for(int j=0;j<arrCodes.length;j++)
                             Element eleKeyword= doc.createElement("KEYWORD_CODE");
                             eleKeyword.setAttribute("CodeId",arrCodes[j]);
                             eleKeyword.setAttribute("LongName",myArray1[j]);
                             eleKeyword.setAttribute("CodeType",myArray2[j]);
                             rootKeyElem.appendChild(eleKeyword);
                        artElem.appendChild(rootKeyElem);
                   Source source = new DOMSource(docElem);
                   //File file = new File("/share/PrintDom.xml");
                   StringWriter rw=new StringWriter();
                   Result result = new StreamResult(rw);
                   //Result result = new DOMResult();
                   // Write the DOM document to the file
                   Transformer xformer = TransformerFactory.newInstance().newTransformer();
                   xformer.transform(source, result);
                   out.println(rw);
              catch (ClassNotFoundException e)
                        out.println("Unable to load Driver Class" + e);
                        return;
                        //fileLog.log(e,"PressWatchFrame1.PressWatchFrame1()");
              catch (SQLException se)
                   out.println(se);
              catch (Exception e)
                   out.println(e);
    finally{
                        try{
                             if(Conn!=null) Conn.close();
                        catch(SQLException ignored){}
         public String[] getKeyCodes(String strArticleId)
              Vector myVector=new Vector();
              myVector1.removeAllElements();
              myVector2.removeAllElements();
         try{
              stmt1=Conn.createStatement( );
              //String strSql1="Select codeid FROM SCANSSUBJECT where articleid='"+ strArticleId +"'";
              String strSql1="Select ss.codeid,c.longname,c.codetype FROM SCANSSUBJECT ss,CODES c where ss.codeid=c.codeid and articleid='"+ strArticleId +"'";
              rs1=stmt1.executeQuery(strSql1);
              String strCodes="";
              while(rs1.next())
                   myVector.add(rs1.getString("codeid"));
                   myVector1.add(rs1.getString("longname"));
                   myVector2.add(rs1.getString("codetype"));
              }catch (SQLException se)
                                       out.println(se);
              int count = myVector.size();
              String[] myArray = new String[count];
              myVector.copyInto(myArray);
              return myArray;
    ..................Thanx

  • RMI Activatable (unable to obtain activation system)

    Hello, I am new to forum... I have a simple rmi activation program.. Before writing program,I have checked some books and example in the sun site...
    Before starting to program, I command "start rmiregistry" and
    rmid -J-Djava.security.policy=rmi.policy -J-Dsun.rmi.activation.execPolicy=none
    Up to here ,everything is Ok.
    However,when I started to Setup program .I got the error Unable to obtaion activation system....
    Following my codes:
    my remote object...package impl.server;
    import java.rmi.*;
    import araclass.Kitapcik;
    import araclass.Soru;
    public interface Sinav extends Remote{
         Kitapcik bilgileriGetir() throws RemoteException;
         String sorulariGetir(Soru soru) throws RemoteException;
    package impl.activate;
    import impl.server.Sinav;
    import java.rmi.*;
    import java.rmi.activation.*;
    import araclass.Kitapcik;
    import database.Database;
    import araclass.Soru;
    public class SinavYordam extends Activatable implements Sinav{
         Database data;
         public SinavYordam(ActivationID id,MarshalledObject data) throws RemoteException{
              super(id,0);
         public Kitapcik bilgileriGetir(){
              data=new Database();
              data.baglan();
              Kitapcik kitap=data.kitapcikGetir(2);
              data.kapat();
              return kitap;
         public String sorulariGetir(Soru soru){
              String sor="";
              data=new Database();
              data.baglan();
              sor=data.soruGetir("Soru_Getir", soru.soru_no, soru.tabloAdi);
              data.kapat();
              return sor;
         public String[] siklariGetir(Soru soru){
              String[] sik;
              data=new Database();
              data.baglan();
              sik=data.siklariGetir("Soru_Getir", soru.soru_no, soru.tabloAdi);
              data.kapat();
              return sik;
    }and lastly setup program,
    import impl.server.Sinav;
    import java.rmi.*;
    import java.rmi.activation.*;
    import java.util.Properties;
    import java.util.prefs.Preferences;
    public class SinavServer {
         public SinavServer(){
         public static void main(String[] args) throws Exception{
                   System.setSecurityManager(new RMISecurityManager());
         Properties prop=new Properties();
            prop.put("java.security.policy","/workspace1/SINAV");
               ActivationGroupDesc.CommandEnvironment  cmd=null;
               ActivationGroupDesc grpdesc=new ActivationGroupDesc(prop,cmd);
              ActivationGroupID id=ActivationGroup.getSystem().registerGroup(grpdesc);
              String location="file:/workspace1/SINAV";
              ActivationDesc desc=new ActivationDesc(id,"impl.activate.SinavYordam",location,null);
              Sinav sin=(Sinav)Activatable.register(desc);
              Naming.rebind("Sinav", sin);
    } Thanks in advance..

    Actually, I got two diffirent exception in an interesting order.. I mean one day I got the following the error;
    Exception in  thread "main"  java.Access.Security.ControlException: access denied <java.io.FilePermission \\c\workspace1\SINAV read>
    at java.security.AccessControlContext.checkPermissionthat goes on...
    The other day ,
    Unable to obtain activation system exception today I could not have got so far. If I got, I would post.
    So anyone who I have an idea of this problem...
    Thanks in advance...

  • EJB 3.0: java.io.IOException: Unable to find session object ...

    Hello,
    We have an EJB3 application deployed to an Oracle AS 10.1.3.1.0 instance.
    Our main point of entry to the application is a stateful session bean (that controls access), that has injected several other stateful session beans.
    Like this:
    +@Stateful(name = "TstreamUserSession")+
    +public class TstreamUserSessionBean extends UserSessionBean implements TstreamUserSession {+
    +@EJB(name = "ContactSession")+
    private ContactSessionLocal contactSession;
    +@EJB(name = "GuestSession")+
    private GuestSessionLocal guestSession;
    +@EJB(name = "TechCustomerSession")+
    private TechCustomerSessionLocal techCustomerSession;
    +@EJB(name = "PmSession")+
    private PmSessionLocal pmSession;
    +@EJB(name = "CustomerSession")+
    private CustomerSessionLocal customerSession;
    +@EJB(name = "PartnerSession")+
    private PartnerSessionLocal partnerSession;
    +@EJB(name = "AdminSession")+
    private AdminSessionLocal adminSession;
    +@EJB(name = "SuperAdminSession")+
    private SuperAdminSessionLocal superAdminSession;
    +@EJB(name = "VmSession")+
    private VmSessionLocal vmSession;
    +public TstreamUserSessionBean() {+
    +}+
    +...+
    In this class, we also look up these sessions, because we need several instances of these, in this manner:
    +private synchronized Object getSessionInstance(String sessionName) throws AccessDeniedException {+
              +try {+
                   InitialContext ic = new InitialContext();
                   return ic.lookup("java:comp/env/" sessionName);+
              +} catch (NamingException e) {+
              +}+
         +}+
    However, we keep getting the following messages after a certain period.
    java.io.IOException: Unable to find session object 2816103596632839360 for location 'AdminSession'
    +10/01/12 11:50:04 at com.evermind.server.ejb.EJBInternalInputStream.resolveObject(EJBInternalInputStream.java:70)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.checkResolve(ObjectInputStream.java:1346)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBObject.activateBean(StatefulSessionEJBObject.java:581)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBObject.remove_X(StatefulSessionEJBObject.java:213)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBObject.remove_X(StatefulSessionEJBObject.java:159)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBHome.processTimedOutSessions(StatefulSessionEJBHome.java:371)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBHome.cleanUpMaintenance(StatefulSessionEJBHome.java:306)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.EJBTask.run(EJBTask.java:47)+
    +10/01/12 11:50:04 at com.evermind.util.Task.schedule(Task.java:51)+
    +10/01/12 11:50:04 at com.evermind.util.TaskManager.run(TaskManager.java:221)+
    +10/01/12 11:50:04 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)+
    +10/01/12 11:50:04 at java.lang.Thread.run(Thread.java:595)+
    I guess this occurs when the stateful session TstreamUserSession is reactivated?
    Or when the ones being injected are passivated?
    Any idea why this occurs, or how to suppress it, because it really spams our logs...
    Thanks.

    Hello,
    We have an EJB3 application deployed to an Oracle AS 10.1.3.1.0 instance.
    Our main point of entry to the application is a stateful session bean (that controls access), that has injected several other stateful session beans.
    Like this:
    +@Stateful(name = "TstreamUserSession")+
    +public class TstreamUserSessionBean extends UserSessionBean implements TstreamUserSession {+
    +@EJB(name = "ContactSession")+
    private ContactSessionLocal contactSession;
    +@EJB(name = "GuestSession")+
    private GuestSessionLocal guestSession;
    +@EJB(name = "TechCustomerSession")+
    private TechCustomerSessionLocal techCustomerSession;
    +@EJB(name = "PmSession")+
    private PmSessionLocal pmSession;
    +@EJB(name = "CustomerSession")+
    private CustomerSessionLocal customerSession;
    +@EJB(name = "PartnerSession")+
    private PartnerSessionLocal partnerSession;
    +@EJB(name = "AdminSession")+
    private AdminSessionLocal adminSession;
    +@EJB(name = "SuperAdminSession")+
    private SuperAdminSessionLocal superAdminSession;
    +@EJB(name = "VmSession")+
    private VmSessionLocal vmSession;
    +public TstreamUserSessionBean() {+
    +}+
    +...+
    In this class, we also look up these sessions, because we need several instances of these, in this manner:
    +private synchronized Object getSessionInstance(String sessionName) throws AccessDeniedException {+
              +try {+
                   InitialContext ic = new InitialContext();
                   return ic.lookup("java:comp/env/" sessionName);+
              +} catch (NamingException e) {+
              +}+
         +}+
    However, we keep getting the following messages after a certain period.
    java.io.IOException: Unable to find session object 2816103596632839360 for location 'AdminSession'
    +10/01/12 11:50:04 at com.evermind.server.ejb.EJBInternalInputStream.resolveObject(EJBInternalInputStream.java:70)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.checkResolve(ObjectInputStream.java:1346)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBObject.activateBean(StatefulSessionEJBObject.java:581)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBObject.remove_X(StatefulSessionEJBObject.java:213)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBObject.remove_X(StatefulSessionEJBObject.java:159)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBHome.processTimedOutSessions(StatefulSessionEJBHome.java:371)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBHome.cleanUpMaintenance(StatefulSessionEJBHome.java:306)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.EJBTask.run(EJBTask.java:47)+
    +10/01/12 11:50:04 at com.evermind.util.Task.schedule(Task.java:51)+
    +10/01/12 11:50:04 at com.evermind.util.TaskManager.run(TaskManager.java:221)+
    +10/01/12 11:50:04 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)+
    +10/01/12 11:50:04 at java.lang.Thread.run(Thread.java:595)+
    I guess this occurs when the stateful session TstreamUserSession is reactivated?
    Or when the ones being injected are passivated?
    Any idea why this occurs, or how to suppress it, because it really spams our logs...
    Thanks.

  • Unable to edit documents in InDesign CS4

    Hello,
    A work colleague has recently changed their laptop and installed CS4 - since the getting new computer he has been unable to edit documents (which are fine on my machine). He can select objects and reposition on the screen, but can't edit/delete. He can place the cursor and type new text, but can't edit existing text and is unable to move the cursor with the cursor keys.
    The objects are not on the master page or locked.
    Our Corporate IT has recently revoked all admin access to our own machines - could this affect InDesign? (No-one else seems to be effected)
    We have tried uninstalling/reinstalling and deleting the prefs, but to to avail.
    Any ideas?
    Thanks!

    Hi Peter,
    Thanks for the reply.
    My colleague had CS4 installed on his previous machine and had been using it without problem for over a year - its only since receiving his new laptop that the issues have started.
    Unfortunately, I don't think setting up a new user account is really an option (it requires assistance from our parent company's IT dept.).
    Yes, we did follow the instructions in the link when replacing the prefs files.
    Regards,
    James

  • Unable to view documents posted in SAP

    Hi,
    I am unable to view documents posted in SAP.
    Steps that i folllow:
    1) I enter the tcode fbl1n.
    2) Fill  the details and execute
    3) Click on the document number
    4) Click on Environment -> Additional Assigment->Object Link
    After it displays error message You are not authorized to use transaction SDV
    I was able to view documents till yesterday.
    I have IXOS client installed on my system.
    Kindly let me know your valuable suggestions
    Regards,
    Yasmin

    I pressume that this is not authorization issue.
    Try check this..
    Does the parameter for you is same like your teammate? (Transaction SU3)
    To access the IXOS is there any custom table maintained to enter authentic user ID. Likely to chek with ABAPer.
    In order to reset your user buffer go to SU56 and from the menu you will have option to rest the buffer. Alternatively you can get Security guys to do it in SU01(depends on table entry)/PFCG/PFUD...
    Regards,
    Arpan Paik

  • Production Order Error: "Unable to cast COM object of type 'System.__ComObj

    Hi all,
    I have the following code:
    Dim oProdOrders As SAPbobsCOM.Documents
    oProdOrders = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders)
    after the second line I get a system exception: {"Unable to cast COM object of type 'System.__ComObject' to interface type 'SAPbobsCOM.Documents'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{A6DA575B-E105-4585-9F4B-50CC4044EEDD}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."}     
    If I change document to eg oQuotations it proceeds normally.
    Any Idea?
    Thanks in advance,
    Vangelis

    try it as
    Dim oProdOrders As SAPbobsCOM.ProductionOrders
    oProdOrders = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders)

  • Unable to Obtain a Connection to Hyperion Essbase from Planning Application

    Dear All,
    I have installed FDM+Foundation+HFM+Essbase+Planning 11.1.1.3 (Tomcat)
    I have stacked with the following problem:
    when I try to open my data form, I am getting
    “Unable to obtain a connection to Hyperion Essbase. If this problem persists, please contact your administrator”
    Validate Database Connection & Validate Essbase Connection are successful throw Manage Data Source menu
    Essbase user has admin privileges
    In EAS console I can make myself sure, that my application is running
    Data Form is valid (verified in Preview screen in Data Form wizard)
    Can somebody help me with it?
    Best Regards,
    Siarhei

    Thanks, John
    Summary
    Symptoms
    When attempting to connect to Hyperion Planning as the admin user, the following error occurs:
    Unable to obtain a connection to Hyperion Essbase. If the problem persists, please contact your administrator'
    Cause
    Hyperion Planning web accesses the application by making a connection to the Planning metadata in the relational repository (via Relational repository settings) and also to Essbase via the datasource settings.
    Any Essbase connection issues indicate problems with the Essbase settings in the datasource or are related to the Essbase server.
    Solution
    - Edit the datasource via the Configuration Utility.
    - Test the Essbase connection and make sure that the user used to make the connection is valid and has admin rights to Essbase.
    - Restart the Hyperion Planning service once the Essbase user has been given the correct access rights.
    - Login to the Essbase Administration Services (EAS) console and right click on the Essbase server name node -> Refresh security from Shared Services
    - Expand the applications node (under the Essbase server name node) and check that there is an application with exactly the same name as the Planning application.
    Note: Go to section 'manually recreating a Planning application in Hyperion Essbase, if the Planning application is missing in the above step.
    - Login to the application in Hyperion Planning web.
    Manually recreating a Planning application in Essbase:
    - Login to the EAS console as admin (the Essbase user used by admin must have Essbase administrator rights)
    - Go to Essbase servers -> your Essbase server name -> right click on applications -> Create application -> Using Block Storage and enter the exact Hyperion Planning Application name then click on ok.
    Note: The above step will only create the application shell without the databases.
    - Login to the application in Hyperion Planning web as admin and go to Administration menu -> Manage Database -> select database and filters (to create filter access to Essbase) and Refresh (refresh will also recreate the databases if they don't exist)
    Best Regards,
    Siarhei

  • How can i send a XML document object over the JMS wire

              HI,
              does anybody has anyidea about sending the XML Document over the JMS and receiving
              it n the other side..
              regards,
              Akhil
              

    Is this the full stack trace?
              Akhil Nagpal wrote:
              > HI ,
              > Sorry the excepiotn is of deserialization...this is the stack trace...mistake...
              >
              > weblogic.jms.common.JMSException: Error deserializing object
              > at weblogic.jms.common.ObjectMessageImpl.getObject(ObjectMessageImpl.java:140)
              > at com.sds.kb.cm.CMMDBReceiver.onMessage(CMMDBReceiver.java:143)
              > at weblogic.ejb20.internal.MDListener.execute(MDListener.java:356)
              > at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:290)
              > at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:271)
              > at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2303)
              > at weblogic.jms.client.JMSSession.execute(JMSSession.java:2226)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
              > ----------- Linked Exception -----------
              > weblogic.jms.common.JMSException: Error deserializing object
              > at weblogic.jms.common.ObjectMessageImpl.getObject(ObjectMessageImpl.java:140)
              > at com.sds.kb.cm.CMMDBReceiver.onMessage(CMMDBReceiver.java:143)
              > at weblogic.ejb20.internal.MDListener.execute(MDListener.java:356)
              > at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:290)
              > at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:271)
              > at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2303)
              > at weblogic.jms.client.JMSSession.execute(JMSSession.java:2226)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
              >
              >
              > Akhil
              >
              >
              > "Akhil Nagpal" <[email protected]> wrote:
              >
              >>HI,
              >> Actually i have created my own class which implements serializable.
              >>I set the
              >>object of this class in the ObjectMessage and send it across. Sometime
              >>i have
              >>to send some vector,sometimes string and sometime a XML document. So
              >>i can set
              >>these type of objects in my custom serializable object and send it. For
              >>sending
              >>XML , either i can send it as a string or as u said as Document object.
              >>But i
              >>want to do send it as a Document object. So i have created a an object
              >>of "org.jdom.Document"
              >>which implement serializable and setting this object into my custom object
              >>and
              >>sending this custom object in the objectmessage. But then weblogic throws
              >>some
              >>exceptions which has nothing to do with serialization.I am printing the
              >>exception
              >>below. (without the object of org.jdom.Document this custom object reaches
              >>safely
              >>and happily:))...this exception is something related to transactions.....can
              >>you
              >>or anybody tell me what could be the reason..
              >>I am not able to think why this kind of exception comes only when i try
              >>to send
              >>the jdom's Document object and never in other cases..
              >>
              >>java.sql.SQLException: XA error: XAER_RMERR : A resource manager error
              >>has occured
              >>in the transaction branch start() failed o
              >>n resource 'oraclePool': XAER_RMERR : A resource manager error has occured
              >>in
              >>the transaction branch
              >>oracle.jdbc.xa.OracleXAException
              >> at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:483)
              >> at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:190)
              >> at weblogic.jdbc.jta.VendorXAResource.start(VendorXAResource.java:41)
              >> at weblogic.jdbc.jta.DataSource.start(DataSource.java:569)
              >> at weblogic.transaction.internal.ServerResourceInfo.start(ServerResourceInfo.java:1165)
              >> at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResourceInfo.java:1108)
              >> at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourceInfo.java:287)
              >> at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:391)
              >> at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1146)
              >> at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1101)
              >> at weblogic.jdbc.jta.Connection.getXAConn(Connection.java:145)
              >> at weblogic.jdbc.jta.Connection.createStatement(Connection.java:204)
              >> at weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionImpl.java:130)
              >> at weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.java:71)
              >> at com.sds.kb.cm.CMMDBReceiver.onMessage(CMMDBReceiver.java:134)
              >> at weblogic.ejb20.internal.MDListener.execute(MDListener.java:356)
              >> at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:290)
              >> at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:271)
              >> at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2303)
              >> at weblogic.jms.client.JMSSession.execute(JMSSession.java:2226)
              >> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
              >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
              >>
              >> at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1151)
              >>
              >>
              >>any help will be appriciated..
              >>Akhil
              >>
              >>
              >>
              >>Raj <[email protected]> wrote:
              >>
              >>>wrap it up as an object message(I think DocumentImpl is Serializable).
              >>>This way you
              >>>wont be vendor specific and can retrieve it at the other end.
              >>>
              >>>Akhil Nagpal wrote:
              >>>
              >>>
              >>>>HI Raj,
              >>>> thanks for the response..actually we dont want our application
              >>>
              >>to
              >>
              >>>be weblogic
              >>>
              >>>>specific...
              >>>> there should be some other way arround....
              >>>>
              >>>>REgards
              >>>>Akhil
              >>>>
              >>>>"Raj" <[email protected]> wrote:
              >>>>
              >>>>>There is a weblogic specific XMLMessage similar to ObjectMessage,
              >>>>
              >>>BytesMEssage
              >>>
              >>>>>etc.. Try using that to wrap ur XML document and send it across.
              >>>>>
              >>>>>-Raj
              >>>>>
              >>>>>"Akhil Nagpal" <[email protected]> wrote:
              >>>>>
              >>>>>>HI,
              >>>>>>does anybody has anyidea about sending the XML Document over the
              >>>>>
              >>>JMS
              >>>
              >>>>>>and receiving
              >>>>>>it n the other side..
              >>>>>>regards,
              >>>>>>Akhil
              >>>>>
              >
              

  • Re: Unable to obtain reference to plan in distributedenvironment

    An interface is just a definition of attributes and methods it contains no
    code.
    The code is in the class that implements the interface therefore even if you
    can pass an objet
    reference as an interface you better be sure that the object that will use
    it has access to the
    implementation. It works when it is not distributed because all of the code
    is on the client therefore
    is accessible. Once distributed the partition containing PlanSO does not
    have the library wich
    contains the code for PlanTester therefore it cannot execute code in
    PlanTester. If you
    want to do this and not put PlanTester in the same Plan as PlanSO I think
    you can copy the library wich
    contains the code for PlanTester on the server partition and it will not
    give you a deserialization error
    because now it can find the executable code.
    This could also probably happen with inheritance for example you have a
    class defined in plan A (ClassA)
    and plan B (wich has plan A supplier) contains a sub-class of ClassA
    (ClassB). Now in one partition you
    create a ClassB then pass it to another partition in a method call of
    signature Something( p1 : ClassA ).
    ClassB will fit in ClassA so you can do this (it will compile). But if the
    partition on wich you are calling
    Something() does not have access to the code in plan B then you will get a
    deserialization error.
    Hope this helps a little.
    Christian Boult ([email protected])
    Programmeur - Analyste
    Influatec inc.
    -----Original Message-----
    From: [email protected] <[email protected]>
    To: [email protected] <[email protected]>
    Date: Friday, April 16, 1999 8:25 AM
    Subject: Unable to obtain reference to plan in distributed environment
    >
    Forte Folks,
    I have run across a supplier plan problem that I think I can explain, but
    would like confirmation and maybe further explanation on.
    The scenario:
    I have three plans (PlanClasses, PlanSO, and PlanTester).
    PlanClasses has classes that PlanSO and PlanTester use, including an
    interface called Observer.
    PlanSO has the Service Object and the class that the service object
    implements. It has PlanClasses as a supplier.
    PlanSO has a method called subscribe(Observer client).
    PlanTester is a test client. It has PlanClasses as a supplier. It
    implements the Observer interface, and calls the subscribe method on the
    PlanSO passing itself as an Observer to the SO.
    Anybody see the problem yet?
    I run this scenario locally and everything is dandy.
    I run this scenario distributed and I get a deserialization exception. The
    PlanSO cannot deserialize the test client object that I had passed as an
    Observer because it cannot find a reference to the PlanTester plan.
    If I put the test client class in the PlanSO plan and partition the
    application the same way, it works. The service object needed a reference
    to the test client class even though it is getting passed as an Observer
    interface.
    Has anybody run into this before? Can anybody give me further details on
    why forte has this problem?
    I get the same exception whether the distrubted runtime property on the
    client is allowed or not allowed. If it is set to not allowed, shouldn't
    only an OID be sent across, and no serialization need take place? If the
    object is serialized, I guess it does make sense that you would need the
    details of the implementation of the interface (da class) to deserialized
    it.
    Note: I used this pattern instead of Forte events because I am going to
    expose the SO as a CORBA interface. Right now, for the forte clients that
    use the SO, I am registering for forte events which are posted by the SO to
    get around this problem.
    Thanks for any responses,
    Chris Henson
    www.atgs.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    An interface is just a definition of attributes and methods it contains no
    code.
    The code is in the class that implements the interface therefore even if you
    can pass an objet
    reference as an interface you better be sure that the object that will use
    it has access to the
    implementation. It works when it is not distributed because all of the code
    is on the client therefore
    is accessible. Once distributed the partition containing PlanSO does not
    have the library wich
    contains the code for PlanTester therefore it cannot execute code in
    PlanTester. If you
    want to do this and not put PlanTester in the same Plan as PlanSO I think
    you can copy the library wich
    contains the code for PlanTester on the server partition and it will not
    give you a deserialization error
    because now it can find the executable code.
    This could also probably happen with inheritance for example you have a
    class defined in plan A (ClassA)
    and plan B (wich has plan A supplier) contains a sub-class of ClassA
    (ClassB). Now in one partition you
    create a ClassB then pass it to another partition in a method call of
    signature Something( p1 : ClassA ).
    ClassB will fit in ClassA so you can do this (it will compile). But if the
    partition on wich you are calling
    Something() does not have access to the code in plan B then you will get a
    deserialization error.
    Hope this helps a little.
    Christian Boult ([email protected])
    Programmeur - Analyste
    Influatec inc.
    -----Original Message-----
    From: [email protected] <[email protected]>
    To: [email protected] <[email protected]>
    Date: Friday, April 16, 1999 8:25 AM
    Subject: Unable to obtain reference to plan in distributed environment
    >
    Forte Folks,
    I have run across a supplier plan problem that I think I can explain, but
    would like confirmation and maybe further explanation on.
    The scenario:
    I have three plans (PlanClasses, PlanSO, and PlanTester).
    PlanClasses has classes that PlanSO and PlanTester use, including an
    interface called Observer.
    PlanSO has the Service Object and the class that the service object
    implements. It has PlanClasses as a supplier.
    PlanSO has a method called subscribe(Observer client).
    PlanTester is a test client. It has PlanClasses as a supplier. It
    implements the Observer interface, and calls the subscribe method on the
    PlanSO passing itself as an Observer to the SO.
    Anybody see the problem yet?
    I run this scenario locally and everything is dandy.
    I run this scenario distributed and I get a deserialization exception. The
    PlanSO cannot deserialize the test client object that I had passed as an
    Observer because it cannot find a reference to the PlanTester plan.
    If I put the test client class in the PlanSO plan and partition the
    application the same way, it works. The service object needed a reference
    to the test client class even though it is getting passed as an Observer
    interface.
    Has anybody run into this before? Can anybody give me further details on
    why forte has this problem?
    I get the same exception whether the distrubted runtime property on the
    client is allowed or not allowed. If it is set to not allowed, shouldn't
    only an OID be sent across, and no serialization need take place? If the
    object is serialized, I guess it does make sense that you would need the
    details of the implementation of the interface (da class) to deserialized
    it.
    Note: I used this pattern instead of Forte events because I am going to
    expose the SO as a CORBA interface. Right now, for the forte clients that
    use the SO, I am registering for forte events which are posted by the SO to
    get around this problem.
    Thanks for any responses,
    Chris Henson
    www.atgs.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • ORA-13050: unable to construct spatial object

    Hi
    I'm executing the following query
    select mdsys.sdo_geom.sdo_intersection (geoloc, :1, 20) geoloc, mdsys.sdo_geom.sdo_distance (mdsys.sdo_geom.sdo_intersection (geoloc, :2, 20), :3, 20) distance
    from streets
    where mdsys.sdo_relate (geoloc, :5, 'mask=touch querytype=window') = 'TRUE'
    order by distance
    In some locations the query works perfectly and in some other locations it throws
    ORA-13050: unable to construct spatial object
    Regards,
    Néstor Boscán

    I found the problem
    It seems I have invalid polygons in my data.
    Regards,
    Néstor Boscán

  • Obtaining CORBA Object References

    I have found two separate references on the Sun site to the different ways in which clients may reference CORBA objects. In each case, three methods are listed, but one item in each list seems to be different from the 'corresponding' item in the other list.
    At URL http://java.sun.com/j2se/1.3/docs/guide/idl/jidlInitialization.html, the following list is given:
    1. From a string that was specially created from an object reference
    2. From another object, such as a naming context
    3. From the ORB operation resolve_initial_references()
    [Numbers added by me for ease of reference.]
    At URL http://java.sun.com/j2se/1.3/docs/guide/idl/jidlUsingCORBA.html, the following list is given:
    1. from a factory object. For example, the client could invoke a create method on DocumentFactory
    object in order to create a new Document. The DocumentFactory create method would return an
    object refererence for Document to the client.
    2. from the nameservice. For example, the client could obtain an object reference for the
    DocumentFactory by issuing a request on the nameservice.
    3. From a string that was specially created from an object reference
    Though items 1 and 2 from the first list seem to correspond closely to items 3 and 2 respectively from the second list, item 3 (list 1) and item 1(list 2) do not. Does anybody know how this apparent anomaly can be resolved and which (if either) of these lists is (more?) correct?
    Thanks in anticipation.
    Jan

    There really is not an anomaly here. What you are indicating as an anomaly is really two distinct things.
    There are always two steps here:
    1. How does your client get the initial object reference to the server object(s). The list 1 comprehensively describes that. Typically the initial object references will be few.
    2. Once the initial references are acquired, client can make calls using these initial references to get other object references, during the clients life time. The item 1 in list 2 is a way of doing this.
    The list 1 is giving you ALL possible ways of acquiring an object reference for the very FIRST time.
    Item 1 in list 2 is actually suggesting a pattern or a way or doing something. For example, if your client wishes to create multiple objects of a certain family, you can use a DocumentFactory on the server side. You would acquire initial reference to the DocumentFactory using one of the ways described in List 1. Once the client has the DocumentFactory reference, it can call create on it to create Document objects on the server side. Also, the create() method will return a reference to the Document object to the client.

  • Client Install Fails - Unable to get Win32_OperatingSystem object

    I have a PC that won't install the SCCM client via Client Push.  In the CCM.Log file on the site server, it connects to the IPC$ and admin$ shares using my client installation account, but then it comes back with this error:
    ---> Unable to get Win32_OperatingSystem object from WMI on remote machine "PCNAME", error = 0x80080005.
    I know that error means that access was denied to WMI, and I verified that when I run wbemtest manually (using the same client installation account), I can connect to the root\cimv2 object on that PC but when I try to enumerate the instances of the Win32_OperatingSystem object, I get the same error.
    I also tried using Computer Management applet (remotely - I have no local access to this PC) to look at the WMI Control properties.  Again, I get the same access denied error so I can't check/change the security permissions that way.
    I have verified that my client installation account is in the local Administrators group of the PC.  I've already tried rebuilding the WMI repository - that worked but it didn't fix the access issue.  I know I can install the client manually but I'm guessing I'd still have a problem with inventories, etc. that are dependent on access to that WMI object.  Any suggestions about how to go about fixing the WMI access issue?
    Thanks so much, --Jo

    Finally getting back to this issue after vacaton... sigh.
    I got a little further.  I took client push out of the mix and ran ccmsetup.exe locally on the PC.  This time the client installation ran.  However, I'm still getting a similar error from the client itself and the client is not talking to the site.  After the client was installed, only about 10 of the log files showed up in system32\ccm\logs. 
    ccmexec.log shows this error: 
    Endpoint'PolicyAgent_PolicyEvaluator' return 0x80070057 from event notification
    PolicyAgentProvider.log has these lines repeating:
    Failed to create actual config class for 'CCM_RootCACertificates' 
    Failed to update namespace 'Machine' (80041002) 
    Successfully updated namespace 'DefaultMachine' 
    Successfully updated namespace 'DefaultUser' 
    Failed to create actual config class for 'CCM_MulticastConfig' 
    Failed to update namespace 'Machine' (80041002) 
    PolicyEvaluator.log has this error:
    Received notification that Local policy has changed. 
    Failed to trigger Machine settings update (80070057)
    SrcUpdateManager has these errors:
    Instance of CCM_SourceUpdateClientConfig doesn't exist in WMI
    Failed to get instance of CCM_SourceUpdateHistory, error 80041002
    ClientIDManagerStartup.log has these errors:
    GetSystemEnclosureInfo failed (0x80080005)
    ComputeHardwareID failed (0x80080005).
    RegTask: Failed to create registration request body. Error: 0x80080005
    The rest of the logs that exist (LocationServices, StatusAgent, ClientLocation, RemCtrl, and setuppolicyevaluator) appear to be OK. 
    These seem to all be WMI-related errors/issues, but I can't find any specific information on any SCCM/SMS websites/forums that address these particular errors in these particular log files.  I've tried rebuilding the repository (several times), I've done the regsvr stuff as discussed above, etc. 
    I ran WMIDIAG next.  It ran for a little less than two hours - not sure if that's normal or not, but the log file continued to update the entire time.  Now I have this log file and I'm not sure what to do with the issues I found.  I'm looking at the WMI REPORT: BEGIN section...  I see instructions that make sense for most of the errors.  However, the section of log file below shows the area that is most likely causing issues for SCCM because it is the same error I get on the client install.  I have no idea how to fix this stuff - any help would be appreciated:
    31997 14:20:05 (1) !! ERROR: WMI ENUMERATION operation errors reported: .......................................... 33 ERROR(S)!
    31998 14:20:05 (0) ** - ROOT/CIMV2, InstancesOfAsync, CIM_USBDevice, 0x80080005 - .
    31999 14:20:05 (0) ** - ROOT/CIMV2, InstancesOfAsync, CIM_USBHub, 0x80080005 - .
    32000 14:20:05 (0) ** - ROOT/CIMV2/SMS, InstancesOfAsync, SMS_Class_Template, 0x80041011 - (WBEM_E_PROVIDER_NOT_FOUND) Provider referenced in the schema does not have a corresponding registration.
    32001 14:20:05 (0) ** - Root/Default, InstancesOf, SystemRestore, 0x80080005 - Server execution failed.
    32002 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_Process, 0x80080005 - Server execution failed.
    32003 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_OperatingSystem, 0x80080005 - Server execution failed.
    32004 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_ComputerSystem, 0x80080005 - Server execution failed.
    32005 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_Service, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32006 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_Bios, 0x80080005 - Server execution failed.
    32007 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_Tcpip_IP, 0x80080005 - Server execution failed.
    32008 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_Tcpip_TCP, 0x80080005 - Server execution failed.
    32009 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_Tcpip_UDP, 0x80080005 - Server execution failed.
    32010 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_Tcpip_ICMP, 0x80080005 - Server execution failed.
    32011 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfOS_Cache, 0x80080005 - Server execution failed.
    32012 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfOS_Memory, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32013 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfOS_Objects, 0x80080005 - Server execution failed.
    32014 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfOS_PagingFile, 0x80080005 - Server execution failed.
    32015 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfOS_Processor, 0x80080005 - Server execution failed.
    32016 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfOS_System, 0x80080005 - Server execution failed.
    32017 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfProc_Process, 0x80080005 - Server execution failed.
    32018 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfProc_Thread, 0x80080005 - Server execution failed.
    32019 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_Tcpip_IP, 0x80080005 - Server execution failed.
    32020 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_Tcpip_TCP, 0x80080005 - Server execution failed.
    32021 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_Tcpip_UDP, 0x80080005 - Server execution failed.
    32022 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_Tcpip_ICMP, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32023 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfOS_Cache, 0x80080005 - Server execution failed.
    32024 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfOS_Memory, 0x80080005 - Server execution failed.
    32025 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfOS_Objects, 0x80080005 - Server execution failed.
    32026 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfOS_PagingFile, 0x80080005 - Server execution failed.
    32027 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfOS_Processor, 0x80080005 - Server execution failed.
    32028 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfOS_System, 0x80080005 - Server execution failed.
    32029 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfProc_Process, 0x80080005 - Server execution failed.
    32030 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfProc_Thread, 0x80080005 - Server execution failed.
    32031 14:20:05 (0) **
    32032 14:20:05 (1) !! ERROR: WMI EXECQUERY operation errors reported: ............................................ 17 ERROR(S)!
    32033 14:20:05 (0) ** - Root/Default, SELECT * FROM SystemRestore, 0x80080005 - Server execution failed.
    32034 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_LogicalDisk WHERE FreeSpace > 10000000 AND DriveType = 3, 0x80080005 - Server execution failed.
    32035 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_PageFileUsage, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32036 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_BIOS WHERE Version IS NOT NULL, 0x80080005 - Server execution failed.
    32037 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_NetworkAdapter WHERE AdapterType IS NOT NULL AND AdapterType != "Wide Area Network (WAN)" AND Description != "Packet Scheduler Miniport", 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32038 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_Processor WHERE Name IS NOT NULL, 0x80080005 - Server execution failed.
    32039 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_DiskDrive, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32040 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_ComputerSystem, 0x80080005 - Server execution failed.
    32041 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_DiskPartition, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32042 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_LogicalDisk WHERE Description != "Network Connection", 0x80080005 - Server execution failed.
    32043 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_SoundDevice, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32044 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_VideoController, 0x80080005 - Server execution failed.
    32045 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_USBController, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32046 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_DesktopMonitor, 0x80080005 - Server execution failed.
    32047 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_PointingDevice WHERE Status = "OK", 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32048 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_Keyboard, 0x80080005 - Server execution failed.
    32049 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_SystemDriver WHERE StartMode != "Disabled", 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32050 14:20:05 (0) **
    32051 14:20:05 (0) ** WMI PUT operations: ........................................................................ OK.
    32052 14:20:05 (0) ** WMI DELETE operations: ..................................................................... OK.
    32053 14:20:05 (0) ** WMI GET VALUE operations: .................................................................. OK.
    32054 14:20:05 (0) ** WMI static instances retrieved: ............................................................ 1541.
    32055 14:20:05 (0) ** WMI dynamic instances retrieved: ........................................................... 0.
    32056 14:20:05 (0) ** WMI instances request cancellations (to limit performance impact): ......................... 0.
    32057 14:20:05 (0) **
    32058 14:20:05 (0) ** 38 error(s) 0x80080005 - (WBEM_UNKNOWN) This error code is external to WMI.
    32059 14:20:05 (0) **
    32060 14:20:05 (0) ** 1 error(s) 0x80041011 - (WBEM_E_PROVIDER_NOT_FOUND) Provider referenced in the schema does not have a corresponding registration
    32061 14:20:05 (0) ** => This error is typically due to the following major reasons:
    32062 14:20:05 (0) **    - The application queried by the WMI provider is not installed, not available or not running
    32063 14:20:05 (0) **      at the time of the request was made. This error can also be generated because
    32064 14:20:05 (0) **      the application supporting the providers has been uninstalled.
    32065 14:20:05 (0) **    - The WMI provider binary files are not accessible (e.g. access denied ACL).
    32066 14:20:05 (0) **    - A WMI provider registration problem at the CIM level (MOFCOMP.EXE) or at the COM level (REGSVR32.EXE).
    32067 14:20:05 (0) **      You must re-register the WMI provider by recompiling its associated MOF file with MOFCOMP.EXE
    32068 14:20:05 (0) **    Note: - If the WMI provider DLL CIM and COM registrations are correct, this error can
    32069 14:20:05 (0) **            be returned because the provider has a dependency on another DLL that cannot be
    32070 14:20:05 (0) **            loaded (missing or bad DLL)
    32071 14:20:05 (0) **          - Dependencies can be found with the DEPENDS.EXE tool coming with the
    32072 14:20:05 (0) **            Windows XP and Windows 2003 Support Tools. The command line is as follows:
    32073 14:20:05 (0) **            e.g. DEPENDS.EXE <PATH><Provider.DLL>
    32074 14:20:05 (0) ** => If the software has been de-installed intentionally, then this information must be
    32075 14:20:05 (0) **    removed from the WMI repository. You can use the 'WMIC.EXE' command to remove the provider
    32076 14:20:05 (0) **    registration data and its set of associated classes.
    32077 14:20:05 (0) ** => To correct this situation, you can:
    32078 14:20:05 (0) **    - Install or start the application supporting these providers.
    32079 14:20:05 (0) **    - Register the providers in CIM (MOFCOMP) or DCOM (REGSVR32).
    32080 14:20:05 (0) **    Note: In this case the provider should also be listed in the 'missing WMI
    32081 14:20:05 (0) **          provider DCOM registrations' or in the 'missing WMI provider files' section.
    32082 14:20:05 (2) !! WARNING: Re-registering with REGSVR32.EXE all DLL from 'C:\WINDOWS\SYSTEM32\WBEM\'
    32083 14:20:05 (0) **          may not solve the problem as the DLL supporting the WMI class(es)
    32084 14:20:05 (0) **          can be located in a different folder.
    32085 14:20:05 (0) **          You must refer to the class name to determine the software delivering the related DLL.
    32086 14:20:05 (0) **
    Thanks, --Jo

Maybe you are looking for

  • How do I change the location of my music in itunes?

    Recently my hard drive had died. Luckily I had a back-up drive with all my music on it. But everytime I want to play a song - itunes asks me where the song is, and I have to manually point to it on the back-up drive. I was wondering if there's a way

  • Clearfloat problem-extra space remains in IE

    Hi, I've worked on this problem, did the Google thing, but I just can't resolve it. There is extra space remaining under the image even after using clearfloat. I want the bottom border to snug up to the bottom of the image, but somehow in IE I keep g

  • My touchscreen on my iPhone stuffs up

    My iPhone now (all of a sudden) will have the Screen temporarily not working, it will work and then for a short period of time I can't type Sometimes putting it on sleep And back again helps but it just stops working everything Is this something that

  • Trying to reconect my Microsoft Enterouge to my MacBook Pro 15th through Time Machine?  Anybody know where to find it?

    trying to reconect my Microsoft Enterouge to my MacBook Pro 15th through Time Machine?  Anybody know where to find it in Time Machine?

  • I have sounds problems with iOS 7

    I have sounds problems with iOS 7. I can not hear my music, all the apps have no sounds. Only when I ask Siri has sound but it's too loud and awful. I found 2 errors with I ask to Siri what things she can do in Spanish the is an error and one word or