Cluster: lookup throw ClassNotFoundException when MyObject was bind
I have problem with lookup MyObject (whitch implements serializable) from InitialContext on cluster machine 1, when I bind it on machine 2.
Lookup throw:
binding java.lang.ClassNotFoundException: MyObject
java.lang.Class com.evermind.naming.ContextClassLoader.findClass(java.lang.String)
ContextClassLoader.java:456
second time lookup return object not found. On Machine where i bind object lookup work good.
With standard objects (String, HashMap,...) this bind an lookup work on both machines perfect.
Aplication is deployed as distributable, and i configured RMI replication.
Can you help me?
AppServer: OC4J 9.0.3
JDK: 1.3.1
I doubt you'll get much response on an Oracle specific question concerning naming in a clustered configuration.
This forum is concerned with Sun's J2EE 1.4 SDK and related technologies.
Perhaps you could post this question in an Oracle specific resource:
http://otn.oracle.com/tech/java/oc4j/index.html
Similar Messages
-
ADF application on cluster throw exception when using chrome
I deploy my ADF application to cluster with one proxy server (myip:7003) and two application server(myip:7004 myip:7005) ( http://docs.oracle.com/cd/E15051_01/wls/docs103/cluster/setup.html )
It works fine when using firefox and IE8, but throw exception when using chrome
####<Mar 1, 2013 3:18:30 PM CST> <Notice> <Diagnostics> <XXX.XXX.com> <server02> <[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1362122310439> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'server02' has triggered at Mar 1, 2013 3:18:30 PM CST. Notification details:
WatchRuleType: Log
WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
WatchData: DATE = Mar 1, 2013 3:18:30 PM CST SERVER = server02 MESSAGE = [ServletContext@710669610[app:Project1 module:XXX path:/XXX spec-version:2.5]] Servlet failed with Exception
java.lang.NullPointerException
at org.apache.myfaces.trinidad.model.BaseMenuModel.setRowKey(BaseMenuModel.java:120)
at org.apache.myfaces.trinidad.component.UIXTree.createCollectionModel(UIXTree.java:274)
at org.apache.myfaces.trinidad.component.UIXCollection.getCollectionModel(UIXCollection.java:1513)
at org.apache.myfaces.trinidad.component.UIXCollection.getCollectionModel(UIXCollection.java:1115)
at org.apache.myfaces.trinidad.component.UIXTree$RowKeyFacesBeanWrapper.getProperty(UIXTree.java:423)
at org.apache.myfaces.trinidad.component.UIXComponentBase.getProperty(UIXComponentBase.java:1485)
at org.apache.myfaces.trinidad.component.UIXTree.getDisclosedRowKeys(UIXTree.java:626)
at org.apache.myfaces.trinidad.component.UIXTree.__init(UIXTree.java:325)
at org.apache.myfaces.trinidad.component.UIXCollection._init(UIXCollection.java:1778)
at org.apache.myfaces.trinidad.component.UIXCollection.encodeBegin(UIXCollection.java:589)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer.encodeFacet(DecorativeBoxRenderer.java:440)
at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer._encodeCenterPane(DecorativeBoxRenderer.java:704)
at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer.encodeAll(DecorativeBoxRenderer.java:380)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeCenterFacet(PanelStretchLayoutRenderer.java:879)
at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeCenterPane(PanelStretchLayoutRenderer.java:1294)
at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeMiddlePanes(PanelStretchLayoutRenderer.java:351)
at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:316)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:2194)
at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer._renderPane(PanelSplitterRenderer.java:1593)
at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer.encodeAll(PanelSplitterRenderer.java:263)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:2194)
at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer._renderPane(PanelSplitterRenderer.java:1593)
at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer.encodeAll(PanelSplitterRenderer.java:263)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeCenterFacet(PanelStretchLayoutRenderer.java:879)
at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeCenterPane(PanelStretchLayoutRenderer.java:1294)
at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeMiddlePanes(PanelStretchLayoutRenderer.java:351)
at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:316)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:2194)
at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer._renderPane(PanelSplitterRenderer.java:1593)
at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer.encodeAll(PanelSplitterRenderer.java:279)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeCenterFacet(PanelStretchLayoutRenderer.java:879)
at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeCenterPane(PanelStretchLayoutRenderer.java:1294)
at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeMiddlePanes(PanelStretchLayoutRenderer.java:351)
at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:316)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)
at oracle.adfinternal.view.faces.renderkit.rich.PageTemplateRenderer.encodeAll(PageTemplateRenderer.java:68)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)
at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:274)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)
at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1277)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655)
at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:91)
at com.sun.faces.application.view.JspViewHandlingStrategy.doRenderView(JspViewHandlingStrategy.java:431)
at com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:233)
at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:350)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:165)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1027)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:334)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:232)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
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:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = XXX.XXX.com TXID = CONTEXTID = TIMESTAMP = 1362122310438
WatchAlarmType: AutomaticReset
WatchAlarmResetPeriod: 30000 Jdeveloper 11.1.2.1.0
webloigc 10.3
Please help me , thank you
Edited by: Rocky.c.Xu on 2013-3-1 上午2:52Solved it on my own.
The sso from Java->ABAP was OK
I reconfigured the sso from ABAP->JAVA by creating new ABAP certificate and import it to the J2EE.
Omri -
I used to use the free version of Adobe Reader to convert my publisher files to pdf files. When I was making a booklet for our hockey team, it said I had to buy it. Now I bought it and it won't convert the files. I am ready to throw this computer out the window!! Can you tell me what is the problem? No it does not exceed 100 M. either.
Adobe Reader never converted Publisher files to PDF, for free, never. I suspect you use to have the (paid for) Adobe Acrobat. Sometimes people have Acrobat (more than $300 worth) and install Adobe Reader over the top, losing that valuable software.
That said, if you subscribed to PDF Pack it should do this conversion. What exactly happens now. -
Excel is throwing error when it click print : 'No printers are installed. To install a printer click the File tab, and then click Print. Click No Printers Installed, and then click Add Printer. Follow the instructions in the Add Printer dialog box'
Word, and powerpoint application are working fine.
Environment : Windows 7 64-bit, MS Office 2013 64-bit
Steps to recreate
(i) Create new user account and add to any group ( do not log on using this
account)
(ii) runas /user:<new user account> <fullpath>\excel.exe
it will ask password so enter on command prompt
(iii) open any excel document and click File->Print
(iv) verify result (it is failing) it pop ups below error
Error:`Microsoft Excel
No printers are installed. To install a printer click the File tab, and then click
Print. Click No Printers Installed, and then click Add Printer. Follow the
instructions in the Add Printer dialog box.Sorry for late reply i was not at work
I have a default set excel is still throwing error. Interestingly winword , powerpoint and publisher are working fine. I am able to print from all office applications except Excel.
Probably excel behaves differently from other office applications.
Probably it is a bug in excel
Workaround : Log on to a system once using newly created account then runas excel using this account then print works fine.
It means something in user profile should be configure to run excel print operation. Could you please somebody help what I need to configure in user profile that makes print operation success? -
Throws Exception when jdbc connect to Oracle
Hi! I'm waiting for your answers.
When i use jdbc to connect Oracle,system throws exceptions as follows:
java.lang.ClassCastException: oracle.sql.converter.CharacterConverter12Byte
oracle.sql.CharacterSet1Byte oracle.sql.CharacterSet1Byte.getInstance (int,racle.sql.converter.CharacterConverter)
CharacterSet1Byte.java:82
oracle.sql.CharacterSet oracle.sql.CharacterSetWithConverter.getInstance(int) CharacterSetWithConverter.java:85
I code in Oracle9i Jdeveloper 9.0.2. The Oracle version is 9.0.2.
My code example is as follows:
package mypackage2;
import java.sql.*;
import oracle.jdbc.driver.*;
public class Class1
public Class1()
public static void main(String[] args)
Class1 class1 = new Class1();
Connection conn = null;
try
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
//exception throws in getConnection()
conn = DriverManager.getConnection
("jdbc:oracle:thin:@localhost:1521:CR","system","CR2001");
catch (Exception e)
e.printStackTrace();import java.io.*;
import java.sql.*;
import java.text.*;
import oracle.jdbc.driver.*;
public class viewtable
Connection con;
Statement st;
public viewtable (String args[]) throws ClassNotFoundException,FileNotFoundException,IOException,SQLException
url="jdbc:oracle:thin:system/manager@IP:1521:SID";
Class.forName ("oracle.jdbc.driver.OracleDriver");
try
con=DriverManager.getConnection(url);
st = con.createStatement ();
doexample ();
st.close ();
con.close ();
}catch(SQLException e)
System.err.println(e.getMessage());
public void doexample () throws SQLException
ResultSet rs = st.executeQuery("select * from sales");
if(rs!=null) {
while(rs.next())
int a = rs.getInt("no"); System.out.println("NO = "+a);
rs.close();
public static void main (String args[])
System.out.println ("Oracle Exercise 1 \n");
try
viewtable test = new viewtable(args);
} catch (Exception ex)
System.err.println ("Exception caught.\n"+ex);
ex.printStackTrace ();
the above is the full code, please check the problem....many thanks -
[Windows] file.url throw error when application executable in root directory
Here is the bugbase ticked: Bug#3940278 - [Windows] file.url throw error when application executable in root directory
If you launch AIR application packaged as bundle from root directory and try to get url property of any file you get IllegalOperationError.
No matter what file url property you try to get.
It's a big problem when you distribute your application on CD disks or flash drive.
I'd like to ask everyone affected by this issue to take a minute and vote for the following bug.
Thanks.I checked all deployment descriptions and there are no references to t3://localhost:7001. Few months back, I had the complete clustering setup working on 2 machines and now when I deploy my application on same configuration, it fails with t3://localhost:7001 unreachable error. I created a new cluster configuration on one machine with 2 managed server and it deploys fine. Can not figure out what has changed ?
-
ClassNotFoundException when using Class.forName(), thx
in a study app, i try to use Class.forName() to load any class then get its properties (fields, methods etc. vs reflect).
the (Frame based) app is in directory:
c:\app\StudyApp.class
there is a "Open class" button on the app, click the button, i use FileChooser to open any class file.
i.e. open a class (assume it is not packaged)
d:\dir\TheClass.class
coding in StudyApp.java is:
Class cls=Class.forName("TheClass");
now a ClassNotFoundException throws when call Class.forName() above.
it is easy to understand why throw the exception because i never tell where the class is. it is in directory
d:\dir
my question is: how to tell VM the directory.
the directory d:\dir can not be applied to -classpath when run java.exe StudyApp, because the directory is random one at run-time.
i tried to change System property (i.e. "java.class.path", 'user.dir" etc. none of them can fix the problem.
thanks in advance for any helpThis probably does a lot more than you need:
import java.util.*;
import java.io.*;
import java.util.jar.*;
import java.lang.*;
public class ClassFileFinder extends ClassLoader
List cpath = new LinkedList();
void addFile(File f) {
if(f.isDirectory() || (f.isFile() && f.canRead() &&
f.getName().endsWith(".jar")))
cpath.add(f);
public byte[] classData(String className) {
String cname = className.replace('.', File.separatorChar) + ".class";
Iterator it = cpath.iterator();
while(it.hasNext()) {
File f = (File)it.next();
try {
if(f.isDirectory()) {
File cFile = new File(f, cname);
if(cFile.isFile()) {
byte[] buf = new byte[(int)cFile.length()];
InputStream in = new FileInputStream(cFile);
int off = 0, l;
while((l = in.read(buf, off, buf.length - off)) > 0) {
off += l;
if(off >= buf.length) break;
in.read(buf);
in.close();
return buf;
} else if (f.isFile()) {
JarFile jar = new JarFile(f);
JarEntry ent = jar.getJarEntry(cname);
if(ent != null) {
byte[] buf = new byte[(int)ent.getSize()];
int off = 0, l;
InputStream in = jar.getInputStream(ent);
while((l = in.read(buf, off, buf.length - off)) > 0) {
off += l;
if(off >= buf.length) break;
in.close();
return buf;
} catch (IOException e) {
return null;
public Class findClass(String className) throws ClassNotFoundException{
byte[] data = classData(className);
if(data == null)
return getParent().loadClass(className);
else
return defineClass(className,data,0, data.length);
}Create an instance, Add directories and/or jar files with addFile then loadClass the class you want. -
Enterprise 8 throws stackoverflowerror when opening projects
Hi all
When I was trying to open a project the ide throw the followin exception and stopped:
Annotation: Exception occurred in Request Processor
java.lang.StackOverflowError
at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.isKidOK(CoreDocumentImpl.java:2128)
at com.sun.org.apache.xerces.internal.dom.ParentNode.internalInsertBefore(ParentNode.java:392)
at com.sun.org.apache.xerces.internal.dom.ParentNode.insertBefore(ParentNode.java:321)
at com.sun.org.apache.xerces.internal.dom.NodeImpl.appendChild(NodeImpl.java:275)
at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.importNode(CoreDocumentImpl.java:1688)
at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.importNode(CoreDocumentImpl.java:1688)
at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.importNode(CoreDocumentImpl.java:1688)
at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.importNode(CoreDocumentImpl.java:1444)
at org.netbeans.spi.project.support.ant.AntProjectHelper.cloneSafely(AntProjectHelper.java:786)
at org.netbeans.spi.project.support.ant.AntProjectHelper.access$1400(AntProjectHelper.java:63)
at org.netbeans.spi.project.support.ant.AntProjectHelper$12.run(AntProjectHelper.java:764)
at org.openide.util.Mutex.readAccess(Mutex.java:181)
at org.netbeans.spi.project.support.ant.AntProjectHelper.getConfigurationFragment(AntProjectHelper.java:758)
at org.netbeans.spi.project.support.ant.ExtensibleMetadataProviderImpl.getConfigurationFragment(ExtensibleMetadataProviderImpl.java:48)
at org.netbeans.spi.project.support.ant.ReferenceHelper.loadReferences(ReferenceHelper.java:138)
at org.netbeans.spi.project.support.ant.ReferenceHelper.access$1200(ReferenceHelper.java:74)
at org.netbeans.spi.project.support.ant.ReferenceHelper$7.run(ReferenceHelper.java:780)
at org.openide.util.Mutex.readAccess(Mutex.java:181)
at org.netbeans.spi.project.support.ant.ReferenceHelper.getRawReferences(ReferenceHelper.java:778)
at org.netbeans.spi.project.support.ant.SubprojectProviderImpl$1.run(SubprojectProviderImpl.java:45)
at org.openide.util.Mutex.readAccess(Mutex.java:181)
at org.netbeans.spi.project.support.ant.SubprojectProviderImpl.getSubprojects(SubprojectProviderImpl.java:43)
at org.netbeans.modules.project.ui.ProjectChooserAccessory.addSubprojects(ProjectChooserAccessory.java:339)
at org.netbeans.modules.project.ui.ProjectChooserAccessory.addSubprojects(ProjectChooserAccessory.java:344)
at org.netbeans.modules.project.ui.ProjectChooserAccessory.addSubprojects(ProjectChooserAccessory.java:344)
at org.netbeans.modules.project.ui.ProjectChooserAccessory.addSubprojects(ProjectChooserAccessory.java:344)
at org.netbeans.modules.project.ui.ProjectChooserAccessory.addSubprojects(ProjectChooserAccessory.java:344)\
any ideas what is happening?
thanks
dicksontwo clarification questions:
(1) what version of the IDE are you using (can find info under help menu)
(2) what kind of project is this?
What I am looking for is whether or not you are openning a project created in one version of the IDE with another version. If you have recently upgraded your IDE you may consider starting with a clean userdir. -
HT4623 When I was update ios6 for iPhone 4 , mail and application are hung , why ?
When I was update iOS 6 for iPhone 4, mail and application are hung , why ? How I should do for that ?
They don't let you downgrade. You have to eat what Apple tells you to and think what they tell you to. If you liked the older software better than tough ****. You know what you should do?? You should throw away that garbage that Apple has sold you that they call a phone and get something by anyone else because no one else regulates what you get to do and say about your phone in such an extreme manner. Not being mean to you friend. Just know that as long as Apple is answering your questions that you will never get a definate answer and at best you will get something that you don't like but have to get used too.
-
I'm having the same issue and I'm using outlook when synchronizing. However, I'm not sure if this is an Oultook vs. MobileMe deal. The thing is: I got my IPad 2, made sync with Itunes and got all contacts from my Outlook and when I was making few adjustments / updates to such contacts directly on my IPad 2 (without being connected to anywhere, the software crashed and the contacts simply VANISHED ! Please help me... I'm really concerned with that because now I have everything on my Outlook, but I gotta be able to update many contacts in events (for example, a meeting or a workshop) directly from my IPad, being away from my computer, and now I'm in total risk of simply losing them... I simply don't believe that a bug with totally affects the product reliability can't be simply solved!
Thanks in advance for your help!Thanks for starting the thread clisfromSLC.
I am facing the exact same problem with my brand new ipad2. The addition of a single contact post a successful sync, caused the app to crash. Restarting the app did not get the contacts back. Neither did restarting the ipad itself.
I dont want to rely on the ipad now until I have a patch or OS update that corrects this issue. If I add several contacts and suddenly lose all of them, it's not something i really look forward to.
Can someone please help? Thanks so much. -
i tried to restore my iphone but when it was restoring it said a problem occurred and now it just shows the itunes symbole and its telling me to connect to it but when i try to it doesnt show up on my computer
Hi there starbaeza,
You may find the information in the article below helpful.
iOS: Forgotten passcode or device disabled after entering wrong passcode
http://support.apple.com/kb/ht1212
-Griff W. -
I have an iPhone 4, My itunes are from two differnt accounts; one from when I was under my dads account when i was younger, and the other is my own which i currently use. My question is would I be able to sync and update my itunes on my MacBook without having all the new music erased. I have the icloud on my phone, but I just want to update my music on my laptop. Just nervous to, because it has happened to me before on a desktop computer and it *****. Please help! Thanks.
nevermind, i figuered it out
-
When iTunes was upgraded to the lastest (11.0), many of of songs/music/audiobooks were deleted! I tried syncing my phone to my computer to get them back, but many of those were deleted too! How do I get my purchases back to play them???
It shows on iTunes SOME of my past purchases, but not all (looks like around 30-40% of purchases). It shows on my apple id purchase history everything i have purchased; but in iTunes, some not all of these show up. What does show up is kind of "greyed out", so NOTHING will actually play. I have followed the steps in the iTunes support about how to redownload past purchases, but this dowsn't work, as the download button is also "greyed out".
I am extremly angry and upset about this issue. Could someone please help / advise re how to fix????I'm hoping that this may be just a misunderstanding somewhere.
Could you show an image showing these greyed out items? -
I cannot open my gmail nor send any gmails on Firefox. My wife also has gmail and she has no problem on firefox opening or sending her gmails. Also, I cannot access my settings. It started when I was at a hotel last Friday using their wireless connection. When I turned firefox on, which automatically goes to gmail, firefox would not open my gmail as it stated that this was not a secure site. I probable did something incorrectly and I got blocked out. All my other bookmarks work fine. I can access my gmail using other servers. Please help. Thank you.
== This happened ==
Every time Firefox opened
== June 11how can i open my gmail at mozilla firefox? because i cant open it..
-
I downloaded from the Apps.store a game named,"Ninja Run". When I was plkaying the game, I got out and a message appeared, asking me whether I would like to buy 5 revivals for Rs.170/-. When I hit the,"Buy"button, I was asked to confirm my Credit card details. I confirmed it and was asked to enter the Security Code. When I did so,, a message appeared telling me that the Security Code was invalid and the purchase could not be completed. When I continued the game and got out again, the message appeared again asking me whether I wanted to buy. Thinking that my purchase was not completed, I again hit the,"Buy" button. Nothing happened. I continued the game and when I got out, I received the same message and obliged accordingly. This went on for three or more times. By this time,however I got confused and quit the game. All these things happened on 6th September 2013. The next day,I was shocked to see 5 receipts from the Apple Apps.store in the In Box of my email account,each for Rs.170/-
totalling Rs850/. Worse still, when I played the game the next day and got out and asked for a revival, would you believe it, I was again asked whether I would like to buy 5 revivals for Rs.170/-.
Thus,I ended up buying a game for Rs.850/- while the actual price is only Rs.170/-,and not even able to play the full game.
Could anyone please tell me whether I can get a refund of Rs.680/-,the extra amount I paid for this game.
I will be much thankful to anyone who can guide me and help me claim the refund. Thank everyone.For customer service issues, go here...
https://expresslane.apple.com/Issues.action
Maybe you are looking for
-
How do I sync photos from iPhone to iMac with a hardwire?
How do I sync photos from my iPhone to my iMac with a hardwire now that I am on iCloud?
-
I just downloaded firefox about a week ago and the first day i used it i went on to tumblr, and i logged in just fine. But now a week later i'm trying to log into my tumblr and it says it's loading but then it goes straight back to the log in page. I
-
Conditional where clauses in database adapter
I am trying to write a query in a database adapter that allows for conditional where clauses. Specifically, I want to include or not include a where clause (and clause) if an input variable is empty or not. Can a prepared statement with lexical param
-
Opening or saving photo attachment; add to iphoto option on save
On my computer, in the Mail application, I always see the "Add to iPhoto" option on the Save button when someone has sent me a photo regardless of whether it is one or several. Does anyone know if there's some way to make this option show or not? I w
-
Nokia Music conversion problem!
As we all know, the newest PC Suite doesn't include Music Manager,being replaced with Nokia Music. I have a major problem: how do I convert (and then copy to my phone) songs from my PC to eACC+ format??...I searched all the menus and i don't see any