erl_publish failing with partial packet - erlang
I am having a strange problem trying to bring up a C-Node Server. I am following the example from http://www.erlang.org/doc/tutorial/cnode.html.
I found that I would fail at
if (erl_publish(port) == -1)
erl_err_quit("erl_publish");
Running epmd in debug mode showed the following message after the failure:
got partial packet only on file descriptor 4 (0)
gdb showed that the application was getting an error in epmd_publish.c when checking for a valid response.
if (((res=get8(s)) != EI_EPMD_ALIVE2_RESP))
Have you seen this before? Do I have something configured in the system wrong? I am so confused.
Related
FileNet - Data to be copied exceeds space available error
some other team is calling our FileNet custom app for searching documents. I believe some of the users are facing intermittent failure because we are getting tickets(although none of the user has reported this issue) for the error below and I tried validating our service with different scenarios and they all worked but I don't know what's causing this error. any suggestions/help would be greatly appreciated. <stackTrace> at com.filenet.apiimpl.transport.ejb.EJBSession.throwException(EJBSession.java:1122) at com.filenet.apiimpl.transport.ejb.EJBSession.throwException(EJBSession.java:1045) at com.filenet.apiimpl.transport.ejb.EJBSession$EJBImpl._getObjects(EJBSession.java:650) at com.filenet.apiimpl.transport.ejb.EJBSession$EJBImpl.getObjects(EJBSession.java:575) at com.filenet.apiimpl.transport.ejb.EJBSession.getObjects(EJBSession.java:471) at com.filenet.apiimpl.util.SessionHandle.getObjects(SessionHandle.java:346) at com.filenet.apiimpl.core.Session.callGetObjects(Session.java:132) at com.filenet.apiimpl.core.Session.executeGetObject(Session.java:340) at com.filenet.apiimpl.core.Session.getObject(Session.java:354) at com.filenet.apiimpl.core.DispatchEntries.FetchObject_28(DispatchEntries.java:907) at com.filenet.apiimpl.core.ObjectStoreImpl.fetchObject(ObjectStoreImpl.java:1643) at com.filenet.api.core.Factory$ClassDescription.fetchInstance(Factory.java:21761) at ecm.service.p8ceservices.implementation.integration.SearchP8ObjectAdapter.retrievePropertyDefinitions(SearchP8ObjectAdapter.java:352) at ecm.service.p8ceservices.implementation.integration.SearchP8ObjectAdapter.integrate(SearchP8ObjectAdapter.java:158) at ecm.service.p8ceservices.implementation.integration.ContentEngineAdapter.execute(ContentEngineAdapter.java:37) </stackTrace> </exception><exception name="java.lang.IndexOutOfBoundsException" message="Data to be copied (length 2124) exceeds space available (480)" sequence="0" guid="sfr2mx3l:jewe2wkf:00000000:00000121"><source class="com.ibm.rmi.util.buffer.SimpleByteBuffer" archive="" vendor="" version="" /><stackTrace> at com.ibm.rmi.util.buffer.SimpleByteBuffer.write(SimpleByteBuffer.java:166) at com.ibm.rmi.iiop.ClientRequestImpl.reInvoke(ClientRequestImpl.java:489) at com.ibm.rmi.corba.ClientDelegate.invoke(ClientDelegate.java:637) at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1377) at com.ibm.rmi.corba.ClientDelegate.invoke(ClientDelegate.java:695) at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1407) at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:484) at com.filenet.apiimpl.transport.ejbstubs._Engine_Stub.getObjects(Unknown Source) at com.filenet.apiimpl.transport.ejb.EJBSession$EJBImpl._getObjects(EJBSession.java:638)</stackTrace>
It could be the following issue: ClientRequestImpl.reInvoke retry requests which failed due to errors. The retry itself fails with IndexOutOfBoundsException because ORB is using fixed length SimpleByteBuffer. See also this IBM Fix
On production server at one page I am getting Fatal error ActionView::Template::Error
I am getting this error " ActionView::Template::Error (bad component(expected host component): ): ", on research on stackoverflow I observed this error is occurring on wrong config of mailer. But I have not configured any mails.
From the details shared , the first line indicates error in fetching the data. A line of action to resolve this could be, first to check the correctness of data fetch using rails console/sandbox environment. Once point 1 above is sorted out and still error, then have a look at the view and check the rendering/flow. This will point you to the error.
Windows Error Reporting insists on NOT creating full dumps on software crashes
I'm trying to debug my application on a production machine. It crashes about once every 2 days and I don't know why. I've been trying for days now to make that production machine produce full crash dumps whenever a program crashes. Sometimes it does, but sometimes, instead of producing full crash dumps, it creates short text files that simply list all modules loaded and says that the program crashed. These short files are saved in %LOCALAPPDATA%\Microsoft\Windows Error Reporting\ReportArchive. For the life of me, I cannot understand why this is happening! I can't ask these users to run adplus or windbg or something like that. I just need to create a crash dump every time the program crashes, period. Can anyone please help? I'm attaching the full registry settings for WER. These exist both on HKEY_LOCAL_MACHINE\Software\Wow6432Node and on the 64 bit node. As you can see, the LocalDumps key points to C:\ProgramData\Microsoft\Windows\WER\LocalDumps to save crash dumps, and yes, everyone has full permission for this folder. Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\Windows Error Reporting] "ErrorPort"="\\WindowsErrorReportingServicePort" "MaxQueueSizePercentage"=dword:00000001 "PurgeThreshholdValueInKB"=dword:0000000a "Disabled"=dword:00000000 "MaxQueueCount"=dword:00000032 "DisableQueue"=dword:00000000 "LoggingDisabled"=dword:00000000 "DontSendAdditionalData"=dword:00000000 "AutoApproveOSDumps"=dword:00000001 "MaxQueueSize"=dword:00000400 "ForceQueue"=dword:00000001 "DontShowUI"=dword:00000001 "ConfigureArchive"=dword:00000002 "MaxArchiveCount"=dword:000001f4 "DisableArchive"=dword:00000000 "LastQueuePesterTime"=hex(b):57,18,42,be,ba,81,d0,01 "LastLiveReportFlushTime"=hex(b):87,cf,56,3d,bc,81,d0,01 "LastQueueNoPesterTime"=hex(b):4d,39,bb,3a,51,97,d0,01 "LastRateLimitedDumpGenerationTime"=hex(b):87,84,74,9b,90,85,d0,01 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\Windows Error Reporting\BrokerUp] "WWAJSE"=dword:00000001 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\Windows Error Reporting\Consent] "SQLException64"=dword:00000004 "SQLException"=dword:00000004 "DefaultConsent"=dword:00000004 "DefaultOverrideBehavior"=dword:00000001 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\Windows Error Reporting\Debug] "ExceptionRecord"=hex:de,fa,ed,0e,01,00,00,00,00,00,00,00,98,45,4d,75,07,00,00,\ 00,81,f8,46,00,dc,37,49,00,88,37,49,00,00,00,00,00,c0,fe,18,00,fc,fe,18,00,\ 1c,f9,18,00,02,00,00,00,04,f9,18,00,00,00,00,00,0c,f9,18,00,96,27,40,00,da,\ 3b,40,00,f0,0c,45,00,e2,31,40,00 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\Windows Error Reporting\HeapControlledList] [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\Windows Error Reporting\HeapControlledList\dwm.exe] "EnableHeapThrottle"=dword:00000001 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps] "DumpFolder"="C:\\ProgramData\\Microsoft\\Windows\\WER\\LocalDumps" "DumpCount"=dword:0000000a "DumpType"=dword:00000002 "CustomDumpFlags"=dword:00000000 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\Windows Error Reporting\RuntimeExceptionHelperModules] "C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\mscordacwks.dll"=dword:00000000 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\Windows Error Reporting\WMR] "Disable"=dword:00000001
Move the values you've added to [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps] to [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\ProgramName.exe] For example: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Snagit32.exe] "CustomDumpFlags"=dword:00000000 "DumpCount"=dword:00000003 "DumpFolder"=hex(2):25,00,4c,00,4f,00,43,00,41,00,4c,00,41,00,50,00,50,00,44,\ 00,41,00,54,00,41,00,25,00,5c,00,54,00,65,00,63,00,68,00,53,00,6d,00,69,00,\ 74,00,68,00,5c,00,53,00,6e,00,61,00,67,00,69,00,74,00,5c,00,43,00,72,00,61,\ 00,73,00,68,00,44,00,75,00,6d,00,70,00,73,00,00,00 "DumpType"=dword:00000002 You've set "DontShowUI"=dword:00000001 in (as shown) the 32-bit version of HKLM's Windows Error Reporting key, but this will be overridden by the value in HKCU, for example: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\Windows Error Reporting] <other entries not shown> "DontShowUI"=dword:00000000 Be sure that you are not disabling WER for your process by calling SetErrorMode(SEM_NOGPFAULTERRORBOX); The SEM_NOGPFAULTERRORBOX setting will prevent Windows Error Reporting from handling the crash, so omit this flag if you call SetErrorMode. Windows Error Reporting will honor the LocalDumps key if WER is not disabled by the registry or SetErrorMode. Setting DontShowUI to 1 will prevent the crash dialog from appearing but will not prevent LocalDumps from being created if WER is enabled.
My Two cents (even if old.. but maybe useful) Tested under windows7 AND win10 64 bit. it does work. A tip: keys are saved in Hex, but you can also simply use: (saved in *.REG file) Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps] "DumpCount"=dword:0000000a "DumpType"=dword:00000002 "DumpFolder"="c:\\CrashDumps"
Go program compiles but returns wierd error when is run
So i am new to Golang (started learning it today) and i have been writing a URL shortener however after running go install and then running the compiled program from the CLI it returns this error: 2014/04/05 19:05:27 invalid character '<' looking for beginning of value exit status 1 code refrence: https://github.com/hullswitch/urlshortnr
You problem is caused by your request to Google URL Shortner. It returns a 404 Error with HTML body instead of JSON. You could debug it adding log.Println(string(output)) to if handling err after the Unmarshal.
Handle Solr error messages from Blacklight
Whenever Solr fails executing a query for some reason it returns an error message and an error code. I would like to handle such errors in Blacklight. Right now, when receiving an error from Solr, the user gets a 500 internal error. As a developer I can see that what happens is an RSolr::Error::Http in CatalogController#index with the following line of code as the source of the problem: res = blacklight_solr.send_and_receive(path, :params=>solr_params) Is it possible to customize the error handling so that I can at least display an indicative error message to the user instead of the unhelpful 500 internal error?
Open file lib\blacklight\catalog.rb. The function rsolr_request_error(exception) is responsible to handle Solr errors. The exception parameter is an RSolr::RequestError and it represents the error from Solr. In order to handle the error by displaying the message from Solr just add the following inside the else: error_status = eval(exception.response[:body])['error'] if !error_status.nil? and !error_status['msg'].nil? flash_notice = error_status['msg'] else flash_notice = I18n.t('blacklight.search.errors.request_error') end If you wish to display a different message then assign a different message to flash_notice. If you wish to handle the error differently then this is where to do so.