/** * Format a message to the thread-safe ACE logging mechanism. Valid * options (prefixed by '%', as in printf format strings) include: * - 'A': print an ACE_timer_t value (which could be either double * or ACE_UINT32.) * - 'a':
Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.今天在做事務測試的時候,控制台輸出了以上的錯誤資訊,在網上找了一下,原來是我在web.xml檔案中設定了OpenSessionInView .
Ansi字串英文佔一個位元組,漢字2個位元組,以一個/0結尾,常用於txt文字檔。Unicode字串,每個字元(漢字、英文字母)都佔2個位元組,以2個連續的/0結尾,NT作業系統核心用的是這種字串,常被定義為typedef unsigned short wchar_t;所以我們有時常會見到什麼char*無法轉換為unsigned
最近在使用ubuntu,已經很少進入windows平台了。在linux下,要編輯檔案或者其他的文字檔,哪那麼一個ubuntu linux下的強大的文本編輯工具就不得不提了,那就是VI編輯器。下面把VI常用到的命令列貼出來。進入vi的命令 vi filename :開啟或建立檔案,並將游標置於第一行首 vi +n filename :開啟檔案,並將游標置於第n行首 vi + filename :開啟檔案,並將游標置於最後一行首 vi +/pattern
先行編譯標頭檔今天在改一個很大的程式,慢慢看,慢慢改。突然發現一個.c檔案,裡面什麼也沒有,就幾個標頭檔,我一看,我靠,這不是把簡單的問題搞複雜了嗎,隨手刪掉那個c檔案。結果不能編譯了,我靠:fatal error C1083: Cannot open precompiled header file: /'Debug/v13_3.pch/':No such file or directory怎麼rebuild all都不行。上網查了一下,才搞懂了:----------------總結------
// demo.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include <speex/speex.h>#include <stdio.h> #include <ostream>#include <speex/speex_preprocess.h>#include <speex/speex_echo.h>
整了好久,終於在Linux看到了ACE Service Configurator架構呈現出來的美好景象了,這個架構確實讓人瞠目結舌啊。這個例子做到了在不關閉服務的同時,替換服務所使用的介面函數,服務提供者在定時器中不斷地讀取svc.conf設定檔的內容,然後reconfig服務,在定時器中這樣做並不是一個聰明的辦法,但是它生動地展示了Service
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is