Lots of exceptions thrown
Hi,
We are switching to test our codes based on JRockitRealTime 3.0.0, 1.6, linux 64 from Sun HotSpot.
We notice a quite a few things are significant slower when compared to the results based on HotSpot.
Turning on the Xverbose:exceptions=debug, we see lots of exceptions thrown, the following is just 1 example of many (with different kinds of stack trace too). And we believe they are the main cause to the slowdown. Can you help explain why we're getting the exceptions and how to resolve them? We did not see the exceptions from running HotSpot JVM, and looks like there is no need/way to turn on the exception traces from HotSpot HVM so we assume there were no exceptions thrown when we ran our applications based on HotSpot JVM. Interestingly, even with the exceptions looks like our applications still function ok, that make me to think is it this something internal to JRockit?
Regards,
Jasper
[DEBUG][excepti][00180] java/lang/NoSuchMethodException: java.lang.String.clone()^M
at jrockit/vm/Reflect.fillInStackTrace0(Ljava/lang/Throwable;)V(Native Method)^M
at java/lang/Throwable.fillInStackTrace()Ljava/lang/Throwable;(Native Method)^M
at java/lang/Throwable.<init>(Throwable.java:196)^M
at java/lang/Exception.<init>(Exception.java:41)^M
at java/lang/NoSuchMethodException.<init>(NoSuchMethodException.java:32)^M
at java/lang/Class.getMethod(Class.java:1605)^M
at com/tangosol/run/xml/PropertyAdapter.<init>(PropertyAdapter.java:152)^M
at com/tangosol/run/xml/SimpleAdapter.<init>(SimpleAdapter.java:59)^M
at com/tangosol/run/xml/SimpleAdapter$StringAdapter.<init>(SimpleAdapter.java:1415)^M
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)^M
at jrockit/vm/Reflect.invokeMethod(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Native Method)^M
at sun/reflect/NativeConstructorAccessorImpl.newInstance0(Ljava/lang/reflect/Constructor;[Ljava/lang/Object;)Ljava/lang/Object;(Native Method)^M
at sun/reflect/NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)^M
at sun/reflect/DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)^M
at java/lang/reflect/Constructor.newInstance(Constructor.java:513)^M
at com/tangosol/run/xml/XmlBean$BeanInfo.makeAdapter(XmlBean.java:1141)^M
at com/tangosol/run/xml/XmlBean$BeanInfo.<init>(XmlBean.java:966)^M
at com/tangosol/run/xml/XmlBean.initBeanInfo(XmlBean.java:874)^M
at com/tangosol/run/xml/XmlBean.findBeanInfo(XmlBean.java:814)^M
at com/tangosol/run/xml/XmlBean.getBeanInfo(XmlBean.java:362)^M
at com/tangosol/util/ExternalizableHelper.writeXmlBean(ExternalizableHelper.java:2009)^M
at com/tangosol/util/ExternalizableHelper.internalWriteObject(ExternalizableHelper.java:2505)^M
at com/tangosol/util/ExternalizableHelper.toBinary(ExternalizableHelper.java:169)^M
at com/tangosol/coherence/component/util/daemon/queueProcessor/service/DistributedCache$ConverterKeyToBinary.convert(DistributedCache.CDB:30)^M
at com/tangosol/util/ConverterCollections$ConverterMap.put(ConverterCollections.java:1317)^M
at com/tangosol/coherence/component/util/daemon/queueProcessor/service/DistributedCache$ViewMap.put(DistributedCache.CDB:1)^M
at com/tangosol/coherence/component/util/SafeNamedCache.put(SafeNamedCache.CDB:1)^M
at com/oracle/ngc/prototype/platform/CacheHelper.createObject(CacheHelper.java:808)^M
at com/oracle/ngc/prototype/object/Account.BulkCreate(Account.java:186)^M at com/oracle/ngc/prototype/loader/PopulateSubscriptionCache$LoadDaemon.run(PopulateSubscriptionCache.java:379)^M
at com/tangosol/util/Daemon$DaemonWorker.run(Daemon.java:519)^M
at java/lang/Thread.run(Thread.java:619)^M
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)^M
--- End of stack trace^M
Turning on exception printouts with -Xverbose:exceptions will print out all exceptions being thrown, whether they are caught or not. It is not unusal for programs to cause execptions as part of their normal execution and to catch them silently. -Xverbose:exceptions is primarily a debugging and supportability tool.
Thus, it is highly likely that the same number of exceptions are thrown when running with Hotspot, but there are no debugging tools available for Hotspot that will show these exceptions.
To analyze the slow down you are seeing, I would suggest that you do a JRA profiler recording (part of JRockit Mission Control) and see if there is anything in that data that looks suspicious (such as long GC pauses or method bottlenecks).
Regards,
/Staffan
Similar Messages
-
Lots of exceptions thrown with JRockit JVM
Hi,
We are switching to test our codes based on JRockitRealTime 3.0.0, 1.6, linux 64 from Sun HotSpot.
Our Coherence version is 3.3.1
We notice a quite a few things are significant slower when compared to the results based on HotSpot.
Turning on the Xverbose:exceptions=debug, we see lots of exceptions thrown, the following is just 1 example of many (with different kinds of stack trace too) related to Coherence API calls. And we believe they are the main cause to the slowdown. Has this kind of problem observed and reported to Coherence before? We did not see the exceptions from running HotSpot JVM, and looks like there is no need/way to turn on the exception traces from HotSpot HVM so we assume there were no exceptions thrown when we ran our applications based on HotSpot JVM.
Regards,
Jasper
DEBUGexcepti00180 java/lang/NoSuchMethodException: java.lang.String.clone()^M
at jrockit/vm/Reflect.fillInStackTrace0(Ljava/lang/Throwable;)V(Native Method)^M
at java/lang/Throwable.fillInStackTrace()Ljava/lang/Throwable;(Native Method)^M
at java/lang/Throwable.<init>(Throwable.java:196)^M
at java/lang/Exception.<init>(Exception.java:41)^M
at java/lang/NoSuchMethodException.<init>(NoSuchMethodException.java:32)^M
at java/lang/Class.getMethod(Class.java:1605)^M
at com/tangosol/run/xml/PropertyAdapter.<init>(PropertyAdapter.java:152)^M
at com/tangosol/run/xml/SimpleAdapter.<init>(SimpleAdapter.java:59)^M
at com/tangosol/run/xml/SimpleAdapter$StringAdapter.<init>(SimpleAdapter.java:1415)^M
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)^M
at jrockit/vm/Reflect.invokeMethod(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Native Method)^M
at sun/reflect/NativeConstructorAccessorImpl.newInstance0(Ljava/lang/reflect/Constructor;[Ljava/lang/Object;)Ljava/lang/Object;(Native Method)^M
at sun/reflect/NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)^M
at sun/reflect/DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)^M
at java/lang/reflect/Constructor.newInstance(Constructor.java:513)^M
at com/tangosol/run/xml/XmlBean$BeanInfo.makeAdapter(XmlBean.java:1141)^M
at com/tangosol/run/xml/XmlBean$BeanInfo.<init>(XmlBean.java:966)^M
at com/tangosol/run/xml/XmlBean.initBeanInfo(XmlBean.java:874)^M
at com/tangosol/run/xml/XmlBean.findBeanInfo(XmlBean.java:814)^M
at com/tangosol/run/xml/XmlBean.getBeanInfo(XmlBean.java:362)^M
at com/tangosol/util/ExternalizableHelper.writeXmlBean(ExternalizableHelper.java:2009)^M
at com/tangosol/util/ExternalizableHelper.internalWriteObject(ExternalizableHelper.java:2505)^M
at com/tangosol/util/ExternalizableHelper.toBinary(ExternalizableHelper.java:169)^M
at com/tangosol/coherence/component/util/daemon/queueProcessor/service/DistributedCache$ConverterKeyToBinary.convert(DistributedCache.CDB:30)^M
at com/tangosol/util/ConverterCollections$ConverterMap.put(ConverterCollections.java:1317)^M
at com/tangosol/coherence/component/util/daemon/queueProcessor/service/DistributedCache$ViewMap.put(DistributedCache.CDB:1)^M
at com/tangosol/coherence/component/util/SafeNamedCache.put(SafeNamedCache.CDB:1)^M
at com/oracle/ngc/prototype/platform/CacheHelper.createObject(CacheHelper.java:808)^M
at com/oracle/ngc/prototype/object/Account.BulkCreate(Account.java:186)^M at com/oracle/ngc/prototype/loader/PopulateSubscriptionCache$LoadDaemon.run(PopulateSubscriptionCache.java:379)^M
at com/tangosol/util/Daemon$DaemonWorker.run(Daemon.java:519)^M
at java/lang/Thread.run(Thread.java:619)^M
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)^M
--- End of stack trace^MHi Jasper,
First, I'd like to underscore that what you see are exceptions that are expected and handled gracefully by the standard Java serialization or Coherence classes.
The reason you don't see those exceptions with Sun's JVM is that it does not have an option (at least to my knowledge) to show them. This is a very nice debugging feature of JRockit that allows you to see what is going on (and always has been!) under the hood.
The example you gave is a part of the XmlBean introspection logic checking for a public "clone" method. This code runs once per a class initialization as a part of the static initializer and, as a result, does not impact an application performance. However, if you see exceptions that are occurring constantly, it definitely should be of concern.
Regards,
Gene -
How to properly handle Exception thrown in a .tag file?
I've got a .jsp file that makes use of some custom tags, each defined in their own .tag file, and located in WEB-INF/tags. I'm having a lot of trouble with the scenario of cleanly dealing with an exception raised by scriptlets in either a .jsp file, and a .tag file. I'm using both Java and Tomcat 6....
Originally, I wanted to use .tag files in order to componentize common elements that were present in .jsp pages, as well as move ugly scriptlets out of .jsp pages, and isolate them in tag files with their associated page elements.
Things started getting hairy when I started exploring what happens when an exception is thrown (bought not handled) in a scriptlet in a .tag file. Basically, my app is a servlet that forwards the user to various .jsp pages based on given request parameters. The forwarding to the relevant .jsp page is done by calls to the following method:
servletContext.getRequestDispatcher("/" + pageName).forward(request, response);
Where 'pageName' is a String with the name of the .jsp I want to go to...
Calls to this method are enclosed in a try block, as it throws both a ServletException, and IOException...
When either my .jsp, or .tag throw an exception in a scriptlet, the exception is wrapped in a JSPException, which is then wrapped in a ServletException.
I can catch this exception in my servlet... but then what? I want to forward to an error page, however, in the catch block, I can't forward in response to this exception, as that results in an IllegalStateException, as the response has already been committed. So what do I do? How do I get from this point, to my "error.jsp" page?
It was suggested to me that I use the <% @ page isErrorPage="true" %> directive in my error.jsp,
and the in my real .jsp, use <%page errorPage="/error.jsp" %>.
This works great when the exception is thrown in my .jsp.... But when the exception is thrown in the .tag file... not so much...
My .jsp page was rendered up until the point where the <my:mytag/> (the tag with the offending raised exception) was encountered. Then, instead of forwarding to the error page when the error in the tag is encountered, the error page is rendered as the CONTENT of of my TAG. The rest of the .jsp is then NEVER rendered. I checked the page source, and there is no markup from the original .jsp that lay below the my tag. So this doesn't work at all. I don't want to render the error page WITHIN the half of the .jsp that did render... Why doesn't it take me away from the .jsp with the offending tag altogether and bring me to the error.jsp?
Then it was suggested to me that I get rid of those page directives, and instead define error handling in the web.xml using the following construct:
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/error</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/error</location>
</error-page>
For this, I created a new servlet called ErrorServlet, and mapped it to /error
Now I could mangle the end of the URL, which causes a 404, and I get redirected to the ErrorServlet. Yay.
However, exceptions being thrown in either a .jsp or .tag still don't direct me to the ErrorServlet. Apparently this error handling mechanism doesn't work for .jsp pages reached via servletContext.getRequestDispatcher("/" + pageName).forward(request, response) ????
So I'm just at a total loss now. I know the short answer is "don't throw exceptions in a .jsp or .tag" but frankly, that seems a pretty weak answer that doesn't really address my problem... I mean, it would really be nice to have some kind of exception handler for runtime exceptions thrown in a scriptlet in .tag file, that allows me to forward to a page with detailed stacktrace output, etc, if anything for debugging purposes during development...
If anyone has a few cents to spare on this, I'd be ever so grateful..
Thanks!!
JeffWhat causes the exception?
What sort of exception are you raising from the tag files?
Have you got an example of a tag file that you can share, and a jsp that invokes it so people can duplicate the issue without thinking too much / spending too much time?
My first instinct would be that the buffer is being flushed, and response committed before your Exception is raised.
What you describe is pretty much standard functionality for Tomcat in such cases. -
Exception thrown while reading an XML file using Properties
Exception thrown while reading an XML file using Properties.
Exception in thread "main" java.util.InvalidPropertiesFormatException: org.xml.sax.SAXParseException:
The processing instruction target matching "[xX][mM][lL]" is not allowed.
at java.util.XMLUtils.load(Unknown Source)
<?xml version="1.0"?>
<Config>
<Database>
<Product>FX.O</Product>
<URL>jdbc:oracle:thin:@0.0.0.0:ABC</URL>
</Database>
</Config>Am I missing anything?Thanks a lot for all yr help.I have got the basics of
the DTD
However,when I say thus
<!DOCTYPE Config SYSTEM "c:/PartyConfig">
?xml version="1.0"?>
<Config>
<Database>
<Product>FX</Product>
<URL>jdbc:oracle:thin:@0.0.0.0:ABC</URL>
</Database>
</Config>I get the error
Invalid system identifier: file:///c:/ParyConfig.dtd
Please advise?for goodness sake, how many times do I have to tell you that you can't just expect the Properties class to accept arbitrary XML in any format? it reads XML in the format I linked to, and nothing else. Properties is not a general purpose XML binding. you can't do what you're trying to do with it. read this and in particular pay attention to the following
The XML document must have the following DOCTYPE declaration:
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
Furthermore, the document must satisfy the properties DTD described above.
you are not reading my answers properly, are you? kindly do so -
Hi All,
I am getting this below error ever 10 min on JBoss server, LCES SP1.
SEVERE: Exception thrown while calling back a DSC componentcom/adobe/edc/policy/APSDocumentServicesManagerHome
2012-04-20 05:54:41,908 INFO [org.quartz.core.JobRunShell] Job APS_PRINCIPALKEY_REKEY_JOB_GRP.APS_PRINCIPALKEY_REKEY_JOB threw a JobExecutionException:
org.quartz.JobExecutionException: java.lang.Exception: java.lang.IllegalStateException [See nested exception: java.lang.Exception: java.lang.IllegalStateException]
at com.adobe.idp.scheduler.callback.ServiceCallbackHandler.execute(ServiceCallbackHandler.ja va:102)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Any idea about this error ??
I refered this post but no luck --
http://forums.adobe.com/message/4353924#4353924
Any pointers to solve this issue ?????
Regards --
Chalukya.Hi Neerav,
Thanks a lot for your reply ...
Please find the server log file at -
https://www.dropbox.com/s/ugc5zdavbobxj28/server.log
Here is the complete error part in server log file -
2012-08-03 03:03:21,764 INFO [com.adobe.idp.scheduler.jobstore.DSCJobStoreTX] Removed 0 stale fired job entries.
2012-08-03 03:03:21,764 INFO [org.quartz.core.QuartzScheduler] Scheduler IDPSchedulerService_$_20 started.
2012-08-03 03:03:21,795 INFO [com.adobe.idp.dsc.impl.DSCManagerImpl] Started services which need post-dsc-initialization (Scheduler, docmanager purge) successfully
2012-08-03 03:03:21,795 INFO [com.adobe.idp.dsc.impl.DSCManagerImpl] Core Components started successfully
2012-08-03 03:03:21,905 INFO [com.adobe.idp.dsc.startup.DSCStartupServlet] Install and start of components complete. Now starting core asynchronous services ...
2012-08-03 03:03:22,076 ERROR [STDERR] Aug 3, 2012 3:03:22 AM com.adobe.idp.scheduler.callback.ServiceCallbackHandler execute
SEVERE: Exception thrown while calling back a DSC componentcom/adobe/edc/policy/APSDocumentServicesManagerHome
2012-08-03 03:03:22,092 INFO [org.quartz.core.JobRunShell] Job APS_PRINCIPALKEY_REKEY_JOB_GRP.APS_PRINCIPALKEY_REKEY_JOB threw a JobExecutionException:
org.quartz.JobExecutionException: java.lang.Exception: java.lang.IllegalStateException [See nested exception: java.lang.Exception: java.lang.IllegalStateException]
at com.adobe.idp.scheduler.callback.ServiceCallbackHandler.execute(ServiceCallbackHandler.ja va:102)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: java.lang.Exception: java.lang.IllegalStateException
at com.adobe.idp.scheduler.callback.ServiceCallbackHandler.execute(ServiceCallbackHandler.ja va:101)
... 2 more
Caused by: java.lang.IllegalStateException
at com.adobe.idp.dsc.clientsdk.ServiceClientFactory$1.handleThrowable(ServiceClientFactory.j ava:69)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:220)
at com.adobe.idp.scheduler.callback.ServiceCallbackHandler.execute(ServiceCallbackHandler.ja va:87)
... 2 more
Caused by: java.lang.NoClassDefFoundError: com/adobe/edc/policy/APSDocumentServicesManagerHome
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethods(Class.java:1791)
at org.apache.commons.beanutils.MappedPropertyDescriptor$1.run(MappedPropertyDescriptor.java :342)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.commons.beanutils.MappedPropertyDescriptor.getPublicDeclaredMethods(MappedProp ertyDescriptor.java:337)
at org.apache.commons.beanutils.MappedPropertyDescriptor.internalFindMethod(MappedPropertyDe scriptor.java:426)
at org.apache.commons.beanutils.MappedPropertyDescriptor.findMethod(MappedPropertyDescriptor .java:500)
at org.apache.commons.beanutils.MappedPropertyDescriptor.<init>(MappedPropertyDescriptor.jav a:103)
at org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.ja va:822)
at org.apache.commons.beanutils.PropertyUtilsBean.isWriteable(PropertyUtilsBean.java:1235)
at org.apache.commons.beanutils.PropertyUtils.isWriteable(PropertyUtils.java:456)
at com.adobe.idp.dsc.component.impl.DefaultPOJOServiceInstanceFactory.createInstance(Default POJOServiceInstanceFactory.java:132)
at com.adobe.idp.dsc.invocation.impl.InstancePerRequestStrategy.getInstance(InstancePerReque stStrategy.java:56)
at com.adobe.idp.dsc.invocation.impl.InstanceAccessorFactory.getInstanceForInvocation(Instan ceAccessorFactory.java:55)
at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.allocateInstance(Invocat ionStrategyInterceptor.java:91)
at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:54)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:188)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:129)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:93)
at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:22 5)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:66)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
... 3 more
Caused by: java.lang.ClassNotFoundException: IDPSchedulerService_Worker-1Class name com.adobe.edc.policy.APSDocumentServicesManagerHome from package com.adobe.edc.policy not found.
at com.adobe.idp.dsc.DSContainerSearchPolicy.searchClassUsingParentFirst(DSContainerSearchPo licy.java:245)
at com.adobe.idp.dsc.DSContainerSearchPolicy.findClass(DSContainerSearchPolicy.java:198)
at org.ungoverned.moduleloader.ModuleClassLoader.loadClass(ModuleClassLoader.java:161)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 33 more
Thanks --
Chalukya -
FLAGFOX VERSION: 4.2.x (2013-6)
ERROR MESSAGE: Fatal Flagfox startup error!
EXCEPTION THROWN: IPv4 DB file is corrupt (got 493668 bytes but expected 489672 bytes)
BROWSER: Mozilla Firefox 22.0 (Gecko 22.0 / 20130618035212)
OS: Windows NT 6.1 (WINNT x86-msvc windows)
LOCALE: en-us content / en-us UI / el-gr OSdoes disabling all addons but flagfox work, you seem to have a lot of cookie programs that may conflict.
-
Differentiating between same exception thrown from 2 different methods
Suppose I have a class CodeDAO which has 2 methods who both throw SQLException
public int getLocationCode(String locationName) throws SQLException;
public int getDepartmentCode(String departmentName) throws SQLException;Now I have a business method in which I have to use both of the above DAO methods.
public int process() {
try {
CodeDAO codeDAO = new CodeDAO();
int locationCode = codeDAO.getLocationCode("NJ");
int departmentCode = codeDAO.getDepartmentCode("Sales");
catch (SQLException e) {
}If SQLException is thrown how will I know if it is thrown by the getLocationCode method or getDepartmentCode method?
What are the different choices I have in differentiating between same exception thrown from different methods? And which choice do you guys prefer?
Thankssrhcan wrote:
maheshguruswamy wrote:
srhcan wrote:
gimbal2 wrote:
baftos wrote:
Put each method invokation in its own try/catch block.Or in fact not use SQLException, but exceptions that are unique.So each DAO method has its own exception?
public int getLocationCode(String locationName) throws GetLocationCodeException;
public int getDepartmentCode(String departmentName) throws GetDepartmentCodeException;would not that means I have to create a lot of exception classes?
Edited by: srhcan on Aug 9, 2012 2:54 PMLet me ask you this, what do you plan to do in the catch block? Do some sort of recovery? rollback? If it is just for logging purposes, I am pretty sure the exception message will give you enough information to find out where the error was.* I would like to give user a specific message based on which method fails. So if getLocationCode("NJ") fails the message can be: Unable to find code for Location "NJ". And if getDepartmentCode("Sales") fails the message can be: Unable to find code for Department "Sales".
* I would like to print the exception's stacktrace in the log file.
* I may do a rollback depending on if its an INSERT/UPDATE/DELETE statement.Well, in that case why not log it in the DAO methods themselves...inside getLocationCode and getDepartmentCode. Instead of trying to do the recovery/logging in the process method, do it in the individual dao methods. The calling classes should not be responsible for logging/recovery etc. It should be done in the DAO classes themselves and the DAO method should return an appropriate message/code to the consumer tier classes indicating the status of the transaction. Just my 0.02$. -
Error upon starting Weblogic server : Exception thrown while loading uddi
Hi,
I am getting $Proxy41.getDefaultWebApp(Unknown Source) error while starting the weblogic. Any one has clue? Below is the stack from myserv.log file.
Environment:
OS : Windows 2000 server
WLS: Weblogic 7.0SP2
Oracle client : Oracle 9i RC2
IIS : IIS 5.0
<Exception thrown while loading uddi: java.lang.ClassCastException: weblogic.management.configuration.ApplicationManagerMBean_CachingStub>
java.lang.ClassCastException: weblogic.management.configuration.ApplicationManagerMBean_CachingStub
at $Proxy41.getDefaultWebApp(Unknown Source)
at weblogic.management.configuration.WebServerMBean_CachingStub.getDefaultWebApp(WebServerMBean_CachingStub.java:226)
at weblogic.servlet.internal.WebAppServletContext.initFromMBean(WebAppServletContext.java:1312)
at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:1054)
at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:1009)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:502)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:371)
at weblogic.j2ee.J2EEApplicationContainer.prepareWebModule(J2EEApplicationContainer.java:1598)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:735)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:555)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:458)
at weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplications(SlaveDeployer.java:490)
at weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeployer.java:253)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initialize(DeploymentManagerServerLifeCycleImpl.java:150)
at weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.java:54)
at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
at weblogic.Server.main(Server.java:32)
####<Dec 14, 2005 11:19:54 AM PST> <Error> <Deployer> <rsecav-webenam> <myserver> <main> <kernel identity> <> <149205> <The Slave Deployer failed to initialize the application uddi due to error weblogic.management.ApplicationException: Prepare failed. Task Id = null
Module Name: uddi, Error: Could not load uddi: java.lang.ClassCastException: weblogic.management.configuration.ApplicationManagerMBean_CachingStub
}.>
weblogic.management.ApplicationException: Prepare failed. Task Id = null
Module Name: uddi, Error: Could not load uddi: java.lang.ClassCastException: weblogic.management.configuration.ApplicationManagerMBean_CachingStub
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:744)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:555)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:458)
at weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplications(SlaveDeployer.java:490)
at weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeployer.java:253)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initialize(DeploymentManagerServerLifeCycleImpl.java:150)
at weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.java:54)
at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
at weblogic.Server.main(Server.java:32)
Thanks in advance,
ManuHi Manu,
can I know how you over come this problem? I am using Weblogic 7 with Service Pack 4. I will be thankful to u if you can mail ur response to me on my mail [email protected]
Thanks and Regards,
Suresh Vemulapalli -
Exception thrown by servlet Faces Servlet in WAS ND 6.1.0.13
Hi,<br>
I'm using WebSphere Application Server Network Deployment (WAS ND) v. 6.1.0.13.<br><br>
I'm getting this error when I try to launch my application:<br><br>
[1/24/08 11:41:44:100 WET] 0000003c ServletWrappe E SRVE0100E: Did not realize init() exception thrown by servlet Faces Servlet: java.lang.NullPointerException<br>
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)<br>
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:190)<br>
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:317)<br>
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:346)<br>
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)<br>
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3276)<br>
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)<br>
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)<br>
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)<br>
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113)<br>
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)<br>
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)<br>
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)<br>
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1818)<br>
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:556)<br>
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:606)<br>
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:979)<br>
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1064)<br>
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)<br>
<br><br><br>
After doing a search I tried this following steps:<br>
� Delete the entry in web.xml:<br>
<listener><br>
<listener-class><br>
com.sun.faces.config.ConfigureListener<br>
</listener-class><br>
</listener><br><br>
� Update my log4j version<br><br>
� Delete the commons-logging.jar from WEB-INF directory<br>
These are the jar files included in WEB-INF directory:<br>
commons-beanutils.jar<br>
commons-collections.jar<br>
commons-digester.jar<br>
commons-javaflow-20060411.jar<br>
commons-logging.jar<br>
FglConnectorClient.jar<br>
itext-1.4.2.jar<br>
jasperreports-1.2.3.jar<br>
jcommon-1.0.0.jar<br>
jfreechart-1.0.1.jar<br>
jsf-api.jar<br>
jsf-ibm.jar<br>
jsf-impl.jar<br>
jstl.jar<br>
log4j-1.2.14.jar<br>
standard.jar<br>
struts.jar<br>
<br><br>
<br>
None of the suggestions worked.<br><br>
Then I tried to deploy my application in another WAS ND 6.1.0.13 and it worked!!! <br>
What can I do so solve this problem in my WAS ND 6.1.0.13? What could be the problem?<br><br>
Thanks,<br>
NunoDid you find a solution to this problem
please help
Thanks & Regards
Nasir -
i try run VS 2012 with /SafeMode. I create new empty Winform. When I start debug, I got:
"error while trying to run project uncaught exception thrown by method called through reflection"Hi Matanya Zac,
Did you restart your machine? How about installing the VS2012 update 4?
>>error while trying to run project uncaught exception thrown by method
Did you install the VS update in your VS IDE? I met this issue before which was related to the VS update:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/5ead8ee9-ea09-4060-88b0-ee2e2044ff82/error-while-trying-to-run-a-project-uncaught-exception-thrown-by-method-called-through-reflection?forum=vsdebug
If still no help, I suggest you repair your VS, and then restart your machine, test the result.
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hello,
I have the following exception when running WLS 6.1 SP 3 on AIX 4.3.3, any idea?
<Exception thrown while loading wl_management_internal1:
java.lang.NullPointerException
java.lang.NullPointerException
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:158)
at $Proxy64.getJ2EEApplicationDescriptor(Unknown Source)
at weblogic.j2ee.Application.getAppDescriptor(Application.java(Compiled
Code))
at weblogic.j2ee.Component.getModuleMBean(Component.java(Compiled
Code))
at weblogic.j2ee.Component.getAltDDFile(Component.java(Compiled Code))
at
weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java(Compiled
Code))
at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java(Compiled Code))
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java(Compiled
Code))
at weblogic.j2ee.Application.addComponent(Application.java:170)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:360)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:150)
at
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java(Compiled
Code))
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java(Compiled
Code))
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:360)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java(Compiled Code))
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy24.addWebDeployment(Unknown Source)
at
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_CachingStub.java:1202)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:346)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:150)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java(Compiled
Code))
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java(Compiled
Code))
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:360)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at
weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:274)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)Were you installing SP3 or starting WLS after the install?
What do you see when you run:
$ which java
$ java -version
Does the OS have patch 9 -- I believe it's PTF 9 in AIX lingo.
AIX 4.3.3.9
Wayne Scott
Thierry wrote:
Hello,
I have the following exception when running WLS 6.1 SP 3 on AIX 4.3.3, any idea?
<Exception thrown while loading wl_management_internal1:
java.lang.NullPointerException
java.lang.NullPointerException
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:158)
at $Proxy64.getJ2EEApplicationDescriptor(Unknown Source)
at weblogic.j2ee.Application.getAppDescriptor(Application.java(Compiled
Code))
at weblogic.j2ee.Component.getModuleMBean(Component.java(Compiled
Code))
at weblogic.j2ee.Component.getAltDDFile(Component.java(Compiled Code))
at
weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java(Compiled
Code))
at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java(Compiled Code))
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java(Compiled
Code))
at weblogic.j2ee.Application.addComponent(Application.java:170)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:360)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:150)
at
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java(Compiled
Code))
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java(Compiled
Code))
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:360)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java(Compiled Code))
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy24.addWebDeployment(Unknown Source)
at
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_CachingStub.java:1202)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:346)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:150)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java(Compiled
Code))
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java(Compiled
Code))
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:360)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at
weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:274)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) -
Jco exception thrown while executing function "BICS_PROV_OPEN" against syst
Hi,
Am implementing SAP EP, BI Integration. The BI Querys are running fine, but when i try to run a BEx Application Query am thrown with this exception in portal.
Exception caught: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Jco exception thrown while executing function "BICS_PROV_OPEN" against system "SAP_BW" com.sap.ip.bi.base.exception.BIBaseRuntimeException: Jco exception thrown while executing function "BICS_PROV_OPEN" against system "SAP_BW" at
I've done all the configuration for the integration and the BI Diagnostic tool is showing all the configurations to GREEN.
Please help me on this...
Regards,
mcsekarException caught: com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: The current application triggered a termination with a short dump. com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: The current application triggered a termination with a short dump. at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:516) at com.sap.mw.jco.MiddlewareJRfc$Client.execute(MiddlewareJRfc.java:1514) at com.sap.mw.jco.JCO$Client.execute(JCO.java:3980) at com.sap.mw.jco.JCO$Client.execute(JCO.java:3417) at com.sap.ip.bi.base.application.service.rfcproxy.impl.jco640.Jco640Proxy.executeFunction(Jco640Proxy.java:362) at com.sap.ip.bi.base.application.service.rfcproxy.impl.jco640.Jco640Function.executeRfc(Jco640Function.java:75) at com.sap.ip.bi.base.application.service.rfcproxy.base.RfcFunction.execute(RfcFunction.java:46) at com.sap.ip.bi.bics.dataaccess.resource.impl.bi.selector.variableprocessor.RfcServiceWithVariables.executeCreationFunctionForVariableHandling(RfcServiceWithVariables.java:64) at com.sap.ip.bi.bics.dataaccess.resource.impl.bi.selector.ProviderSelectionObject.isApplicable(ProviderSelectionObject.java:339) at com.sap.ip.bi.base.application.impl.Application.checkAndCreateService(Application.java:709) at com.sap.ip.bi.base.application.impl.Application.createService(Application.java:634) at
Exception caught: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Jco exception thrown while executing function "BICS_PROV_OPEN" against system "SAP_BW" com.sap.ip.bi.base.exception.BIBaseRuntimeException: Jco exception thrown while executing function "BICS_PROV_OPEN" against system "SAP_BW" at com.sap.ip.bi.base.application.service.rfcproxy.base.RfcFunction.execute(RfcFunction.java:48) at com -
Hi,
on starting LC 8.2 Server I get this error,
2009-04-02 09:40:00,031 ERROR [STDERR] 02.04.2009 09:40:00 com.adobe.idp.scheduler.callback.ServiceCallbackHandler execute
SCHWERWIEGEND: Exception thrown while calling back a DSC componentcom/adobe/edc/policy/APSDocumentServicesManagerHome
any ideas what went wrong?
regards
JohannesAs am I,
I manually installed LC ES2 into a new JBoss/mySQL instance following the manual install instructions here:
http://help.adobe.com/en_US/livecycle/9.0/prepareinstallsingle.pdf
http://help.adobe.com/en_US/livecycle/9.0/install_jboss.pdf
Then, applied the SP1, now I get this exception every ten minutes on the dot.
2010-09-24 00:00:00,038 ERROR [STDERR] 24/09/2010 00:00:00 com.adobe.idp.scheduler.callback.ServiceCallbackHandler execute
SEVERE: Exception thrown while calling back a DSC componentcom.adobe.edc.common.EDCException
2010-09-24 00:00:00,076 INFO [org.quartz.core.JobRunShell] Job APS_PRINCIPALKEY_REKEY_JOB_GRP.APS_PRINCIPALKEY_REKEY_JOB threw a JobExecutionException:
org.quartz.JobExecutionException: java.lang.Exception: ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error. [See nested exception: java.lang.Exception: ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error.]
at com.adobe.idp.scheduler.callback.ServiceCallbackHandler.execute(ServiceCallbackHandler.ja va:102)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: java.lang.Exception: ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error.
at com.adobe.idp.scheduler.callback.ServiceCallbackHandler.execute(ServiceCallbackHandler.ja va:101)
... 2 more
Any suggestions on how to check the callback schedule for the misbehaving callback ?
Jason. -
Exception thrown when trying to create MimeMessage
Hello,
I was working on the tutorial for sending SMTP messages using the JavaMail API. I set up the Session using Properties fine, but I begin throwing exceptions when trying to construct a new MimeMessage.
Properties props = System.getProperties();
props.put("mail.smtp.host", MAILHOST);
props.put("mail.transport.protocol", "SMTP" );
Session session = Session.getInstance(props, null);
// Exceptions thrown below
MimeMessage rfc822Msg = new MimeMessage(session);
The exception error message I receive is:
Exception occurred during event dispatching:
java.lang.NoClassDefFoundError: javax/activation/DataSource
at MailApplet.actionPerformed(MailApplet.java:30)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:10
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
ton.java:1101)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
:378)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
er.java:204)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:2
at java.awt.Component.processMouseEvent(Component.java:3165)
at java.awt.Component.processEvent(Component.java, Compiled Code)
at java.awt.Container.processEvent(Container.java, Compiled Code)
at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
at java.awt.Container.dispatchEventImpl(Container.java, Compiled Code)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2068
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1852)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java, Compiled
at java.awt.Container.dispatchEventImpl(Container.java, Compiled Code)
at java.awt.Window.dispatchEventImpl(Window.java, Compiled Code)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
at java.awt.EventDispatchThread.pumpOneEventForComponent(EventDispatchTh
java, Compiled Code)
at java.awt.EventDispatchThread.pumpEventsForComponent(EventDispatchThre
va:95)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:90)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
If you have any idea what is going on your help will be greatly appreciated.
I am using the jdk1.2.2 build and the JavaMail1.2 distribution.
Thanks,
William MappThanks for the help. Sorry I goofed. Now I have a question regarding what addresses you can send mail to. It seems that if I attempt send mail to a server other than the SMPT host I get a javax.mail.SendFailedException: Sending failed. The exception continues by stating that the address was Invalid, Relaying Denied.
What does this actually mean? Should i be supplying more information?
Thanks,
Will -
Lot of exceptions in kura-console.log. Tutorial not working for me
Hi David,
Well, now I have a wired connection to my pi and got kura up and running. But, my tutorial implementation did not work.
Later, I found there is a new 1.2.0 verion of kura, so I uninstalled 1.0.0 as per wiki steps and installed 1.2.0. I had the kura showing up again and deployed green house. But again, my LED and temperature sensors were not showing.
I was worried if my pi has gone bad, but I found that its giving right voltages at power pins. I checked it is reaching my sensors too.
Later, I looked into in the kura-console.log which looked huge. Here I am attaching it for reference. On face of lot of exceptions have occurred during its start up. I have no clues about it as I am getting started and did not want to deviate anywhere in the tutorial specification(all items used are brand new). Well only change is I have upgraded Kura to 1.2.0.
telnet 127.0.0.1 5002 shows
osgi> ss
"Framework is launched."
id State Bundle
0 ACTIVE org.eclipse.osgi_3.8.1.v20120830-144521
1 ACTIVE org.eclipse.equinox.cm_1.0.400.v20120522-1841
2 ACTIVE org.eclipse.equinox.common_3.6.100.v20120522-1841
3 ACTIVE org.eclipse.equinox.registry_3.5.200.v20120522-1841
4 ACTIVE org.eclipse.equinox.http.registry_1.1.200.v20120522-2049
5 ACTIVE org.eclipse.equinox.console_1.0.0.v20120522-1841
6 ACTIVE org.eclipse.equinox.ds_1.4.0.v20120522-1841
7 ACTIVE org.eclipse.equinox.event_1.2.200.v20120522-2049
8 ACTIVE org.eclipse.equinox.io_1.0.400.v20120522-2049
9 ACTIVE org.eclipse.equinox.metatype_1.2.0.v20120522-1841
10 ACTIVE org.eclipse.equinox.util_1.0.400.v20120522-2049
11 ACTIVE org.eclipse.osgi.services_3.3.100.v20120522-1822
12 ACTIVE org.eclipse.osgi.util_3.2.300.v20120522-1822
13 ACTIVE org.apache.felix.gogo.command_0.8.0.v201108120515
14 ACTIVE org.apache.felix.gogo.runtime_0.8.0.v201108120515
15 ACTIVE org.apache.felix.gogo.shell_0.8.0.v201110170705
16 ACTIVE org.knowhowlab.osgi.monitoradmin_1.0.2
17 ACTIVE org.apache.felix.dependencymanager_3.0.0
18 ACTIVE org.apache.felix.deploymentadmin_0.9.5
19 ACTIVE osgi.cmpn_4.3.0.201111022214
20 ACTIVE org.eclipse.equinox.http.jetty_3.0.0.v20120522-1841
21 ACTIVE org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841
22 ACTIVE org.eclipse.jetty.continuation_8.1.3.v20120522
23 ACTIVE org.eclipse.jetty.http_8.1.3.v20120522
24 ACTIVE org.eclipse.jetty.io_8.1.3.v20120522
25 ACTIVE org.eclipse.jetty.security_8.1.3.v20120522
26 ACTIVE org.eclipse.jetty.server_8.1.3.v20120522
27 ACTIVE org.eclipse.jetty.servlet_8.1.3.v20120522
28 ACTIVE org.eclipse.jetty.util_8.1.3.v20120522
29 ACTIVE javax.servlet_3.0.0.v201112011016
30 ACTIVE org.apache.commons.fileupload_1.2.2.v20111214-1400
31 ACTIVE org.apache.commons.io_2.4.0
32 ACTIVE slf4j.api_1.6.4
Fragments=33
33 RESOLVED slf4j.log4j12_1.6.0
Master=32
34 RESOLVED log4j_1.2.17
Fragments=35
35 RESOLVED log4j.apache-log4j-extras_1.1.0
Master=34
36 ACTIVE org.json_1.0.0.v201011060100
37 ACTIVE org.eclipse.paho.client.mqttv3_1.0.1
38 ACTIVE org.hsqldb.hsqldb_2.3.0
39 ACTIVE com.google.protobuf_2.6.0
40 ACTIVE com.codeminders.hidapi_1.1.1
41 ACTIVE org.eclipse.soda.dk.comm_1.2.1
42 ACTIVE javax.usb.api_1.0.2
43 ACTIVE javax.usb.common_1.0.2
44 ACTIVE javax.usb.linux_1.0.3
45 ACTIVE jdk.dio_1.0.1
46 ACTIVE org.apache.commons.net_3.1.0.v201205071737
47 ACTIVE org.tigris.mtoolkit.iagent.rpc_3.0.0.20110411-0918
48 ACTIVE com.gwt.user_0.2.0
49 ACTIVE org.eclipse.kura.deployment.agent_1.0.2
50 ACTIVE org.eclipse.kura.api_1.0.4
51 ACTIVE org.eclipse.kura.core_1.0.4
52 ACTIVE org.eclipse.kura.core.certificates_1.0.0
53 ACTIVE org.eclipse.kura.core.cloud_1.0.4
54 ACTIVE org.eclipse.kura.core.comm_1.0.1
55 ACTIVE org.eclipse.kura.core.configuration_1.0.3
56 ACTIVE org.eclipse.kura.core.crypto_1.0.2
57 ACTIVE org.eclipse.kura.core.deployment_1.0.2
58 ACTIVE org.eclipse.kura.core.log_1.0.0
59 ACTIVE org.eclipse.kura.core.net_1.0.4
60 ACTIVE org.eclipse.kura.linux.clock_1.0.3
61 ACTIVE org.eclipse.kura.linux.command_1.0.3
62 ACTIVE org.eclipse.kura.linux.net_1.0.4
63 ACTIVE org.eclipse.kura.linux.position_1.0.3
64 ACTIVE org.eclipse.kura.linux.usb_1.0.4
65 ACTIVE org.eclipse.kura.linux.bluetooth_1.0.1
66 ACTIVE org.eclipse.kura.linux.watchdog_1.0.2
67 ACTIVE org.eclipse.kura.net.admin_1.0.4
68 ACTIVE org.eclipse.kura.web_1.0.4
69 ACTIVE org.eclipse.iot.greenhouse.coap_0.1.0.SNAPSHOT
70 ACTIVE org.eclipse.iot.greenhouse.publisher_0.1.0.SNAPSHOT
71 ACTIVE org.eclipse.iot.greenhouse.sensors_0.1.0.SNAPSHOT
72 ACTIVE org.eclipse.iot.greenhouse.sensors.raspberrypi_0.1.0.SNAPSHOT
osgi>
Please help!
regards,
KrishnaHi David,
It worked!!
I had to follow steps as mentioned in https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c
I did it once and rebooted and all started to work!
Found it shared by Diego Alejandro PalmeiraFriend in this forum.
thanks,
Krishna
Maybe you are looking for
-
New user: I have a Zen Micro firmware .02.05 I am finding the MediaSource very clumsy. It takes too long to update the MP3 tags and changes must be made one field at a time. Is there an easier way to edit the tags once they have been imported? Is the
-
Print to pdf no longer works. Ver8, vista
been running ver8 on laptop vista for 3 years w/o any issues, printing to pdf from web, from word, from everything. suddenly lost that capability. file/print/pdf - then nothing.... no dialogue box - just goes back to where I was. 'repaired' Acrobat f
-
Post changes of Purchase Order with BADI ME_PROCESS_PO_CUST
Hello All, I have to make changes to a Purchase Order when it is posted. In some cases I have to set the field WEBRE. What i tried is the BADi - Method ME_PROCESS_PO_CUST~post. Following Code I entered: DATA: position TYPE PURCHASE_ORDER_ITEM,
-
Invalid TLV Record - Crystal Report XI R2
Hi I am getting "Invalid TLV Record" when opening crystal report on production server. After recycling the application pool the problem getting solved. Event viewer Shows this error: Error: File /CrystalReports/Viewer/ASP/RDCrptserver11.asp Unexpect
-
Regarding Profit Center (Dummy Profit Center
Hi Gurus! May I know is that compulsory to create Dummy Profit Center. Why we create Dummy Profit Center. Is that compulsory to create Dummy Profit Center. Regards Aadhi