Trying to access methods from a .class file by creating instance of class

Hey all,
I'm hoping you can help. I've been given a file "Input.class" with methods such as readInt(), readString(), etc. I have tried creating instances of this class to make use of it, but I receive the error "cannot find symbol : class Input".
If you could help at all, I would greatly appreciate it.
Here's my code. The first is the base program, the second is the driver.
import java.util.*;
public class CarObject
     private String makeType = "";
     private String modelType = "";
     private int yearOfRelease = 0;
     private double numOfMiles = 0.0;
     public void setFilmTitle(String make)
          makeType = make;
     public void setMediaType(String model)
          modelType = model;
     public void setYearOfRelease(int year)
          yearOfRelease = year;
     public void setNumOfMiles(double miles)
          numOfMiles = miles;
     public String getMakeType()
          return makeType;
     public String getModelType()
          return modelType;
     public int getYearOfRelease()
          return yearOfRelease;
     public double getNumOfMiles()
          return numOfMiles;
The program is used by a rental car company and the object takes on desired attributes.
import java.util.*;
public class TestCarObject
     static Scanner keyboard = new Scanner(System.in);
     public static void main(String[] args)
          System.out.println("Please answer the following questions regarding your rental car order.");
          Input carinput = new Input();
          String makeType = carinput.readString("Enter your desired make of car: ");          
          String modelType = carinput.readString("Enter your desired model of car: ");
          int yearOfRelease = carinput.readInt("Enter the oldest acceptable year of release to rent: ");
          double numOfMiles = carinput.readDouble("Enter the highest acceptable number of miles: ");
          System.out.println("Make: " + makeType);
          System.out.println("Model: " + makeType);
          System.out.println("Year: " + makeType);
          System.out.println("Mileage: " + makeType);
}

No, I don't know the package name....Is there a way
to import the Input.class by itself without importing
the entire packge?
I tried extending the driver program too...It didn't
work either...
Message was edited by:
BoxMan56How do you know you have a class called Input.class ?
You got a jar file which contains it ? or just a simple .class file ?
You have to set the classpath in either case.
But for the former, you should also need to explicitly telling which package containing the class file you looking for (i.e. Input.class)
e.g. java.util.Vector which is a class called Vector inside java.util package.
You don't have to import the whole package, but you should tell which package this class belongs to.

