Does java import loads the class?
Hi,
Acc common practive {not mentioned in Sun java convention} if a class is using more than three classes from a pacakage then its ideal to import all the classes from tht package instead of importing individual classes. i.e., import pacakage.*;
1) Does this kind of load all the classes into memory?
2) Does import statement actually loads a class into memory
isnt import jst to use class name instead of complete package name in the code?
3) Does a class get loaded only when its object/ its static memebers are invoked?
Would appreciate if anyone can answer these queries.
Thanks
Deepak
Acc common practive {not mentioned in Sun java
convention} And not mentioned or usually followed anywhere else. Who says this?
if a class is using more than three
classes from a pacakage then its ideal to import all
the classes from tht package instead of importing
individual classes. i.e., import pacakage.*;
1) Does this kind of load all the classes into
memory?imports have no influence on anything but the length of written code. Thanks for being the second person this hour to ask this question without researching first.
2) Does import statement actually loads a class into
memoryNo. It does nothing at all.
isnt import jst to use class name instead of complete
package name in the code?Yes.
3) Does a class get loaded only when its object/ its
static memebers are invoked?Yes.
Similar Messages
-
Dear all,
Do we have any extra things to execute the Java mapping using the Sax Parser?
When I am executing the interface mapping ,I am getting the" Linkage error when loading the class" error.
Kindly let me know your personnel maildId so that I can mail you the screen shots.
Thanks,
SrinivasaDear sunil,
Find the File.
Source:
<MTO_FTP_MAT_DETAILS>
<MATDETAILS>
<MAKTX>
<MATNR>
<WERKS>
<LABST>
<MEINS>
<PERCNT>
TARGET
MTI_FTP_MAT_DETAILS
<MATDETAILS>
<MAKTX>
<MATNR>
<WERKS>
<LABST>
<MEINS>
<PERCNT>
Source:
<MTO_FTP_MAT_DETAILS>
<MATDETAILS>
<MAKTX>
<MATNR>
<WERKS>
<LABST>
<MEINS>
<PERCNT>
TARGET
MTI_FTP_MAT_DETAILS
<MATDETAILS>
<MAKTX>
<MATNR>
<WERKS>
<LABST>
<MEINS>
<PERCNT>
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import com.sap.aii.mapping.api.StreamTransformation;
class Echo {
public static OutputStream out;
public class myEcho extends DefaultHandler implements StreamTransformation {
private Map map;
public void setParameter(Map param) {
map = param;
public void execute(InputStream in, OutputStream out) {
DefaultHandler handler = this;
SAXParserFactory factory = SAXParserFactory.newInstance();
try {
SAXParser saxParser = factory.newSAXParser();
Echo.out = out;
saxParser.parse(in, handler);
} catch (Throwable t) {
t.printStackTrace();
public void startDocument() throws SAXException {
try {
Echo.out.write("<?xml version='1.0' encoding='UTF-8'?>".getBytes());
} catch (IOException e) {
e.notify();
public void endDocument() throws SAXException {
try {
Echo.out.flush();
} catch (IOException e) {
throw new SAXException("I/O error", e);
public void startElement(String namespaceURI, String sName, // simple name
String qName, // qualified name
Attributes attrs) throws SAXException {
String eName = sName; // element name
if ("".equals(eName))
eName = qName; // not namespace-aware
if ("ns0:MTO_SAP_MAT_DETAILS".equals(qName)) {
try {
Echo.out.write(("<MTI_FTP_MAT_DETAILS>").getBytes());
} catch (Exception e) {
e.printStackTrace();
} else {
try {
Echo.out.write(("<" + qName + ">").getBytes());
} catch (Exception e) {
e.printStackTrace();
public void endElement(String namespaceURI, String sName, // simple name
String qName // qualified name
) throws SAXException {
String eName = sName; // element name
if ("".equals(eName))
eName = qName; // not namespace-aware
if ("ns0:MTO_SAP_MAT_DETAILS".equals(qName)) {
try {
Echo.out.write(("</MTI_FTP_MAT_DETAILS>").getBytes());
} catch (Exception e) {
e.printStackTrace();
} else {
try {
Echo.out.write(("</" + qName + ">").getBytes());
} catch (Exception e) {
e.printStackTrace();
public void characters(char buf[], int offset, int len)
throws SAXException {
String s = new String(buf, offset, len);
try {
Echo.out.write(s.getBytes());
} catch (Exception e) {
e.printStackTrace(); -
Server could not load the class
I m trying to create a new adapter task bt when i select xliACE.jar from the dropdown box, its trowing an error " Server could not load the class"
Below is the server log--
ERROR,04 Dec 2007 09:18:48,217,[XELLERATE.JAVACLIENT],Class/Method: tcADPClient/introspect encounter some problems : RemoteException occurred in server thread; nested exception is:
java.rmi.ServerError: Unexpected Error; nested exception is:
java.lang.UnsatisfiedLinkError: no ACEUser in java.library.path
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
Could any one provide some help
ThanksShould compile java code with the same jdk as being used by OIM
-
Linkage error occured when loading the class:Java Mapping
I AM GETTING THE ABOVE ERROR IN SUB WHEN TESTING THE MAPPING .
Source:
<MTO_FTP_MAT_DETAILS>
<MATDETAILS>
<MAKTX>
<MATNR>
<WERKS>
<LABST>
<MEINS>
<PERCNT>
TARGET
MTI_FTP_MAT_DETAILS
<MATDETAILS>
<MAKTX>
<MATNR>
<WERKS>
<LABST>
<MEINS>
<PERCNT>
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import com.sap.aii.mapping.api.StreamTransformation;
class Echo {
public static OutputStream out;
public class myEcho extends DefaultHandler implements StreamTransformation {
private Map map;
public void setParameter(Map param) {
map = param;
public void execute(InputStream in, OutputStream out) {
DefaultHandler handler = this;
SAXParserFactory factory = SAXParserFactory.newInstance();
try {
SAXParser saxParser = factory.newSAXParser();
Echo.out = out;
saxParser.parse(in, handler);
} catch (Throwable t) {
t.printStackTrace();
public void startDocument() throws SAXException {
try {
Echo.out.write("<?xml version='1.0' encoding='UTF-8'?>".getBytes());
} catch (IOException e) {
e.notify();
public void endDocument() throws SAXException {
try {
Echo.out.flush();
} catch (IOException e) {
throw new SAXException("I/O error", e);
public void startElement(String namespaceURI, String sName, // simple name
String qName, // qualified name
Attributes attrs) throws SAXException {
String eName = sName; // element name
if ("".equals(eName))
eName = qName; // not namespace-aware
if ("ns0:MTO_SAP_MAT_DETAILS".equals(qName)) {
try {
Echo.out.write(("<MTI_FTP_MAT_DETAILS>").getBytes());
} catch (Exception e) {
e.printStackTrace();
} else {
try {
Echo.out.write(("<" + qName + ">").getBytes());
} catch (Exception e) {
e.printStackTrace();
public void endElement(String namespaceURI, String sName, // simple name
String qName // qualified name
) throws SAXException {
String eName = sName; // element name
if ("".equals(eName))
eName = qName; // not namespace-aware
if ("ns0:MTO_SAP_MAT_DETAILS".equals(qName)) {
try {
Echo.out.write(("</MTI_FTP_MAT_DETAILS>").getBytes());
} catch (Exception e) {
e.printStackTrace();
} else {
try {
Echo.out.write(("</" + qName + ">").getBytes());
} catch (Exception e) {
e.printStackTrace();
public void characters(char buf[], int offset, int len)
throws SAXException {
String s = new String(buf, offset, len);
try {
Echo.out.write(s.getBytes());
} catch (Exception e) {
e.printStackTrace();Hi,
When you make the jar to import to XI you must verify the two classes are generated at the same time. Later you can verify in Inteface Mapping that you are using the myEcho class to do the java mapping.
Plesae verify the java version are the same in you own machine and the xi machine.
Regards. -
Unable to load the class set in the humantask as a callback Class
I am getting the below error when I set a class bpel.StockReview.MyCallback in my humantask as a callback on some update on the task. The class is getting packed with the jar properly and gets deployed to the server directory. However when I initiate the BPEL proc and run it, the class is notfound/ not laoded into the system. Below are the logs -
<2009-04-27 15:19:09,207> <ERROR> <default.collaxa.cube.services> <::> at java.lang.Class.forName0(Native Method)
<2009-04-27 15:19:09,207> <ERROR> <default.collaxa.cube.services> <::> at java.lang.Class.forName(Class.java:164)
<2009-04-27 15:19:09,207> <ERROR> <default.collaxa.cube.services> <::> at oracle.bpel.services.workflow.task.impl.RoutingSlipCallbackInvoker.executeJavaOnTaskCompleted(RoutingSlipCallbackInvoker.java:204)
<2009-04-27 15:19:09,207> <ERROR> <default.collaxa.cube.services> <::> ... 49 more
<2009-04-27 15:19:09,207> <ERROR> <oracle.bpel.services.workflow> <::>
Missing class: bpel.StockReview.MyCallback
Dependent class: oracle.bpel.services.workflow.task.impl.RoutingSlipCallbackInvoker
Loader: oracle.bpel.common:10.1.3
Code-Source: /D:/product_OAS/10.1.3.1/OracleAS_1/bpel/system/services/lib/bpm-services.jar
Configuration: <code-source> in /D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
This load was initiated at oracle.bpel.common:10.1.3 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.
oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: bpel.StockReview.MyCallback
Dependent class: oracle.bpel.services.workflow.task.impl.RoutingSlipCallbackInvoker
Loader: oracle.bpel.common:10.1.3
Code-Source: /D:/product_OAS/10.1.3.1/OracleAS_1/bpel/system/services/lib/bpm-services.jar
Configuration: <code-source> in /D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
This load was initiated at oracle.bpel.common:10.1.3 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.
at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2068) [D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1679) [D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1635) [D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1620) [D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap:1.5.0_06]
at java.lang.Class.forName0 (Native method) [unknown, by unknown]
at java.lang.Class.forName (Class.java:164) [jre bootstrap, by jre.bootstrap:1.5.0_06]
at oracle.bpel.services.workflow.task.impl.RoutingSlipCallbackInvoker.executeJavaOnTaskCompleted (RoutingSlipCallbackInvoker.java:204) [D:/product_OAS/10.1.3.1/OracleAS_1/bpel/system/services/lib/bpm-services.jar (from <code-source> in /D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml), by oracle.bpel.common:10.1.3]
at oracle.bpel.services.workflow.task.impl.RoutingSlipCallbackInvoker.onTaskComplete (RoutingSlipCallbackInvoker.java:102) [D:/product_OAS/10.1.3.1/OracleAS_1/bpel/system/services/lib/bpm-services.jar (from <code-source> in /D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml), by oracle.bpel.common:10.1.3]
at oracle.bpel.services.workflow.task.impl.TaskService.invokeCallbacks (TaskService.java:3096) [D:/product_OAS/10.1.3.1/OracleAS_1/bpel/system/services/lib/bpm-services.jar (from <code-source> in /D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml), by oracle.bpel.common:10.1.3]
at oracle.bpel.services.workflow.task.impl.TaskService.performPostActionOperation (TaskService.java:3345) [D:/product_OAS/10.1.3.1/OracleAS_1/bpel/system/services/lib/bpm-services.jar (from <code-source> in /D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml), by oracle.bpel.common:10.1.3]
at oracle.bpel.services.workflow.task.impl.TaskService.localHandleRoutingSlipInterpretationResult (TaskService.java:1239) [D:/product_OAS/10.1.3.1/OracleAS_1/bpel/system/services/lib/bpm-services.jar (from <code-source> in /D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml), by oracle.bpel.common:10.1.3]
at oracle.bpel.services.workflow.task.impl.TaskService.handleRoutingSlipInterpretationResult (TaskService.java:1298) [D:/product_OAS/10.1.3.1/OracleAS_1/bpel/system/services/lib/bpm-services.jar (from <code-source> in /D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml), by oracle.bpel.common:10.1.3]
at oracle.bpel.services.workflow.task.impl.TaskService.evaluateRoutingSlipTaskAssignment (TaskService.java:1173) [D:/product_OAS/10.1.3.1/OracleAS_1/bpel/system/services/lib/bpm-services.jar (from <code-source> in /D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml), by oracle.bpel.common:10.1.3]
at oracle.bpel.services.workflow.task.impl.TaskService.updateTaskOutcomeAndEvaluateRoutingSlip (TaskService.java:1129) [D:/product_OAS/10.1.3.1/OracleAS_1/bpel/system/services/lib/bpm-services.jar (from <code-source> in /D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml), by oracle.bpel.common:10.1.3]
at oracle.bpel.services.workflow.task.impl.TaskService.updateTaskOutcome (TaskService.java:941) [D:/product_OAS/10.1.3.1/OracleAS_1/bpel/system/services/lib/bpm-services.jar (from <code-source> in /D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml), by oracle.bpel.common:10.1.3]
at oracle.bpel.services.workflow.task.impl.TaskService.updateTaskOutcome (TaskService.java:920) [D:/product_OAS/10.1.3.1/OracleAS_1/bpel/system/services/lib/bpm-services.jar (from <code-source> in /D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml), by oracle.bpel.common:10.1.3]
at oracle.bpel.services.workflow.task.ejb.TaskServiceBean.updateTaskOutcome (TaskServiceBean.java:410) [D:/product_OAS/10.1.3.1/OracleAS_1/bpel/system/services/lib/bpm-services.jar (from <code-source> in /D:/product_OAS/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml), by oracle.bpel.common:10.1.3]
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) [unknown, by unknown]Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
http://forums.mozillazine.org/viewforum.php?f=25 <br />
You'll need to register and login to be able to post in that forum. -
PRT fails load the class of CustomeRepositoryManager
Hi All,
I have deployed the par file for a Custom Repository manager namely "com.documentum.ei.eprm.manager.DCTMRepositoryManager" from Portal Runtime iview or through NW04 Developer studio This repository implements Documentum at backend .When I have tried to create configurables(.co.xml) of this,and restarted the j2ee server,Nothing appears in monitor or KM iview. The only log about this appears is in defaultTrace.trc. It seems the class DCTMRepositoryManager doesn't get loaded it self. So there is no call to startUpImpl and subsequently no instances appear in KM iview.
I am using following platform
J2EE Engine 6.40 PatchLevel 98256.313
Portal 6.0.14.0.0
KnowledgeManagementCollaboration 6.0.14.0.0 (NW04 SPS14)
The system has been upgraded from SPS09 to SPS14
Could any one resolve this problem?
Following is the Log of default.trc
(APP.KM.Collaboration.SCF.ConfiguredConnectors, max. 40 characters)#
#1.5#000C29DF6877004F0000001500000C6000040D71C251DDAB#1140682149265#com.sapportals.config.fwk.meta.MetaConfigManager_V2#sap.com/irj#com.sapportals.config.fwk.meta.MetaConfigManager_V2#dmadmin#860####3f4d5e10a44311da9e3f000c29df6877#SAPEngine_Application_Thread[impl:3]_11##0#0#Error##Plain###[meta_v2_config://local] error while migrating [metarchive_portal]. The configMetaArchive needs to be removed or migrated 'manually' : ConfigException: Configuration framework system error: "source [config://pcd/local/meta/lib] already contain the configMetaArchive."#
#1.5#000C29DF6877004F0000001E00000C6000040D71C6D96576#1140682225234#com.sapportals.wcm.repository.runtime.CmSystem#sap.com/irj#com.sapportals.wcm.repository.runtime.CmSystem#dmadmin#860####3f4d5e10a44311da9e3f000c29df6877#SAPEngine_Application_Thread[impl:3]_11##0#0#Info##Plain###ClassLoader com.documentum.ei.eprm.manager.DCTMRepositoryManager added.#
#1.5#000C29DF6877004F0000002000000C6000040D71C6D9673D#1140682225234#com.sapportals.wcm.repository.runtime.CmSystem#sap.com/irj#com.sapportals.wcm.repository.runtime.CmSystem#dmadmin#860####3f4d5e10a44311da9e3f000c29df6877#SAPEngine_Application_Thread[impl:3]_11##0#0#Info#1#/Applications/KMC/RF#Plain###CM system is shutting down...
#1.5#000C29DF6877004F0000002200000C6000040D71C6D986AF#1140682225250#com.sapportals.wcm.repository.runtime.CmSystem#sap.com/irj#com.sapportals.wcm.repository.runtime.CmSystem#dmadmin#860####3f4d5e10a44311da9e3f000c29df6877#SAPEngine_Application_Thread[impl:3]_11##0#0#Info#1#/Applications/KMC/RF#Plain###CM system is shutting down... - shutdown of CRT#
#1.5#000C29DF6877004F0000002400000C6000040D71C6F9CA15#1140682227359#com.sapportals.wcm.WcmException#sap.com/irj#com.sapportals.wcm.WcmException.WcmException(90)#dmadmin#860####3f4d5e10a44311da9e3f000c29df6877#SAPEngine_Application_Thread[impl:3]_11##0#0#Error##Plain###Failed to access the component instance: already shut down: class=com.sapportals.wcm.service.urlgenerator.URLGenerator, uri=crt://runtime/services/URLGeneratorService com.sapportals.wcm.crt.component.ComponentException: Failed to access the component instance: already shut down: class=com.sapportals.wcm.service.urlgenerator.URLGenerator, uri=crt://runtime/services/URLGeneratorService
at com.sapportals.wcm.crt.CrtComponentManager.lookup(CrtComponentManager.java:325)
at com.sapportals.wcm.crt.CrtComponentManager.lookupChildComponent(CrtComponentManager.java:403)
at com.sapportals.wcm.crt.CrtContainerManager.lookupComponent(CrtContainerManager.java:44)
at com.sapportals.wcm.repository.runtime.CmAdapter.getService(CmAdapter.java:626)
at com.sapportals.wcm.repository.manager.um.UMRepositoryManager.shutDownImpl(UMRepositoryManager.java:105)
at com.sapportals.wcm.repository.manager.AbstractRepositoryManager.stop(AbstractRepositoryManager.java:626)
at com.sapportals.wcm.crt.CrtThreadSafeComponentHandler.handleShutDown(CrtThreadSafeComponentHandler.java:172)
at com.sapportals.wcm.crt.CrtComponentManager.shutDown(CrtComponentManager.java:303)
at com.sapportals.wcm.crt.CrtSystemImpl.shutDownComponentManager(CrtSystemImpl.java:180)
at com.sapportals.wcm.repository.runtime.CmSystem.shutDown(CmSystem.java:300)
at com.sapportals.wcm.repository.runtime.CmSystem.classLoaderAdded(CmSystem.java:446)
at com.sapportals.wcm.crt.CrtClassLoaderRegistry.notifyClassLoaderAdded(CrtClassLoaderRegistry.java:501)
at com.sapportals.wcm.crt.CrtClassLoaderRegistry.registerClassLoader(CrtClassLoaderRegistry.java:440)
at com.sapportals.wcm.crt.CrtClassLoaderRegistry.addClassLoader(CrtClassLoaderRegistry.java:327)
at com.sapportals.wcm.crt.CrtClassLoaderRegistry.addClassLoader(CrtClassLoaderRegistry.java:299)
at com.documentum.ei.eprm.wrapper.RFServiceWrapper.init(RFServiceWrapper.java:17)
at com.sapportals.portal.prt.core.broker.PortalServiceItem.__initServiceInstance(PortalServiceItem.java:801)
at com.sapportals.portal.prt.core.broker.PortalServiceItem.createServiceInstance(PortalServiceItem.java:614)
at com.sapportals.portal.prt.core.broker.PortalServiceItem.startServices(PortalServiceItem.java:1042)
at com.sapportals.portal.prt.core.broker.PortalAppBroker.startLoadOnStartupServices(PortalAppBroker.java:1563)
at com.sapportals.portal.prt.core.broker.PortalAppBroker.start(PortalAppBroker.java:1518)
at com.sapportals.portal.prt.core.broker.PortalAppBroker.restartQueuedApplication(PortalAppBroker.java:1866)
at com.sapportals.portal.prt.core.broker.PortalAppBroker.updateApplications(PortalAppBroker.java:1702)
at com.sapportals.portal.prt.deployment.DeploymentManager.updateApplications(DeploymentManager.java:1754)
at com.sap.ip.portal.admin.portalanywhere.QueryHandler.handleTopic(QueryHandler.java:152)
at com.sapportals.portal.prt.service.notification.impl.NotificationSAPJ2EE630.executeActionHandleTopic(NotificationSAPJ2EE630.java:1141)
at com.sapportals.portal.prt.service.notification.impl.NotificationSAPJ2EE630.notifyActionSubscribers(NotificationSAPJ2EE630.java:1089)
at com.sapportals.portal.prt.service.notification.impl.NotificationSAPJ2EE630.receiveWait(NotificationSAPJ2EE630.java:386)
at com.sapportals.portal.prt.service.notification.impl.NotificationSAPJ2EE630.broadcastAndWait(NotificationSAPJ2EE630.java:553)
at com.sapportals.portal.prt.service.notification.NotificationServiceDispatcher.broadcastAndWait(NotificationServiceDispatcher.java:192)
at com.sap.ip.portal.admin.portalanywhere.EventForwarder.sendQueryAndGetResults(EventForwarder.java:122)
at com.sap.ip.portal.admin.portalanywhere.EventForwarder.sendQueryToAllServers(EventForwarder.java:144)
at com.sap.ip.portal.admin.portalanywhere.EventForwarder.forwardEventToAllServers(EventForwarder.java:135)
at com.sap.ip.portal.admin.portalanywhere.ArchiveUploader.forwardUpdateToAllServers(ArchiveUploader.java:253)
at com.sap.ip.portal.admin.portalanywhere.ArchiveUploader.doContent(ArchiveUploader.java:191)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
java.lang.IllegalStateException: already shut down: class=com.sapportals.wcm.service.urlgenerator.URLGenerator, uri=crt://runtime/services/URLGeneratorService
at com.sapportals.wcm.crt.CrtThreadSafeComponentHandler.handleLookup(CrtThreadSafeComponentHandler.java:97)
at com.sapportals.wcm.crt.CrtComponentManager.lookup(CrtComponentManager.java:322)
at com.sapportals.wcm.crt.CrtComponentManager.lookupChildComponent(CrtComponentManager.java:403)
at com.sapportals.wcm.crt.CrtContainerManager.lookupComponent(CrtContainerManager.java:44)
at com.sapportals.wcm.repository.runtime.CmAdapter.getService(CmAdapter.java:626)
at com.sapportals.wcm.repository.manager.um.UMRepositoryManager.shutDownImpl(UMRepositoryManager.java:105)
at com.sapportals.wcm.repository.manager.AbstractRepositoryManager.stop(AbstractRepositoryManager.java:626)
at com.sapportals.wcm.crt.CrtThreadSafeComponentHandler.handleShutDown(CrtThreadSafeComponentHandler.java:172)
at com.sapportals.wcm.crt.CrtComponentManager.shutDown(CrtComponentManager.java:303)
at com.sapportals.wcm.crt.CrtSystemImpl.shutDownComponentManager(CrtSystemImpl.java:180)
at com.sapportals.wcm.repository.runtime.CmSystem.shutDown(CmSystem.java:300)
at com.sapportals.wcm.repository.runtime.CmSystem.classLoaderAdded(CmSystem.java:446)
at com.sapportals.wcm.crt.CrtClassLoaderRegistry.notifyClassLoaderAdded(CrtClassLoaderRegistry.java:501)
at com.sapportals.wcm.crt.CrtClassLoaderRegistry.registerClassLoader(CrtClassLoaderRegistry.java:440)
at com.sapportals.wcm.crt.CrtClassLoaderRegistry.addClassLoader(CrtClassLoaderRegistry.java:327)
at com.sapportals.wcm.crt.CrtClassLoaderRegistry.addClassLoader(CrtClassLoaderRegistry.java:299)
at com.documentum.ei.eprm.wrapper.RFServiceWrapper.init(RFServiceWrapper.java:17)
at com.sapportals.portal.prt.core.broker.PortalServiceItem.__initServiceInstance(PortalServiceItem.java:801)
at com.sapportals.portal.prt.core.broker.PortalServiceItem.createServiceInstance(PortalServiceItem.java:614)
at com.sapportals.portal.prt.core.broker.PortalServiceItem.startServices(PortalServiceItem.java:1042)
at com.sapportals.portal.prt.core.broker.PortalAppBroker.startLoadOnStartupServices(PortalAppBroker.java:1563)
at com.sapportals.portal.prt.core.broker.PortalAppBroker.start(PortalAppBroker.java:1518)
at com.sapportals.portal.prt.core.broker.PortalAppBroker.restartQueuedApplication(PortalAppBroker.java:1866)
at com.sapportals.portal.prt.core.broker.PortalAppBroker.updateApplications(PortalAppBroker.java:1702)
at com.sapportals.portal.prt.deployment.DeploymentManager.updateApplications(DeploymentManager.java:1754)
at com.sap.ip.portal.admin.portalanywhere.QueryHandler.handleTopic(QueryHandler.java:152)
at com.sapportals.portal.prt.service.notification.impl.NotificationSAPJ2EE630.executeActionHandleTopic(NotificationSAPJ2EE630.java:1141)
at com.sapportals.portal.prt.service.notification.impl.NotificationSAPJ2EE630.notifyActionSubscribers(NotificationSAPJ2EE630.java:1089)
at com.sapportals.portal.prt.service.notification.impl.NotificationSAPJ2EE630.receiveWait(NotificationSAPJ2EE630.java:386)
at com.sapportals.portal.prt.service.notification.impl.NotificationSAPJ2EE630.broadcastAndWait(NotificationSAPJ2EE630.java:553)
at com.sapportals.portal.prt.service.notification.NotificationServiceDispatcher.broadcastAndWait(NotificationServiceDispatcher.java:192)
at com.sap.ip.portal.admin.portalanywhere.EventForwarder.sendQueryAndGetResults(EventForwarder.java:122)
at com.sap.ip.portal.admin.portalanywhere.EventForwarder.sendQueryToAllServers(EventForwarder.java:144)
at com.sap.ip.portal.admin.portalanywhere.EventForwarder.forwardEventToAllServers(EventForwarder.java:135)
at com.sap.ip.portal.admin.portalanywhere.ArchiveUploader.forwardUpdateToAllServers(ArchiveUploader.java:253)
at com.sap.ip.portal.admin.portalanywhere.ArchiveUploader.doContent(ArchiveUploader.java:191)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
#1.5#000C29DF6877004F0000002500000C6000040D71C6FAD9EF#1140682227437#com.sapportals.wcm.repository.manager.um.UMRepositoryManager#sap.com/irj#com.sapportals.wcm.repository.manager.um.UMRepositoryManager#dmadmin#860####3f4d5e10a44311da9e3f000c29df6877#SAPEngine_Application_Thread[impl:3]_11##0#0#Error##Plain###exception occured when trying to unregister RID generator - com.sapportals.wcm.repository.ResourceException: Failed to access the component instance: already shut down: class=com.sapportals.wcm.service.urlgenerator.URLGenerator, uri=crt://runtime/services/URLGeneratorService
at com.sapportals.wcm.repository.ResourceException.fillInStackTrace(ResourceException.java:400)
at java.lang.Throwable.<init>(Throwable.java:195)
at java.lang.Exception.<init>(Exception.java:41)
at com.sapportals.wcm.WcmException.<init>(WcmException.java:78)
at com.sapportals.wcm.WcmException.<init>(WcmException.java:74)
at com.sapportals.wcm.util.content.ContentException.<init>(ContentException.java:42)
at com.sapportals.wcm.repository.ResourceException.<init>(ResourceException.java:250)
at com.sapportals.wcm.repository.runtime.CmAdapter.getService(CmAdapter.java:652)
at com.sapportals.wcm.repository.manager.um.UMRepositoryManager.shutDownImpl(UMRepositoryManager.java:105)
at com.sapportals.wcm.repository.manager.AbstractRepositoryManager.stop(AbstractRepositoryManager.java:626)
at com.sapportals.wcm.crt.CrtThreadSafeComponentHandler.handleShutDown(CrtThreadSafeComponentHandler.java:172)
at com.sapportals.wcm.crt.CrtComponentManager.shutDown(CrtComponentManager.java:303)
at com.sapportals.wcm.crt.CrtSystemImpl.shutDownComponentManager(CrtSystemImpl.java:180)
at com.sapportals.wcm.repository.runtime.CmSystem.shutDown(CmSystem.java:300)
at com.sapportals.wcm.repository.runtime.CmSystem.classLoaderAdded(CmSystem.java:446)
at com.sapportals.wcm.crt.CrtClassLoaderRegistry.notifyClassLoaderAdded(CrtClassLoaderRegistry.java:501)
at com.sapportals.wcm.crt.CrtClassLoaderRegistry.registerClassLoader(CrtClassLoaderRegistry.java:440)
at com.sapportals.wcm.crt.CrtClassLoaderRegistry.addClassLoader(CrtClassLoaderRegistry.java:327)
at com.sapportals.wcm.crt.CrtClassLoaderRegistry.addClassLoader(CrtClassLoaderRegistry.java:299)
at com.documentum.ei.eprm.wrapper.RFServiceWrapper.init(RFServiceWrapper.java:17)
at com.sapportals.portal.prt.core.broker.PortalServiceItem.__initServiceInstance(PortalServiceItem.java:801)
at com.sapportals.portal.prt.core.broker.PortalServiceItem.createServiceInstance(PortalServiceItem.java:614)
at com.sapportals.portal.prt.core.broker.PortalServiceItem.startServices(PortalServiceItem.java:1042)
at com.sapportals.portal.prt.core.broker.PortalAppBroker.startLoadOnStartupServices(PortalAppBroker.java:1563)
at com.sapportals.portal.prt.core.broker.PortalAppBroker.start(PortalAppBroker.java:1518)
at com.sapportals.portal.prt.core.broker.PortalAppBroker.restartQueuedApplication(PortalAppBroker.java:1866)
at com.sapportals.portal.prt.core.broker.PortalAppBroker.updateApplications(PortalAppBroker.java:1702)
at com.sapportals.portal.prt.deployment.DeploymentManager.updateApplications(DeploymentManager.java:1754)
at com.sap.ip.portal.admin.portalanywhere.QueryHandler.handleTopic(QueryHandler.java:152)
at com.sapportals.portal.prt.service.notification.impl.NotificationSAPJ2EE630.executeActionHandleTopic(NotificationSAPJ2EE630.java:1141)
at com.sapportals.portal.prt.service.notification.impl.NotificationSAPJ2EE630.notifyActionSubscribers(NotificationSAPJ2EE630.java:1089)
at com.sapportals.portal.prt.service.notification.impl.NotificationSAPJ2EE630.receiveWait(NotificationSAPJ2EE630.java:386)
at com.sapportals.portal.prt.service.notification.impl.NotificationSAPJ2EE630.broadcastAndWait(NotificationSAPJ2EE630.java:553)
at com.sapportals.portal.prt.service.notification.NotificationServiceDispatcher.broadcastAndWait(NotificationServiceDispatcher.java:192)
at com.sap.ip.portal.admin.portalanywhere.EventForwarder.sendQueryAndGetResults(EventForwarder.java:122)
at com.sap.ip.portal.admin.portalanywhere.EventForwarder.sendQueryToAllServers(EventForwarder.java:144)
at com.sap.ip.portal.admin.portalanywhere.EventForwarder.forwardEventToAllServers(EventForwarder.java:135)
at com.sap.ip.portal.admin.portalanywhere.ArchiveUploader.forwardUpdateToAllServers(ArchiveUploader.java:253)
at com.sap.ip.portal.admin.portalanywhere.ArchiveUploader.doContent(ArchiveUploader.java:191)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
#1.5#000C29DF6877006B0000000000000C6000040D71C6FBC824#1140682227500#com.sapportals.wcm.util.logging.CatchBlockHandler#sap.com/irj#com.sapportals.wcm.util.logging.CatchBlockHandler.NotificatorService#Guest#192####d938e6c0a44311dacbb6000c29df6877#Thread[com.sapportals.wcm.notificator.sender,5,system]##0#0#Error##Plain###[ECB] sleep interrupted: java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at com.sapportals.wcm.service.notificator.wcm.NotificatorService$Sender.run(NotificatorService.java:590)
at java.lang.Thread.run(Thread.java:534)
#1.5#000C29DF6877004F0000002700000C6000040D71C6FC1649#1140682227515#com.sapportals.wcm.repository.runtime.CmSystem#sap.com/irj#com.sapportals.wcm.repository.runtime.CmSystem#dmadmin#860####3f4d5e10a44311da9e3f000c29df6877#SAPEngine_Application_Thread[impl:3]_11##0#0#Info#1#/Applications/KMC/RF#Plain###CM successfully shut down.#
#1.5#000C29DF687700400000000D00000C6000040D71D8DD6144#1140682527453#com.sapportals.wcm.repository.runtime.CmSystem#sap.com/irj#com.sapportals.wcm.repository.runtime.CmSystem#dmadmin#770##VMENGPE3_PE3_7099050#dmadmin#276daea0a44111da9060000c29df6877#SAPEngine_Application_Thread[impl:3]_14##0#0#Info#1#/Applications/KMC/RF#Plain###CM system is starting ...
#1.5#000C29DF687700400000000F00000C6000040D71D97B03D2#1140682537781#com.sapportals.wcm.repository.runtime.CmSystem#sap.com/irj#com.sapportals.wcm.repository.runtime.CmSystem#dmadmin#770##VMENGPE3_PE3_7099050#dmadmin#276daea0a44111da9060000c29df6877#SAPEngine_Application_Thread[impl:3]_14##0#0#Info#1#/Applications/KMC/RF#Plain###CM successfully started.#Obviously the class isn't loaded. So that suggests one of the following.
- There is no class output (no byte codes.)
- It is written as a file.
- It is written into memory.
Nothing I saw in the java docs suggests the last. Nothing I can find would suggest the first.
super(new URI(className + ".java"), Kind.SOURCE);The URI must mean something in the above. Is there a ".java" file created somewhere? Did you open it? -
My jsp page is not displayed - tomcat does not pick up the class file
Hi everybody,
I have a Java code which is a controller for a jsp page, called: HomeController.java. Code is as follows:
@Controller
public class HomeController {
protected final transient Log log = LogFactory.getLog(getClass());
@RequestMapping(value = "/mypage")
public String home() {
System.out.println("HomeController: Passing through...");
return "home";
}There is nothing especial in the jsp page: home.jsp. If I go to this url:
http://localhost:8080/adcopyqueue/mypage
I can view mypage and everything works fine. Also in the tomcat Dos page I can see the comment:
HomeController: Passing through...As expected.
Now under the same directory that I have HomeController.java, I've created another file called: LoginController.java. Following is the code:
@Controller
public class LoginController {
protected final transient Log log = LogFactory.getLog(getClass());
@RequestMapping(value = "/loginpage")
public String login() {
System.out.println("LoginController: Passing through...");
return "login";
}And under the same place which I have home.jsp, I've created login.jsp.
Also under tomcat folders, LoginController.class exists under the same folder that HomeController.class exists and login.jsp exists under the same folder which home.jsp exists.
But when I go to this url: http://localhost:8080/adcopyqueue/loginpage
Nothing is displayed! I think tomcat does not pick up LoginController.class b/c on the tomcat Dos window, I do NOT see this comment:
LoginController: Passing through...Instead I see following which I do not know what do they mean?
[ INFO] [http-8080-1 01:43:45] (AppInfo.java:populateAppInfo:34) got manifest
[ INFO] [http-8080-1 01:43:45] (AppInfo.java:populateAppInfo:36) manifest entrie
s 8The structure and the code for HomeController.java and LoginController.java plus the jsp files match. I have no idea why tomcat sees one of the files and not the other?
Clean build did not help. Does anybody have any idea? Any help is greatly appraciated.
Edited by: ronitt on Nov 16, 2011 3:55 PMHi,
Please check the following path if your application is deployed or not properly if you are using eclipse:
Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps -
Weird error where java cant see the classes
OK the best way to escirbe my error is with the following image (cut and paste please)
www.angelfire.com/clone/wolfbane/Images/prompt.jpg
This never happened, but for some reason today it does. I can call javac to compile the simple test.java file in the directory, and it does, but then when I try to run the test.class it says class not found. I did not change any class paths or anything like that. Can someone please tell me what is going on. Why is it that all of a sudden java can't see the class files?Either
the class does not exist, or
the name of the class is wrong, or
the file that contains the class is not on the classpath. -
What does "failed to load the kiosk" mean?
I just bought a new BT Home Hub. I have a problem with The Times app. I have tried reloading the software and the paper will not load. I get the statement "Failed to load the Kiosk". What does it mean?
What does the maker of that device have to say?
-
Does Java self-limit the number of active threads?
I was hoping someone might be able to shed some light on this:
I basically have a loop which creates an instance of a class that extends Thread. This class, lets call it MyTask, may take a minute or two to run. In my run() method I system.out an ID as soon as the .start() is actioned, like this:
class MyTask extends Thread
int nMyID;
public MyTask(int vnMyID)
this.nMyID = vnMyID;
public void run()
System.out.println(this.nMyID);
// do other stuff that takes a couple of mins...
ThirdPartyAPI.dosomething();
In my loop I create an instance of MyTask and call the .start() method on it.
What I'm seeing is that rather than the ID being outputted immediately as I would expect, the IDs are being outputted over a period of time, so this to me would imply that Java is queuing the threads before starting them? I don't want it to queue the treads because the rest of MyTask is simply sat waiting for a response from a third party system. It gets through them all eventually, but it just takes a long time, and it should be quicker.
Is there anything I can do to stop it from behaving this way?
Thank youBigBadBurrow wrote:
I was hoping someone might be able to shed some light on this:
I basically have a loop which creates an instance of a class that extends Thread. Unrelated to your problem, but just as a side note, that's poor design. You're almost certainly not creating a specialized kind of Thread, but rather, a task to be run in its own thread, and hence you should implement Runnable.
This class, lets call it MyTask, may take a minute or two to run. In my run() method I system.out an ID as soon as the .start() is actioned, like this:
class MyTask extends Thread
int nMyID;
public MyTask(int vnMyID)
this.nMyID = vnMyID;
public void run()
System.out.println(this.nMyID);
// do other stuff that takes a couple of mins...
ThirdPartyAPI.dosomething();
In my loop I create an instance of MyTask and call the .start() method on it.
What I'm seeing is that rather than the ID being outputted immediately as I would expect, the IDs are being outputted over a period of timeProvide an [url http://sscce.org]SSCCE
, so this to me would imply that Java is queuing the threads before starting them? Not generally, no. However, once you've started the other threads, you now have those threads running plus your main thread. If your main thread goes on to do some CPU intensive work, it might be some time before the other threads get cycles. Anytime you have more threads the CPUs/cores, there will be at least one thread that's waiting. You don't (and shouldn't need to) control which thread gets CPU when. -
Does Java package has Model class?
I found the following code below from http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/web-tier/web-tier5.html. The problem is there is no Model class during the java compilation. I thought it is included in the Java package. Anyway, I was fail to import the Model class from java.lang.Object, java.awt, java.awt.event.*, javax.swing.*, java.util.*, and so on. Does Model class belong to Java package or self create?
// Action.java:
public abstract class Action {
protected Model model;
public Action(Model model) { this.model = model; }
public abstract String getName();
public abstract Object perform(HttpServletRequest req);
// CreateUserAction.java:
public class CreateUserAction extends Action {
public CreateUserAction(Model model) {
super(model);
public String getName() { return "createUser"; }
public Object perform(HttpServletRequest req) {
return model.createUser(req.getAttribute("user"),
req.getAttribute("pass"));
}No, it's not a Java SDK class, and it doesn't self-create. It must be part of the blueprints download, so you'll have to find where it is (a JAR file you've downloaded, perhaps) and put it in the CLASSPATH.
-
After upgrade to CS5 Audio does not import / load with video in avi
I updated from Ppro CS3 to CS5 purchased from the Adobe store.
I opened a project created in CS3 in CS5 and followed the prompt to save it as a new project.
All tracks, edits, etc were intact and any given sequence played re-rendered etc., as expected.
I created a new project, imported one of the same avi files used in step 2. Again, everything worked properly
I ran update from the PPro help menu to 5.0.3. I ran this process two different times. The first time I selected all updates. The second time I only update PPro itself. I did a system restore in between, the following results were identical in both situations.
Now, when I open either the converted or new projected file, Ppro reports the media as "offline"…it is not. If I "Link Media" the file, I get this message: The selected file does not contain audio media used by clip references in one or more sequences. These audio clip references will be deleted, and cannot be undone. Do you want to continue?"
Gspot.exe reports the audio codec as MPEG-1 Layer 2 and the video codec as MJPG
The avi files were rendered on a MAC from .MOV's to AVI's. Here are the file properties that PPRo reports:
File Path: E:\CONVERTED\3-1
Type: QuickTime Movie
File Size: 21.9 GB
Image Size: 1440 x 1080
Pixel Depth: 24
Frame Rate: 29.97
Total Duration: 00:23:47:20
Average Data Rate: 15.7 MB / second
Pixel Aspect Ratio: 1.3333
Something in the update from 5.0 to 5.0.3 is the problem.
Running on Windows 7, x64, latest updatesFWIW,
here is the output for the corresponding .mov file...which PPro will not load
General
Complete name : E:\coregenius\1.mov
Format : MPEG-4
Format profile : QuickTime
Codec ID : qt
File size : 14.0 GiB
Duration : 1h 15mn
Overall bit rate : 26.6 Mbps
Encoded date : UTC 2010-11-18 20:09:00
Tagged date : UTC 2010-11-18 20:09:01
Writing library : Apple QuickTime
Original source medium : 001
©TSC : 2997
©TSZ : 100
Video
ID : 1
Format : hdv2
Codec ID : hdv2
Duration : 1h 15mn
Bit rate mode : Variable
Bit rate : 25.0 Mbps
Width : 1 416 pixels
Original width : 1 440 pixels
Height : 1 062 pixels
Original height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 fps
Bits/(Pixel*Frame) : 0.555
Stream size : 13.2 GiB (94%)
Language : English
Encoded date : UTC 2010-11-18 20:09:00
Tagged date : UTC 2010-11-18 20:09:01
Audio #1
ID : 2
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Signed
Codec ID : sowt
Duration : 1h 15mn
Bit rate mode : Constant
Bit rate : 768 Kbps
Channel(s) : 1 channel
Channel positions : Front: L
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Stream size : 414 MiB (3%)
Language : English
Encoded date : UTC 2010-11-18 20:09:00
Tagged date : UTC 2010-11-18 20:09:01
Audio #2
ID : 3
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Signed
Codec ID : sowt
Duration : 1h 15mn
Bit rate mode : Constant
Bit rate : 768 Kbps
Channel(s) : 1 channel
Channel positions : Front: R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Stream size : 414 MiB (3%)
Language : English
Encoded date : UTC 2010-11-18 20:09:01
Tagged date : UTC 2010-11-18 20:09:01
Menu
ID : 4
Language : English
Encoded date : UTC 2010-11-18 20:09:01
Tagged date : UTC 2010-11-18 20:09:01 -
When looking for images on Google Images why does Firefox only load the first page?
For over a month now whenever I've gone to Google Images only the first page of pictures is shown, the others are just gray boxes or nothing at all. I've cleared my cache and cookies, but don't know what else I can try.
Does it help if you disable "Google Instant" in the Google Search settings?
You can click the Gear icon (top right) to open the Google Settings page -
Not able to to see interfaces after doing export import of the Business sys
Hi Gurus,
I am exporting an business system associated with CRM system from Dev system of XI 3.0 to dev PI 7.1 system client 500. After taking the export from XI 3.0 , when I import the business system in PI7.1 and associate it with the corresponding Technical system I am unbale to see the interface associate with the Business system. Thus I am having a problem of creating the Receiver Determination, Interface Determination etc in the Integration Directory of the PI 7.1 system. Can anyone suggets how to get the interfaces associated with the Business system....
Thanks
Regards
suk4023Check if this blog helps you: /people/shabarish.vijayakumar/blog/2010/05/13/cant-find-interfaces-in-the-associated-business-system
Regards,
Abhishek. -
Does Java Proxy guarantee the delivery of message?
Hi All ,
I would like to know, if java client proxy guarantees the delivery of messages similar to ABAP client proxies.
I am asking this question with reference to a situation where the XI system is down and the client proxy messages are invoked to the Integration Server.
Can anyone share more thoughts on this?
Thanks
NarendraNarendra,
Refer to the url http://help.sap.com/saphelp_nw04/helpdata/en/e3/c809c2fde0af4098e1ae126d06866c/frameset.htm
From the menu on the LHS of this page you can navigate down to Acknowledgements
An acknowledgement can be set which will enable you to confirm that an asynchronous message has been received
Hope this helps,
Mike
Maybe you are looking for
-
PSE9 - having trouble with "html email sender verification" page
We have just purchased the PSE9. This is our first venture into a photoshop program. We are wanting to send some of our pictures to friends via email. Just after we push the "share" button, to create an attachment for the email, we get this page "htm
-
InDesign CC ePub Fixed Layout not showing up as an Export option
I am trying to export an ePub Fixed Layout, but when I go to Export, I only have the ePub option - No Fixed Layout. I have updated to the latest version on Cloud and have restarted my computer. Any solutions?
-
MBP not connecting to external VGA display
Hello everyone, I have an issue with my MBP (13", Mid 2009) and my external monitor (Samsung SyncMaster 2343NW). I'm connecting the display using a simple Mini DisplayPort to VGA adapter. The problem is that it is not a consistent issue. Sometimes it
-
Hi, I'm having a bit of trouble using the quiz slides. For example, I've tried a very simple Yes/No slide and it appears in edit mode with 'Correct, click anywhere to continue', 'Incorrect...', 'You must answer the question..." and a review area. Des
-
Transaction cache VS Session cache
Hi, Some one please help me to understand the concepts of ttransaction cache VS Session cache. In the user guide its given that For AM : Any data stored on the transaction is accessible to all pages that share the same root application module instanc