I have just started to use Yii framework on a windows 7 machine. It's giving me this annoying error and it goes away when I restart the computer.
Can anyone shed some light on what's happening and how to fix it?.. Thanks a bunch
Here is the error I get:
PHP warning
copy(C:\www\corp\assets\96296f5a\js\ckeditor\plugins\imagepaste2.3.zip): failed to open stream: Permission denied
C:\www\yii-1.1.13\framework\utils\CFileHelper.php(131)
119
120 $folder=opendir($src);
121 while(($file=readdir($folder))!==false)
122 {
123 if($file==='.' || $file==='..')
124 continue;
125 $path=$src.DIRECTORY_SEPARATOR.$file;
126 $isFile=is_file($path);
127 if(self::validatePath($base,$file,$isFile,$fileTypes,$exclude))
128 {
129 if($isFile)
130 {
131 copy($path,$dst.DIRECTORY_SEPARATOR.$file);
132 if(isset($options['newFileMode']))
133 chmod($dst.DIRECTORY_SEPARATOR.$file,$options['newFileMode']);
134 }
135 elseif($level)
136 self::copyDirectoryRecursive($path,$dst.DIRECTORY_SEPARATOR.$file,$base.'/'.$file,$fileTypes,$exclude,$level-1,$options);
137 }
138 }
139 closedir($folder);
140 }
141
142 /**
143 * Returns the files found under the specified directory and subdirectories.
Stack Trace
#0
+
C:\www\yii-1.1.13\framework\utils\CFileHelper.php(131): copy("C:\www\corp\protected\extensions\bootstrap\assets\js\ckeditor\pl...", "C:\www\corp\assets\96296f5a\js\ckeditor\plugins\imagepaste2.3.zi...")
#1
+
C:\www\yii-1.1.13\framework\utils\CFileHelper.php(136): CFileHelper::copyDirectoryRecursive("C:\www\corp\protected\extensions\bootstrap\assets\js\ckeditor\pl...", "C:\www\corp\assets\96296f5a\js\ckeditor\plugins", "/js/ckeditor/plugins", array(), ...)
#2
+
C:\www\yii-1.1.13\framework\utils\CFileHelper.php(136): CFileHelper::copyDirectoryRecursive("C:\www\corp\protected\extensions\bootstrap\assets\js\ckeditor", "C:\www\corp\assets\96296f5a\js\ckeditor", "/js/ckeditor", array(), ...)
#3
+
C:\www\yii-1.1.13\framework\utils\CFileHelper.php(136): CFileHelper::copyDirectoryRecursive("C:\www\corp\protected\extensions\bootstrap\assets\js", "C:\www\corp\assets\96296f5a\js", "/js", array(), ...)
#4
+
C:\www\yii-1.1.13\framework\utils\CFileHelper.php(63): CFileHelper::copyDirectoryRecursive("C:\www\corp\protected\extensions\bootstrap\assets", "C:\www\corp\assets\96296f5a", "", array(), ...)
#5
+
C:\www\yii-1.1.13\framework\web\CAssetManager.php(251): CFileHelper::copyDirectory("C:\www\corp\protected\extensions\bootstrap\assets", "C:\www\corp\assets\96296f5a", array("exclude" => array(".svn", ".gitignore"), "level" => -1, "newDirMode" => 511, "newFileMode" => 438))
#6
–
C:\www\corp\protected\extensions\bootstrap\components\Bootstrap.php(458): CAssetManager->publish("C:\www\corp\protected\extensions\bootstrap\assets", false, -1, true)
453 if (isset($this->_assetsUrl))
454 return $this->_assetsUrl;
455 else
456 {
457 $assetsPath = Yii::getPathOfAlias('bootstrap.assets');
458 $assetsUrl = Yii::app()->assetManager->publish($assetsPath, false, -1, YII_DEBUG);
459 return $this->_assetsUrl = $assetsUrl;
460 }
461 }
462
463 /**
#7
–
C:\www\corp\protected\extensions\bootstrap\components\Bootstrap.php(163): Bootstrap->getAssetsUrl()
158 * #param string $cssFile the css file name to register
159 * #param string $media the media that the CSS file should be applied to. If empty, it means all media types.
160 */
161 public function registerAssetCss($cssFile, $media = '')
162 {
163 Yii::app()->getClientScript()->registerCssFile($this->getAssetsUrl() . "/css/{$cssFile}", $media);
164 }
165
166 /**
167 * Registers the core JavaScript.
168 * #since 0.9.8
#8
–
C:\www\corp\protected\extensions\bootstrap\components\Bootstrap.php(124): Bootstrap->registerAssetCss("bootstrap.css")
119 /**
120 * Registers the Bootstrap CSS.
121 */
122 public function registerCoreCss()
123 {
124 $this->registerAssetCss('bootstrap' . (!YII_DEBUG ? '.min' : '') . '.css');
125 }
126
127 /**
128 * Registers the Bootstrap responsive CSS.
129 * #since 0.9.8
#9
+
C:\www\corp\protected\extensions\bootstrap\components\Bootstrap.php(102): Bootstrap->registerCoreCss()
#10
+
C:\www\yii-1.1.13\framework\base\CModule.php(387): Bootstrap->init()
#11
+
C:\www\yii-1.1.13\framework\base\CModule.php(523): CModule->getComponent("bootstrap")
#12
+
C:\www\yii-1.1.13\framework\base\CApplication.php(152): CModule->preloadComponents()
#13
+
C:\www\yii-1.1.13\framework\YiiBase.php(125): CApplication->__construct("C:\www\corp/protected/config/main.php")
#14
+
C:\www\yii-1.1.13\framework\YiiBase.php(98): YiiBase::createApplication("CWebApplication", "C:\www\corp/protected/config/main.php")
#15
+
C:\www\corp\index.php(13): YiiBase::createWebApplication("C:\www\corp/protected/config/main.php")
2013-02-25 11:29:18 Apache/2.2.22 (Win32) PHP/5.3.13 Yii Framework/1.1.13
The error basically says that YII is not able to copy the required assets from the extensions on to the assets directory at runtime.
The directory C:\www\corp where your YII project exists should be writable by the web server process.
I would see if there is there a firewall/anti-virus that might be blocking the web server from creating files. Try reading the web server log.
Related
I create, open and write on a realm database using following functions:
To load the database or to create a new one I am using:
let realm = new Realm({
path: 'UserDatabase.realm',
schema: [
{
name: 'user_details',
properties: {
user_id: {type: 'int', default: 0},
user_name: 'string',
user_contact: 'string',
user_address: 'string',
},
},
],
});
Write some data:
let realmWrite = () => {
if (realm === null || realm === undefined) {
console.error('realm is:' + realm);
} else {
realm.write(() => {
var ID = 1;
realm.create('user_details', {
user_id: ID,
user_name: 'username' + ID,
user_contact: 'contact',
user_address: `asd${ID}#asd.asd`,
});
});
}
};
Apparently writing data doesn't work, so I try to open the database using Realm Studio and I get following errors:
CLASSES
Unable to open a realm at path '/Users/shinigami/Library/Developer/CoreSimulator/Devices/DEB97125-E440-4AAA-9326-7E2B8D29F158/data/Containers/Data/Application/F2B137EF-F864-454D-A622-184C95C39EEE/Documents/UserDatabase.realm': Invalid top array (ref: 1080, size: 11)
Exception backtrace:
0 .io.realm.realm-studio.SwVRf2 0x000000010dcfe581 _ZN5realm15InvalidDatabaseC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_ + 49
1 .io.realm.realm-studio.SwVRf2 0x000000010dcec970 _ZN5realm5Group18validate_top_arrayERKNS_5ArrayERKNS_9SlabAllocE + 1632
2 .io.realm.realm-studio.SwVRf2 0x000000010dcf6a20 _ZN5realm11SharedGroup7do_openERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbbNS_18SharedGroupOptionsE + 5136
3 .io.realm.realm-studio.SwVRf2 0x000000010d9f9a8c _ZN5realm11SharedGroup4openERNS_11ReplicationENS_18SharedGroupOptionsE + 236
4 .io.realm.realm-studio.SwVRf2 0x000000010d9f9473 _ZN5realm11SharedGroupC2ERNS_11ReplicationENS_18SharedGroupOptionsE + 1587
5 .io.realm.realm-studio.SwVRf2 0x000000010d964951 _ZN5realm5Realm16open_with_configERKNS0_6ConfigERNSt3__110unique_ptrINS_11ReplicationENS4_14default_deleteIS6_EEEERNS5_INS_11SharedGroupENS7_ISB_EEEERNS5_INS_5GroupENS7_ISF_EEEEPS0_ + 1145
6 .io.realm.realm-studio.SwVRf2 0x000000010d964286 _ZN5realm5RealmC2ENS0_6ConfigENSt3__110shared_ptrINS_5_impl16RealmCoordinatorEEE + 278
7 .io.realm.realm-studio.SwVRf2 0x000000010d984a40 _ZZN5realm5Realm17make_shared_realmENS0_6ConfigENSt3__110shared_ptrINS_5_impl16RealmCoordinatorEEEEN19make_shared_enablerC2ES1_S6_ + 84
8 .io.realm.realm-studio.SwVRf2 0x000000010d96ab44 _ZNSt3__110shared_ptrIZN5realm5Realm17make_shared_realmENS2_6ConfigENS0_INS1_5_impl16RealmCoordinatorEEEE19make_shared_enablerE11make_sharedIJS3_S6_EEES8_DpOT_ + 136
9 .io.realm.realm-studio.SwVRf2 0x000000010d97fa3c _ZN5realm5_impl16RealmCoordinator12do_get_realmENS_5Realm6ConfigERNSt3__110shared_ptrIS2_EERNS4_11unique_lockINS4_5mutexEEEb + 260
10 .io.realm.realm-studio.SwVRf2 0x000000010d97f8aa _ZN5realm5_impl16RealmCoordinator9get_realmENS_5Realm6ConfigE + 352
11 .io.realm.realm-studio.SwVRf2 0x000000010d9665fb _ZN5realm5Realm16get_shared_realmENS0_6ConfigE + 113
12 .io.realm.realm-studio.SwVRf2 0x000000010d8cb2cb _ZN5realm2js10RealmClassINS_4node5TypesEE19create_shared_realmEPN2v87IsolateENS_5Realm6ConfigEbONSt3__13mapINSA_12basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEENSB_ISH_NS0_9ProtectedINS5_5LocalINS5_5ValueEEEEENSA_4lessISH_EENSF_INSA_4pairIKSH_SM_EEEEEESO_NSF_INSP_ISQ_ST_EEEEEEONSB_ISH_NSI_INSJ_INS5_8FunctionEEEEESO_NSF_INSP_ISQ_S10_EEEEEE + 127
13 .io.realm.realm-studio.SwVRf2 0x000000010d8c96c6 _ZN5realm2js10RealmClassINS_4node5TypesEE11constructorEPN2v87IsolateENS5_5LocalINS5_6ObjectEEERNS0_9ArgumentsIS3_EE + 402
14 .io.realm.realm-studio.SwVRf2 0x000000010d8c8a1b _ZN5realm4node10ObjectWrapINS_2js10RealmClassINS0_5TypesEEEE9constructERKN3Nan20FunctionCallbackInfoIN2v85ValueEEE + 333
15 .io.realm.realm-studio.SwVRf2 0x000000010d8c9412 _ZN3Nan3impL23FunctionCallbackWrapperERKN2v820FunctionCallbackInfoINS1_5ValueEEE + 166
16 Electron Framework 0x0000000102c1e4a8 _ZN2v88internallsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS0_18BasicBlockProfilerE + 350504
...
What's wrong?
Update
Inspecting manually the realm file I see that the file is written and filled "as expected". Please, note username and asd1#asd.asd that are literal strings from the writing function.
I solved by updating Realm Studio to its beta version.
From:
to:
This because I was trying to open a v4 Realm JS file by using with the latest version of Studio which uses Realm JS v3 internally. So I have had to download and use the beta version of Realm Studio, which uses v4.
I am using the LDAP server functionality of the Node.js module ldapjs version 1.0.2. I want to handle an LDAP 1.3.6.1.4.1.4203.1.11.1 extended operation (see RFC 3062 = LDAP Password Modify).
My server is configured...
const server = ldapjs.createServer( ... );
...
server.exop('1.3.6.1.4.1.4203.1.11.1', (req: any, res: any, next: any) => {
const requestValue = req.requestValue;
});
Calling the command ldappasswd (from debian package ldap-utils) works, handler method is called in proper way.
The data from the ldappasswd ... uid=user -A -S command with "old" as old password and "new" with new password results in the following hex values:
30 14 80 08 75 69 64 3d 73 75 72 66 81 03 6f 6c 64 82 03 6e 65 77
0 u i d = u s e r o l d n e w
0x80 marks the beginning of the attribute, 0x81 the beginning of the old password, 0x82 the beginning of the new password. The value after this byte is the length, followed by the information itself.
The problem:
Inside the handler methode, requestValue is a string with invalid separator characters.
0uid=user�old�new
Converting the string to a buffer ( Buffer.from(req.reuqestValue ) results in:
<Buffer 30 14 ef bf bd 08 75 69 64 3d 75 73 65 72 ef bf bd 03 6f 6c 64 ef bf bd 03 6e 65 77>
The separator bytes 0x80, 0x81 and 0x82 are converted to ef bf bd and therefore parsing information fails, because type is lost.
Any idea how to get out the information values from the requestValue attribute?
The problem can be solved by installing the version next and using req.requestValueBuffer instead of req.requestValue:
npm install --save ldapjs#next
const server = ldapjs.createServer( ... );
...
server.exop('1.3.6.1.4.1.4203.1.11.1', (req: any, res: any, next: any) => {
const requestValue = req.requestValueBuffer;
})
The problem is caused by a bug in the current ldapjs master branch (ad451edc) in file lib/messages/ext_request.js line 61:
this.requestName = ber.readString(0x80);
if (ber.peek() === 0x81)
try {
this.requestValue = ber.readString(0x81);
} catch (e) {
this.requestValue = ber.readBuffer(0x81);
}
In case of ldappasswd data the readString() function is called (no exception thrown), and this function always converts the buffer to a string using UTF-8 decoding. That's wrong. An additional bug in this code snippet is the call of readBuffer(...) which doesn't exist on the object ber.
In the branch next of the ldapjs repository this bug is solved by the bugfix in commit b87e4bb.
Bugfix lib/messages/ext_request.js line 82:
this.requestName = ber.readString(0x80)
if (ber.peek() === 0x81) {
this.requestValueBuffer = ber.readString(0x81, true)
this.requestValue = this.requestValueBuffer.toString('utf8')
}
A handler method can now use req.requestValueBuffer to get the original request data bytes.
I'm writing an vb .net form application for receiving data from commport, parsing on commport_thread and send messages to UI thread through queue.
App structure looks like this:
Private _SerialCommunicationThread As Thread
Public _DataQueue As Queue = Queue.Synchronized(New Queue())
Dim QueueLock As New Object
...
Me._SerialCommunicationThread = New Thread(AddressOf THREAD_SerialCommunication)
Me._SerialCommunicationThread.Priority = ThreadPriority.AboveNormal
Me._SerialCommunicationThread.Start()
Private Sub THREAD_SerialCommunication()
'comm port new instace, settings, start, etc
do
' copy all commport's existing bytes to rec_buffer
' parse data in rec_buffer ( my own protocol, every message has 14bytes, last is CRC sum), copy valid message (14 baytes) to buffer_work
if (CRC is OK) then
SyncLock QueueLock 'lock queue for adding message
Me._DataQueue.Enqueue(buffer_work) ' add message
'Console.WriteLine(received_messages_counter & " ID: " & buffer_work(4) & " val:" & buffer_work(5))
'buffer_work(4) is message ID byte
'buffer_work(5) is value byte
End SyncLock
end if
loop
End sub
...
'UI main thread
Private Sub Timer1_Tick ' interval=10ms
while Form1._DataQueue.Count > 0 Then
SyncLock QueueLock
buf_can = Form1._DataQueue.Dequeue()
'Console.WriteLine(received_messages_counter2 & " ID: " & buffer_work(4) & " val:" & buffer_work(5)
End SyncLock
end while
end sub
I'm sending data to COM port from microcontroler:
for(i=0,i<50;++i)
{
send_message(ID_100,i); // send message with ID=100 and data=i
send_message(ID_201,i);
send_message(ID_202,i);
};
And till parsing procedure and adding to queue console in commport thread writes exactly what is send and copy of message in buffer_work is enqueue:
1 ID: 100 val:0
2 ID: 200 val:0
3 ID: 201 val:0
4 ID: 100 val:1
5 ID: 200 val:1
6 ID: 201 val:1
...
148 ID: 100 val:49
149 ID: 200 val:49
150 ID: 201 val:49
but here comes the problem, the UI thread gives:
...
131 ID: 201 val:43
132 ID: 201 val:43
133 ID: 200 val:44
134 ID: 200 val:44
135 ID: 200 val:45
136 ID: 200 val:45
137 ID: 200 val:45
138 ID: 100 val:46
139 ID: 100 val:46
140 ID: 100 val:47
141 ID: 100 val:47
142 ID: 100 val:47
143 ID: 100 val:48
144 ID: 100 val:48
145 ID: 100 val:48
146 ID: 201 val:48
147 ID: 201 val:48
148 ID: 201 val:49
149 ID: 201 val:49
150 ID: 201 val:49
so I get exactly 150 messages but it looks like queue is enqueue in strange way...adding the same message several times, not exactly what is in buffer_work...and at the end of transmision I should have 3x49 values at 100,201 and 202 ID, but it isn't.
I thought that fifo queue behaves like enqueue A,B,C and I dequeue getting C,B,A. OK, it works but when I enqueue all messages and after that I dequeue.
When I add conditional in main UI thread:
If Form1._DataQueue.Count = 150 Then
so waiting to enqueue all 150 parsed messages in comm thread, then console prints 150 same messages received in UI thread, those all are the last sent message
...
145 ID: 201 val:49
146 ID: 201 val:49
147 ID: 201 val:49
148 ID: 201 val:49
149 ID: 201 val:49
150 ID: 201 val:49
So queue looks like to be an 1-element queue, but I need that queue will be message buffer between commport thread and UI thread, so no messaged will be lost... even if UI thread will be activ for a little longer time...
Thank you for any help and tips how to solve this problem...
Regards!
I'm trying to export content from sensenet using (http://wiki.sensenet.com/Export#Configuration)
"export" command call:
Export.exe -SOURCE /Root/Sites/Test -TARGET C:\ExportSensenet -ASM ..\bin
I also tried without the "ASM" parameter.
Export did not complete successfully.
Export ends with error:
System.TypeInitializationException: The type initializer for 'SenseNet.ContentRe
pository.Storage.SR' threw an exception. ---> System.Reflection.ReflectionTypeLo
adException: Unable to load one or more of the requested types. Retrieve the Loa
derExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at SenseNet.ContentRepository.Storage.TypeHandler.GetTypesByInterface(Type in
terfaceType) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\St
orage\TypeHandler.cs:line 209
at SenseNet.ContentRepository.Storage.SR..cctor() in c:\Builds\8\SenseNet\PAC
KAGECommunity\Sources\Source\SenseNet\Storage\SR.cs:line 22
--- End of inner exception stack trace ---
at SenseNet.ContentRepository.Storage.SR.get_ResourceManager()
at SenseNet.ContentRepository.Storage.Caching.Dependency.CacheDependencyFacto
ry.CreateNodeDataDependency(NodeData nodeData) in c:\Builds\8\SenseNet\PACKAGECo
mmunity\Sources\Source\SenseNet\Storage\Caching\CacheDependencyFactory.cs:line 7
5
at SenseNet.ContentRepository.Storage.DataBackingStore.CacheNodeData(NodeData
nodeData, String cacheKey) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Sou
rce\SenseNet\Storage\DataBackingStore.cs:line 325
at SenseNet.ContentRepository.Storage.DataBackingStore.GetNodeData(NodeHead h
ead, Int32 versionId) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\Se
nseNet\Storage\DataBackingStore.cs:line 212
at SenseNet.ContentRepository.Storage.Node.LoadNode(NodeHead head, VersionNum
ber version) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\St
orage\Node.cs:line 1644
at SenseNet.ContentRepository.User.get_Administrator() in c:\Builds\8\SenseNe
t\PACKAGECommunity\Sources\Source\SenseNet\ContentRepository\User.cs:line 38
at SenseNet.ContentRepository.Security.DesktopAccessProvider.get_CurrentUser(
) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\ContentReposi
tory\Security\DesktopAccessProvider.cs:line 36
at SenseNet.ContentRepository.Storage.Security.AccessProvider.ChangeToSystemA
ccount() in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\Storag
e\Security\AccessProvider.cs:line 72
at SenseNet.ContentRepository.Security.DesktopAccessProvider.GetCurrentUser()
in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\ContentReposit
ory\Security\DesktopAccessProvider.cs:line 52
at SenseNet.ContentRepository.Storage.Security.AccessProvider.ChangeToSystemA
ccount() in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\Storag
e\Security\AccessProvider.cs:line 72
at SenseNet.ContentRepository.RepositoryInstance.DoStart() in c:\Builds\8\Sen
seNet\PACKAGECommunity\Sources\Source\SenseNet\ContentRepository\RepositoryInsta
nce.cs:line 144
at SenseNet.ContentRepository.RepositoryInstance.Start(RepositoryStartSetting
s settings) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\Con
tentRepository\RepositoryInstance.cs:line 108
at SenseNet.ContentRepository.Repository.Start(RepositoryStartSettings settin
gs) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\ContentRepo
sitory\Repository.cs:line 58
at SenseNet.Tools.ContentExporter.Exporter.Main(String[] args) in c:\Builds\8
\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\Tools\Export\Exporter.cs:line
139
at SenseNet.ContentRepository.Storage.SR.get_ResourceManager()
at SenseNet.ContentRepository.Storage.Caching.Dependency.CacheDependencyFacto
ry.CreateNodeDataDependency(NodeData nodeData) in c:\Builds\8\SenseNet\PACKAGECo
mmunity\Sources\Source\SenseNet\Storage\Caching\CacheDependencyFactory.cs:line 7
5
at SenseNet.ContentRepository.Storage.DataBackingStore.CacheNodeData(NodeData
nodeData, String cacheKey) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Sou
rce\SenseNet\Storage\DataBackingStore.cs:line 325
at SenseNet.ContentRepository.Storage.DataBackingStore.GetNodeData(NodeHead h
ead, Int32 versionId) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\Se
nseNet\Storage\DataBackingStore.cs:line 212
at SenseNet.ContentRepository.Storage.Node.LoadNode(NodeHead head, VersionNum
ber version) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\St
orage\Node.cs:line 1644
at SenseNet.ContentRepository.User.get_Administrator() in c:\Builds\8\SenseNe
t\PACKAGECommunity\Sources\Source\SenseNet\ContentRepository\User.cs:line 38
at SenseNet.ContentRepository.Security.DesktopAccessProvider.get_CurrentUser(
) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\ContentReposi
tory\Security\DesktopAccessProvider.cs:line 36
at SenseNet.ContentRepository.Storage.Security.AccessProvider.ChangeToSystemA
ccount() in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\Storag
e\Security\AccessProvider.cs:line 72
at SenseNet.ContentRepository.Security.DesktopAccessProvider.GetCurrentUser()
in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\ContentReposit
ory\Security\DesktopAccessProvider.cs:line 52
at SenseNet.ContentRepository.Storage.Security.AccessProvider.ChangeToSystemA
ccount() in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\Storag
e\Security\AccessProvider.cs:line 72
at SenseNet.ContentRepository.RepositoryInstance.DoStart() in c:\Builds\8\Sen
seNet\PACKAGECommunity\Sources\Source\SenseNet\ContentRepository\RepositoryInsta
nce.cs:line 144
at SenseNet.ContentRepository.RepositoryInstance.Start(RepositoryStartSetting
s settings) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\Con
tentRepository\RepositoryInstance.cs:line 108
at SenseNet.ContentRepository.Repository.Start(RepositoryStartSettings settin
gs) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\ContentRepo
sitory\Repository.cs:line 58
at SenseNet.Tools.ContentExporter.Exporter.Main(String[] args) in c:\Builds\8
\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\Tools\Export\Exporter.cs:line
139
I did not change the export.exe.config file and it has the right database configuration.
Usually this is a sign of a missing library. First I'd try to simply copy all the libraries from the web\bin folder to the web\Tools folder (where you execute the tool). If that does not help, pls make sure that the runtime bindings in the export config are the same as in the web.config.
I tried to execute a multiple SQL insertion in my Yii application:
INSERT INTO take_lf (data, start, end)
VALUES ('take1.csv', '0', '0'), ('take2.csv', '0', '0'), ('take3.csv', '0', '0')
The query is executed (I could see the result on PhpMyAdmin) but I got an error on Yii:
CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error
Does anyone know what could be the problem? I looked for the PhpMyAdmin log on Status->Monitor but I didn't find anything.
EDIT: the trace is the following.
#0 /volume1/web/yii/framework/db/CDbCommand.php(395): CDbCommand->queryInternal("fetchAll", array(2), array())
#1 /volume1/web/dbcremona/protected/controllers/TakeLF.php(253): CDbCommand->queryAll()
251 }
252 $sql = substr($sql, 0, -1); //tolgo ultima virgola
253 $r = Yii::app()->db->createCommand($sql)->queryAll();**
254 echo $r;
255 }
256
257 /**
258 * Returns the data model based on the primary key given in the GET variable.
#2 /volume1/web/yii/framework/web/actions/CInlineAction.php(49): TakeLFController->actionInsert_multiple()
#3 /volume1/web/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("r" => "takeLF/insert_multiple"))
#4 /volume1/web/yii/framework/web/filters/CFilterChain.php(133): CController->runAction(CInlineAction)
#5 /volume1/web/yii/framework/web/filters/CFilter.php(40): CFilterChain->run()
#6 /volume1/web/yii/framework/web/CController.php(1145): CFilter->filter(CFilterChain)
#7 /volume1/web/yii/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl(CFilterChain)
#8 /volume1/web/yii/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(CFilterChain)
#9 /volume1/web/yii/framework/web/CController.php(291): CFilterChain->run()
#10 /volume1/web/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl", "postOnly + delete"))
#11 /volume1/web/yii/framework/web/CWebApplication.php(282): CController->run("insert_multiple")
#12 /volume1/web/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("takeLowFeature/insert_multiple")
#13 /volume1/web/yii/framework/base/CApplication.php(169): CWebApplication->processRequest()