Similar Messages

  • Am trying to access photoshop from bridge tool menu to load files into photoshop. only have illustrator

    I am trying to access photoshop from the bridge tool menu so i can go to, load files into photoshop layers. I don't have photoshop listed under menu, just illustrator.

    <moved from Adobe Creative Cloud to Bridge General Discussion>

  • Spring java.lang.IllegalAccessError: tried to access method org.springframe

    Hi
    I am looking to use OEPE to allow me to adapt a RAD approach to the web part of our applications while keeping our CI builds consistant.
    We use WebLogic 10.3 with struts 1.2.9, Spring 2.5, Hibernate 3.X and maven 2.
    I am using Eclipse 3.5 SR1 with OEPE version Oracle Enterprise Pack for Eclipse 11.1.1.3.0
    I created a test Dynamic Web Application using maven 2 and this works OK with a test WebLogic Server 10.3. I then deleted this from the WebLogic Server so I could try using it with OEPE.
    I deploy this Dynamic Web Application using OEPE (via autogenerated_ear_) to WebLogic Server
    My initial problems were classpath errors where it seems that my Maven dependent jars were NOT picked up by my web application. To overcome this I copied the maven dependencies to <my web app>\src\main\webapp\WEB-INF\lib
    I could then use my initial struts action but failed with:
    Root cause of ServletException.
    java.lang.IllegalAccessError: tried to access method org.springframework.web.struts.ActionSupport.getWebApplicationContext()Lorg/springframework/web/context/WebApplicationContext; from class com.myco.springtxn.web.struts.SaveNewCakeAction_beaVersion0_7
         at com.myco.springtxn.web.struts.SaveNewCakeAction_beaVersion0_7.execute(SaveNewCakeAction.java:31)
         at com.myco.springtxn.web.struts.SaveNewCakeAction.execute(SaveNewCakeAction.java)
         CakeService cakeService = (CakeService) getWebApplicationContext().getBean("cakeService");
    Some more data:
    TRACE:
    Saving Cake with name oepe cake and description copied in jars
    <24-Oct-2009 21:13:16 o'clock BST> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@d9f6cb - appName: '_auto_generated_ear_', name: 'sdw', context-path: '/sdw', spec-version: '2.5', request: weblogic.servlet.internal.ServletRequestImpl@148bedb[
    POST /sdw/saveNewCake.do HTTP/1.1
    Accept: */*
    Referer: http://localhost:7001/sdw/enterCake.do
    Accept-Language: en-gb
    Content-Type: application/x-www-form-urlencoded
    UA-CPU: x86
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; NGD_build; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Content-Length: 41
    Connection: Keep-Alive
    Cache-Control: no-cache
    Cookie: refresh=; JSESSIONID=dG4BKjLBdL3LWMPkJG3r1Tw64hjpBMWwvplvypkGZlTYhb6cJD9M!-36198065; ADMINCONSOLESESSION=7gyTKjLQgQfNlPlQ1cBydQXgHcgljjQn8tnHL4Qn5GWr8pLWZG0W!1523650153
    ]] Root cause of ServletException.
    java.lang.IllegalAccessError: tried to access method org.springframework.web.struts.ActionSupport.getWebApplicationContext()Lorg/springframework/web/context/WebApplicationContext; from class com.myco.springtxn.web.struts.SaveNewCakeAction_beaVersion0_7
         at com.myco.springtxn.web.struts.SaveNewCakeAction_beaVersion0_7.execute(SaveNewCakeAction.java:31)
         at com.myco.springtxn.web.struts.SaveNewCakeAction.execute(SaveNewCakeAction.java)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.utils.FastSwapFilter.doFilter(FastSwapFilter.java:66)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    I AM USING;
    1. Operating System - Windows XP Professional
    2. Eclipse Version - 3.5.1
    3. WLS Version - 10.3
    4. Brief app shape description. Dynamic Web App
    5. The .classpath a
    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
         <classpathentry kind="src" output="target/classes" path="src/main/java"/>
         <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
         <classpathentry kind="con" path="oracle.eclipse.tools.weblogic.lib.system">
              <attributes>
                   <attribute name="owner.project.facets" value="jst.web"/>
              </attributes>
         </classpathentry>
         <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
         <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
         <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Spring2.5">
              <attributes>
                   <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
                   <attribute name="owner.project.facets" value="oracle.struts;spring.core"/>
              </attributes>
         </classpathentry>
         <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Struts">
              <attributes>
                   <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
                   <attribute name="owner.project.facets" value="oracle.struts"/>
              </attributes>
         </classpathentry>
         <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
         <classpathentry kind="output" path="target/classes"/>
    </classpath>
    web app cache
    <webapp-structure>
    <registeredFiles>
    <entry>
    <string>currentBuild</string>
    <path-set>
    <pathsSet class="linked-hash-set">
    <string>index.jsp</string>
    <string>META-INF/MANIFEST.MF</string>
    <string>pages/cakeSavedInfo.jsp</string>
    <string>pages/enterCake.jsp</string>
    <string>pages/welcome.jsp</string>
    <string>WEB-INF/applicationContext.xml</string>
    <string>WEB-INF/config/struts-config.xml</string>
    <string>WEB-INF/tld/c.tld</string>
    <string>WEB-INF/tld/fmt.tld</string>
    <string>WEB-INF/tld/struts-bean.tld</string>
    <string>WEB-INF/tld/struts-html-el.tld</string>
    <string>WEB-INF/tld/struts-html.tld</string>
    <string>WEB-INF/tld/struts-logic.tld</string>
    <string>WEB-INF/tld/struts-tiles.tld</string>
    <string>WEB-INF/web.xml</string>
    <string>WEB-INF/weblogic.xml</string>
    <string>WEB-INF/classes/com/myco/springtxn/web/controller/CakeController.class</string>
    <string>WEB-INF/classes/com/myco/springtxn/web/controller/spring/AnnotatedSpringCakeController.class</string>
    <string>WEB-INF/classes/com/myco/springtxn/web/struts/CakeForm.class</string>
    <string>WEB-INF/classes/com/myco/springtxn/web/struts/EnterNewCakeAction.class</string>
    <string>WEB-INF/classes/com/myco/springtxn/web/struts/SaveNewCakeAction.class</string>
    <string>WEB-INF/classes/com/myco/springtxn/web/util/Logging.class</string>
    <string>WEB-INF/lib/SpringTxnServices-0.0.1-SNAPSHOT.jar</string>
    <string>WEB-INF/lib/spring-2.5.6.jar</string>
    <string>WEB-INF/lib/commons-logging-1.0.4.jar</string>
    <string>WEB-INF/lib/commons-lang-2.4.jar</string>
    <string>WEB-INF/lib/hibernate-core-3.3.1.GA.jar</string>
    <string>WEB-INF/lib/antlr-2.7.2.jar</string>
    <string>WEB-INF/lib/commons-collections-3.1.jar</string>
    <string>WEB-INF/lib/dom4j-1.6.1.jar</string>
    <string>WEB-INF/lib/xml-apis-1.0.b2.jar</string>
    <string>WEB-INF/lib/jta-1.1.jar</string>
    <string>WEB-INF/lib/slf4j-api-1.5.2.jar</string>
    <string>WEB-INF/lib/hibernate-annotations-3.4.0.GA.jar</string>
    <string>WEB-INF/lib/ejb3-persistence-1.0.2.GA.jar</string>
    <string>WEB-INF/lib/hibernate-commons-annotations-3.1.0.GA.jar</string>
    <string>WEB-INF/lib/hibernate-entitymanager-3.4.0.GA.jar</string>
    <string>WEB-INF/lib/javassist-3.4.GA.jar</string>
    <string>WEB-INF/lib/hibernate-validator-3.1.0.GA.jar</string>
    <string>WEB-INF/lib/slf4j-log4j12-1.5.2.jar</string>
    <string>WEB-INF/lib/log4j-1.2.14.jar</string>
    <string>WEB-INF/lib/SpringLegacyModule-0.0.1-SNAPSHOT.jar</string>
    <string>WEB-INF/lib/struts-1.2.9.jar</string>
    <string>WEB-INF/lib/commons-beanutils-1.7.0.jar</string>
    <string>WEB-INF/lib/commons-digester-1.6.jar</string>
    <string>WEB-INF/lib/commons-fileupload-1.0.jar</string>
    <string>WEB-INF/lib/commons-validator-1.1.4.jar</string>
    <string>WEB-INF/lib/oro-2.0.7.jar</string>
    <string>WEB-INF/lib/xalan-2.5.1.jar</string>
    <string>WEB-INF/lib/struts-el-1.2.9.jar</string>
    <string>WEB-INF/lib/standard-1.0.6.jar</string>
    <string>WEB-INF/lib/jstl-1.1.2.jar</string>
    <string>WEB-INF/lib/spring-webmvc-struts-2.5.6.jar</string>
    <string>WEB-INF/lib/spring-beans-2.5.6.jar</string>
    <string>WEB-INF/lib/spring-core-2.5.6.jar</string>
    <string>WEB-INF/lib/spring-context-2.5.6.jar</string>
    <string>WEB-INF/lib/aopalliance-1.0.jar</string>
    <string>WEB-INF/lib/spring-web-2.5.6.jar</string>
    <string>WEB-INF/lib/spring-webmvc-2.5.6.jar</string>
    <string>WEB-INF/lib/spring-context-support-2.5.6.jar</string>
    </pathsSet>
    </path-set>
    </entry>
    </registeredFiles>
    </webapp-structure>

    Got back to testing this (been busy in my day job). I realised that I had not tested hot deployment. So I switched on FastSwop by adding the following the the weblogic.xml (of the web applicatiion):
    Gives
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; NGD_build; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Content-Length: 22
    Connection: Keep-Alive
    Cache-Control: no-cache
    Cookie: JSESSIONID=T6PTK7yS3jdJzzLsP5nNB6TNCyLFMcYxZf8j1rRRGBXZ8hSbBQT2!580994594
    ]] Root cause of ServletException.
    java.lang.IllegalAccessError: tried to access method org.springframework.web.struts.ActionSupport.getWebApplicationContext()Lorg/springframework/web/context/WebApplicationContext; from class com.myco.springtxn.web.struts.SaveNewCakeAction_beaVersion0_8
         at com.myco.springtxn.web.struts.SaveNewCakeAction_beaVersion0_8.execute(SaveNewCakeAction.java:31)
         at com.myco.springtxn.web.struts.SaveNewCakeAction.execute(SaveNewCakeAction.java)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
         Truncated. see log file for complete stacktrace
    >
    I find this sad since using tomcat I can hot deploy without any problem

  • Error while trying to access repository from Application Explorer

    Hi All,
    I am trying to access the targets which I had previously created from AE. Everything was working fine. When I tried running iwae.sh script and open the target from AE it throws below error today.
    com.iwaysoftware.iwrepository.RepositoryException
    at com.iwaysoftware.iwrepository.xml.XMLRepository.end(XMLRepository.java:272)
    at com.iwaysoftware.iwrepository.xml.file.FileRepository.end(FileRepository.java:436)
    at com.iwaysoftware.iwrepository.xml.XMLQuery.executeQuery(XMLQuery.java:863)
    at com.iwaysoftware.af.container.IWAFRepositoryOP.getConfigs(IWAFRepositoryOP.java:167)
    at com.iwaysoftware.af.container.IWAFRepositoryStorage.listConfigurations(IWAFRepositoryStorage.java:215)
    at com.iwaysoftware.af.container.ChannelManager.listConfigurations(ChannelManager.java:100)
    at com.iwaysoftware.af.container.IWAFContainer.listChannelConfigurations(IWAFContainer.java:360)
    at com.iwaysoftware.af.container.AEManager.buildChannelList(AEManager.java:252)
    Not sure what has changed? Is this a corruption with the repository.xml file ? Is there any way to get around this error.
    Regards
    Subhankar

    Hi all,
    The above mentioned solution is a good idea but in this context not appropriate as it aims at resolving an issue in the delivered Content Version of 0TCT_VC11.
    In your case, you already have 0TCT_VC11 activated and you can not read any data from this VirtualProvider in queries. Right?
    In that case, you have to:
    1. Check that the entire data flow is active for the InfoProvider (activation should occur for the MYSELF source system): 0TCT_VC11 with InfoSource 0TCT_IS11 with DataSource 0TCT_DS11
    2. Activate the direct access for the VirtualProvider (Context menu of 0TCT_VC_11 > Activate Direct Access > Source Syst. for InfoSource3.x > Mark the column with the MYSELF source system and Save).
    This corresponds to Installation "Step 5.) Activate direct access for virtual providers" that is mentioned in SAP Note 934848 "Collective note: (FAQ) BI Administration Cockpit".
    Best regards,
    Rudolf Hennecke
    SAP NetWeaver RIG BI

  • I am trying to delete pages from a PDF file. I opened the bookmarks, selected the pages to delete and choose Edit Delete. The selected pages are not deleted. Note: I have to open the file using a passport provided by an external party.

    I am trying to delete pages from a PDF file. I opened the bookmarks in the PDF file, selected the pages to delete and choose Edit > Delete. The selected pages are not deleted. Note: I have to open the file using a passport provided by an external party.

    Resolved

  • Error while trying to access dashboards from EPM

    Hi
    We integrated OBIEE 10.1.3.4 with EPM 11.2 and when we are trying to access dashboards from EPM we are facing the following error : "Invalid or could not find module configuration."
    Please , help us in solving the above issue.
    Thanks.

    Hi all,
    The above mentioned solution is a good idea but in this context not appropriate as it aims at resolving an issue in the delivered Content Version of 0TCT_VC11.
    In your case, you already have 0TCT_VC11 activated and you can not read any data from this VirtualProvider in queries. Right?
    In that case, you have to:
    1. Check that the entire data flow is active for the InfoProvider (activation should occur for the MYSELF source system): 0TCT_VC11 with InfoSource 0TCT_IS11 with DataSource 0TCT_DS11
    2. Activate the direct access for the VirtualProvider (Context menu of 0TCT_VC_11 > Activate Direct Access > Source Syst. for InfoSource3.x > Mark the column with the MYSELF source system and Save).
    This corresponds to Installation "Step 5.) Activate direct access for virtual providers" that is mentioned in SAP Note 934848 "Collective note: (FAQ) BI Administration Cockpit".
    Best regards,
    Rudolf Hennecke
    SAP NetWeaver RIG BI

  • I created a class file , if i execute this class file it has to be always o

    i created a class file , if i execute this class file it has to be always on top if i open any other programms or applications then also this class file application has to show me on the screen top , i meas ti has to show me first and behind all applications which i opend other applications
    How to do this please help me
    bhaskar

    It sounds like you might be able to write a .bat script to run the application, create a desktop icon for that and set its properties so it runs in the background.

  • Create instance of class

    Hi all,
    I have problem with creating static fields in class. I have separate packages in my project and I need to have instances for all classes in this packages. I create instance of class using next code:
    public class Digest
       private static Digest digest = null;
       protected Digest ()
      public static Digest getInstance()
             if(digest == null)
              digest = new Digest();
            return digest;
      public static void clearInstacePool()
             digest = null;
    }But I have problem with deleting my packages and applet after I call Digest.getInstance(). I need to implement clearInstacePool() method to set reference of digest to null in unistall() method of my applet. Question is: how to create instance of class without implementing clearInstacePool()?

    Question is: how to create instance of class without implementing clearInstacePool()?That question doesn't make sense,or at least it is ambiguous. 'Create instance' usually involves the 'new' operator, which has nothing to do with what methods are implemented. Do you mean how to code the class without implementing clearInstancePool()?

  • How to use methods from a JAR file inside my springcontext (Oracle fusion 12c) class file?

    Dear Friends,
    I have a jar file, which has executed classes and methods in it. I want to make use of these methods inside my springcontext piece of code.
    Can someone please share an example  of how to write spingcontext code which is accessing classes/methods from  JAR files along with the any setup?
    Thanks,

    I have found the answer... as described in:
    http://java.sun.com/javase/6/docs/technotes/guides/lang/resources.html
    the problem was that the properties are loaded with the getResource & getResourceAsStream methods and I didn't know that one. I thought that is was loaded through findClass because I saw the property files trying to be loaded through findClass.
    The truth is that it tries to load with the getRessources methods and if it fails tries with the findClass/loadClass.
    To Fix the problem, I have simply overriden the getRessourceAsStream to do my magic and that was it.
    Thanks

  • Security exception while trying to access EJB from stand alone client

    Hi!, I am trying a sample EJB application to R&D some security related issues. I want to access EJB through a web application as well as a stand-alone client. I have set approriate <method-permission> in EJB deployment descriptor. I am using users.properties/roles.properties file for authentication mechanism. I am using JBoss 3.2.
    - On the web application side I am using BASIC authentication and the servlet is able to access the EJB OK, as long as I am using a login/password that has access to the EJB.
    - Now I am trying to access the EJB using a stand alone Java class. These are the things I have tried till now:
    =>Created a InitialContext with appropriate principal, credentials and tried getting a reference to EJB home interface. That resulted in security exception.
    =>Logged into a LoginContext by using appropriate JBossSX classes and then tried getting a EJB home interface. Again security exception.
    Now I am not sure what to do. I read at some places about client side container but not sure what that is. Does anyone has any ideas to try? Is there any other way I can make a swing application and a web application authenticate to EJB container?
    Also can anyone point me to any documentation that gives some idea about how the security credentials gets propagated from web application/standalone client to EJB container?

    It would be better if you can post your code...and DD that way we can help you better

  • Can't Open File Explorer -- How can I reset the Quick Access Toolbar from outside of File Explorer?

    First of all, this is not a virus. This is my a bug within windows explorer itself.
    So, I added the properties button to the QAT, and it displayed it as an expandable menu, like this: ";" but with small arrows like this: ">". didn't want this, I wanted to click on it and immediately display the properties of the file
    to me. So, I hovered over it, right-clicked on "Properties" in this menu and added it to the QAT. Of course, this crashes File Explorer. Now whenever I try and open it, it crashes, so I have to assume that the corrupted button has been saved.
    So, my question is: How do I reset the QAT from OUTSIDE of file explorer? Regedit magic? Any ideas?
    Thanks for stopping by,
    Trolleyman.
    Edit: Just so you know, I can navigate through my systems files using the 7-zip file manager. Phew.

    Thanks from me  too, Niki. This first happened with Windows 8.0 File Manager a week ago,, and despite much research I couldn't  discover the cause so eventually I resorted to restoring  the system drive from backup (luckily I make daily backups, 
    so didn't lose   much  work).
    Without  knowing the cause  a  few days later I again tried to alter  the Quick Access  Toolbar  and the problem reappeared.  Should  I again resort to restoring the entire system drive, the thought horrified me. But
    luckily while doing a bit more research prior to resorting to the same drastic recovery, I cane  across this post  of yours and it worked!
    It doesn't  seem  to be  happening with Office 2007's   or  Wordpad's  Quick Access Toolbar,  so presumably it's a File Explorer bug  (a.k.a. Windows Explorer in Windows 7, of course). Have Microsoft recorded this as
    a  bug -- if not,  why not  -- and when  are they coming up with a fix?

  • Getting exception while trying to access OIM from a standalone java program

    Hi All,
    When i am trying to run the below java class i am getting some exception. Please suggest.
    import java.util.Hashtable;
    import java.util.Iterator;
    import java.util.Map;
    import java.util.Vector;
    import com.thortech.xl.util.config.ConfigurationClient;
    import Thor.API.tcResultSet;
    import Thor.API.tcUtilityFactory;
    import Thor.API.Operations.tcGroupOperationsIntf;
    import Thor.API.Operations.tcUserOperationsIntf;
    import Thor.API.Security.ClientLoginUtility;
    import Thor.API.Security.LoginHandler.LoginSession;
    public class OIMAPI {
    public static void main(String[] args) {
    try{
    System.out.println("Startup...");
    System.out.println("Getting configuration...");
    ConfigurationClient.ComplexSetting config =
    ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
    System.out.println("Login...");
    Hashtable env = config.getAllSettings();
    tcUtilityFactory ioUtilityFactory = new tcUtilityFactory(env,"xelsysadm","xelsysadm");
    if (ioUtilityFactory!=null){
    System.out.println("Login OK...");
    System.out.println("Getting utility interfaces...");
    tcUserOperationsIntf moUserUtility = (tcUserOperationsIntf)ioUtilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
    System.out.println("Starting processing...");
    for (int i=0;i<2;i++){
    Map attrs = new Hashtable();
    attrs.put("Users.User ID","testuser"+i);
    attrs.put("Users.Last Name","lastname"+i);
    attrs.put("Users.First Name","firstname"+i);
    attrs.put("Organizations.Key","1");
    attrs.put("Users.Role","Full-Time");
    attrs.put("Users.Xellerate Type","End-User");
    attrs.put("Users.Password","welcome1");
    long t1 = System.currentTimeMillis();
    long key = moUserUtility.createUser(attrs);
    long t2 = System.currentTimeMillis();
    System.out.println("User testuser" + i + " with key=" +
    key + " created in "+(t2-t1));
    System.out.println("Processing DONE...");
    ioUtilityFactory.close();
    }catch(Exception e ){
    System.out.println("---" + e.getMessage());
    e.printStackTrace();
    ---Unable to locate a login configuration
    java.lang.SecurityException: Unable to locate a login configuration
    at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:97)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at java.lang.Class.newInstance0(Class.java:308)
    at java.lang.Class.newInstance(Class.java:261)
    at javax.security.auth.login.Configuration$3.run(Configuration.java:221)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:215)
    at javax.security.auth.login.LoginContext$1.run(LoginContext.java:170)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.init(LoginContext.java:167)
    at javax.security.auth.login.LoginContext.<init>(LoginContext.java:404)
    at Thor.API.Security.LoginHandler.jbossLoginHandler.login(Unknown Source)
    at Thor.API.Security.ClientLoginUtility.login(Unknown Source)
    at Thor.API.tcUtilityFactory.<init>(Unknown Source)
    at OIMAPI.main(OIMAPI.java:28)
    Caused by: java.io.IOException: Unable to locate a login configuration
    at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206)
    at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:95)
    ... 17 more

    you need to tell it where the config files are
    java -DXL.HomeDir=C:\oimqa\xlclient -Djava.security.auth.login.config=C:\oimqa\xlclient\Config\authwl.conf
    the authwl.conf file will have a different name depending on which app server you use
    authwl is for Web Logic (for example).

  • I am trying to access iPhoto from my MacBook Pro on my iPhone 5s

    I am trying to access iPhoto on my iPhone 5s from my 2008 MacBook pro. I have synced both devices, have set up iCloud, have downloaded iOS7 and Mavericks, and have photo sharing and photo stream turned on on the iPhone. I am using iPhoto '08, version 7.1.5. There is a newer for purchase version of iPhoto. Could it be that I have to buy this update to connect from my iPhone? I just bought the iPhoto by Apple app but it only allows me to view albums and photos that are already on my iPhone.

    Thanks for your reply. I am still ever-hopeful this can be done. Checking the iPhoto '11 site, I see this info:
    -View and automatically import recent photos taken on your iOS devices
    -Automatically send newly-imported photos to all your iOS devices
    -iPhoto '11 works with iCloud Photos, so the photos you take on your iOS devices automatically appear in iPhoto,
    I ask this respectfully. If indeed iPhoto version 9.5 is iCloud friendly, why would it not be accessible from my iPhone? It seems to me that the mission of iCloud is to effect the "commonality" between iPhone and the Mac - and other Apple devices. Do you know the technical reason for this or am I going to have to accept that it simply won't work? <grin>

  • Newbie: Trying to get data  from Code Behind file to HTML file.

    Greetings,
    I am trying to use the opener link adaptive tag to open a specific page. I have the Object ID, and classID as variables in my class in my class file, but I do not know how to get that data into the opener link which is on the html page.
    Should I be using session variables? If so how, I am a newbie.
    Does anyone know how?
    Thanks.

    Kinda depends on your flavor/need/preference. I've done it...
    * Using session variables and just writing to the page in script blocks. Not preferred in .NET-land, but definitely more of the fast/traditional ASP style. Use sparingly and with caution. Be really careful about VS.NET totally destroying your tags. It seems to love doing that (as an aside - HUGE thank-yous to the BEA engineers who altered the tags to consistenly use lower case. Really. I can't thank you enough. :) )
    * Using label controls and then just populating the label with the formatted adaptive tag (this can work well)
    * One of our guys did a really simple/elegant server control that takes arguments for the objectid, classid, etc. Nice for creating things repeatedly server-side and gets you by the HTML, quotes, etc. all over the place. Nice as it also consolidates the tag in a single place you can alter once.
    For session variables, you'd just do something like...
    <%
    '//in your code-behind
    Session("myClassID") = 18
    Session("myObjectID") = 12345
    %>
    <!-- in your aspx file -->
    <pt:standard.openerlink xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/' pt:objectid='<%=Session("myObjectID")%>' pt:classid='<%=Session("myClassID")%>' pt:mode='2' target='myWindow' onclick=window.top.open('','myWindow','height=800,width=700,status=no,toolbar=no,menubar=no, location=no');>Adaptive Tags Made This Easy - Click to Open My Awesome Document</pt:standard.openerlink>
    That help?
    Personal style, I would try to avoid using session, etc. directly on your ASPX file. I'd go with writing out the HTML through labels, data lists, etc. in your code-behind.
    Thanks,
    Eric

  • Trying to access icloud from old phone

    I recently got the iphone 6 and unfortunately my old iphone (5) didnt have the new iOS 8 so its saying that I can't see my last backup from my iphone 5 because it's not "updated" to the new iOS but its still taking up all the storage on my icloud. Is there any possible way I could see those pictures again or access them?

    The only way to access picture (or anything else) from an iCloud backup is to restore the entire backup to your device.  Also, you can't restore a backup made on a device that was running a higher version of iOS than the device you are trying to restore it to.  If you wanted to restore the backup to your old phone, you would have to update it to the latest iOS in order to restore the backup.  There is expensive 3rd party software that claims to be able to access data from an iCloud backup (Wondershare Dr.Phone), but I have no experience with it so can't comment on whether it works or not.  You would be far better off updating the old phone so you could restore the existing backup to it.

Maybe you are looking for

  • Java code to reset UNIX password

    Hi I need to reset a password of remote UNIX machine through java. Please give me clues/commands by which i can implement this . If you have any info about command interfaces that unix gives on some ports for resetting by connecting through a socket

  • Load Balancing -- preserve client IP?

    Does the Flash Media Streaming Server need to know the client's IP address in a load-balanced environment?  We will be doing straight-forward hardware load balancing -- we are not architecting the cluster for communication between Flash Media Servers

  • OpenHub Destination

    I have created the OpenHub destination and can extract a DSO down to my PC in .csv format, however I want to be able to save the file there in an excel format. So I was looking around and I saw this function module GUI_DOWNLOAD. The question then is

  • Conversion of planned orders to prod orders in background

    hi All Is there any program for mass conversion of planned orders in production orders which we can schedule in background. Amit

  • Launch remote control via a command line?

    Is is possible to launch a remote control session via a command line as well as the other "remote actions"? Thanks, Bryan